You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
#86
Closed
Gaelan opened this issue
Mar 21, 2017
· 3 comments
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.
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.
Appears as soon as I set up a feed on WP 4.7.3, PHP 7.1.0. Any idea what could be happening?
The text was updated successfully, but these errors were encountered: