Skip Navigation

PHP Warning when using post title search filter in PHP 7.1

Resolved

Reported for: Toolset Views 2.2.2

Resolved in: Toolset Views 2.3

Symptoms

When using PHP 7.1 and creating a View while using a search query filter that searches for a specific text on just the post title, the following PHP warning appears in the error log
Warning: Parameter 2 to WPV_Search_Frontend_Filter::search_by_title_only() expected to be a reference, value given
in /wp-includes/class-wp-hook.php on line 298

Workaround

This issue will be fixed in the next release of Toolset Views.

In the meantime, download views-1050, extract it and replace wpv-filter-search-embedded.php file in /wp-views/embedded/inc/filters folder.

Comments are closed