Hi!
The error report shows the following is the following:
Fatal error: Call to undefined function mb_convert_case() in /home/findmeflat/public_html/wp-content/plugins/ajax-search-lite/includes/search.class.php on line 41
It means, that the multibyte character string functions (mbstring) package is either disabled or not installed on your host. I highly recommend installing this package or contacting your host to install it for you – the package functions are widely used among plugin developers, and it’s used by every major web host.
In case you can’t do that, you can change that line to an alternative function. If you open up the wp-content/plugins/ajax-search-lite/includes/search.class.php file and go to line 41 where you should see this:
$this->s = mb_convert_case($keyword, MB_CASE_LOWER, "UTF-8");
and change it to:
$this->s = strtolower($keyword);
That should solve the issue immediately.
Thanks for a quick response. Well it fixed the issue partially and was now showing no results. Now picking up from your other thread, I applied the change below and it works absolutely fine now. I thought i post here for help of others as well.
Open up the plugins/ajax-search-pro/includes/search-content.class.php file and go to lines 181-187 where you should see this:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
} else {
$ex_cat = w_isset_def($searchData['selected-excludecategories'], array());
if (count($ex_cat) > 0) {
$words = '--'.implode('--|--', $ex_cat).'--';
$term_query = "HAVING (ttid NOT REGEXP '$words')";
}
}
Okay, now add this line below those lines (after line 187):
$term_query = "";
Thanks again for your prompt support !
Hi!
Sorry to bother you again. I’m happy that it works now.
However I’m debugging the search for hours now and I can’t find the reason why you needed that category fix as well. Since this issue came up the second time, I want to know the cause. The problem is that I can’t replicate the issue on any of my test servers, no matter what I do with the configuration and it’s driving me crazy 😀
Would it be possible to you to contact me on my business mail address at ernest.marcinko (at) wp-dreams.com and provide temporary administrator and temporary ftp detail to your server? I would like to do some debugging on the search code to see why is this happening.
Thank you and best regards,
Ernest Marcinko
stopped working at all, since last two days. when write something in search box, the search wheel is spinning continuous but nothing appear, disabled all other plugins also but not resolved the issue.