• I’m getting an error when activating the plugin. The plugin seems to work correctly but I get the following error:

    Warning: Parameter 2 to wi_posts_search_handler() expected to be a reference, value given in /.../wp-includes/class-wp-hook.php on line 286

Viewing 8 replies - 1 through 8 (of 8 total)
  • Just installed this plugin for the first time and saw the same thing immediately.

    Thread Starter Ardshael

    (@ardshael)

    I installed this plugin instead. Much of the backend is curiously similar but the other one is much better. https://www.ads-software.com/plugins/ajax-search-lite/

    Plugin Author Codieslab

    (@netflixtechweb)

    we will fix this error in our next plugin update version.

    Hi @netflixtechweb.

    I think the common issues are related to the latest versions of PHP. I run your plugin in a custom theme in a 5.6v and it works well, but at 7.0 it doesn’t work. If you find “Parameter 2 to wi_posts_search_handler() expected to be a reference,” at google there’s plenty of sites that happened the same.

    Do you think you could fix this problem? If you need some help I could help you fixing the issue.

    Thank’s.

    Plugin Author Codieslab

    (@netflixtechweb)

    Hi victornado

    Thanks for posting issue , our team will check with php 7 and fix it soon .

    For those who can not wait for the plugin update, there is a simple solution, if you want to continue using PHP 7 and higher:

    – Open /wp-content/plugins/wp-autosearch/functions.php
    – Search for &$ in the code and remove the & from it
    – Save the file, refresh your website or purge your cache and the problem should be fixed

    Thanks, @cmsgeek, that worked! Going on 7 months waiting for an update to this and that did it.

    big shout to @cmsgeek that worked!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘wi_posts_search_handler() error’ is closed to new replies.