• The plugin is causing this to be logged with PHP version 7.1, resulting in an ever growing log file:

    [12-May-2019 07:27:45 UTC] PHP Warning: Parameter 2 to sbtonly_filter() expected to be a reference, value given in /wp-includes/class-wp-hook.php on line 286

    Could you please check?

    Many thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • in the plugin file search_by_title_only.php replace: function sbtonly_filter($search, &$wp_query) { with function sbtonly_filter($search, $wp_query) {.

    $wp_query does not need to be passed by reference and WordPress does not allow this when using filters or actions.

    The warning will go away 🙂

    • This reply was modified 4 years, 8 months ago by Cornel Raiu.

    Hi, I’m still running into this error. Perhaps an update could be released to resolve this. Thanks!

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