Warning: Parameter 2 to SyndicationDataQueries::posts_search() expected to be a reference, value given in /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php on line 298
Closed this issue · 3 comments
Appears as soon as I set up a feed on WP 4.7.3, PHP 7.1.0. Any idea what could be happening?
Hi @Gaelan I also ran into this and ended up just disabling the plugin.
But to give you a starting place if you want to patch this, PHP 7.1 changed the way refrences work. (see: http://php.net/manual/en/language.references.php) the error comes from the &
in front of values in functions like here:
If you changed function posts_search ($search, &$query) {
to function posts_search ($search, $query) {
the warning would be resolved (you'll of course need to do this for each place where a &$variable
is used.
I see it as well and had to disable the plugin.
Warning: Parameter 2 to SyndicationDataQueries::posts_search() expected to be a reference, value given in /storage/h14/785/1479785/public_html/wp-includes/class-wp-hook.php on line 298
Warning: Parameter 2 to SyndicationDataQueries::posts_where() expected to be a reference, value given in /storage/h14/785/1479785/public_html/wp-includes/class-wp-hook.php on line 298
This issue should be resolved by the fix contained in @david-robinson-practiceweb 's pull request, which I merged into the most recent release of FeedWordPress. Thanks for the report, let me know if the problem is resolved on your end or if there's anything else that needs attention.