Reply To: SEO Yeost Posting Problems


Ernest Marcinko


It’s a known issue, affecting a small portion of installations. It is caused by the ajax search pro indexing function, where a certain core blog switching statement is not acting as expected.

To resolve this, one minor modification is needed to one of the files. In case you can’t do it, let me know, and I will log-in via FTP and do it for you.

1. open up the wp-content\plugins\ajax-search-pro\includes\classes\etc\indextable.class.php file
2. Scroll to lines 77-79, which is:

			if ( is_multisite() ) {
				switch_to_blog( $this->args['blog_id'] );

3. Change thos lines to this:

			if ( is_multisite() && !empty($this->args['blog_id']) && 
                             $this->args['blog_id'] != get_current_blog_id() ) {
				switch_to_blog( $this->args['blog_id'] );

4. Save the file, and it’s done.

I’m fixing this for the upcoming release of course, so you won’t have to worry about it anymore.

Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)