• Resolved chatboxx

    (@chatboxx)


    Im running the latest version of WP and just did a clean Install on a new domain, created a page for search and a page to be searched. However, it seems that its not working.

    This is a clean WP Install via Softaculous with only this plugin and 2 pages.

    Was going through the forum and to assist you, added these lines as well
    var_dump($wpdb->last_error);
    var_dump($querystr);
    var_dump($pageposts);

    Search page is here : https://goo.gl/0WPFIj
    Test Page to be searched is here : https://goo.gl/3RoNaJ

    try searching for ddc5
    The search box searches forever.

    https://www.ads-software.com/plugins/ajax-search-lite/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpdreams

    (@wpdreams)

    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.

    Thread Starter chatboxx

    (@chatboxx)

    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 !

    Plugin Author wpdreams

    (@wpdreams)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search Not Working’ is closed to new replies.