I’ve the Hub2Word plugin in place that’s getting used to incorporate Hubspot posts within the search outcomes of my WordPress 5.four web site. It was producing a lot of PHP notices and never pulling in any Hubspot posts. After digging a bit, this seemingly unsupported plugin doesn’t work in PHP7. I used to be capable of repair the PHP notices aside from this one remaining error:
Discover: Oblique modification of overloaded property WP_Query::posts has no impact in /xxxxx/wp-includes/class-wp.php on line 587
Now, that is the one one which referenced a core WP file. I’ve accomplished sufficient troubleshooting that I can confirm the Hubspot information IS getting pulled in. It is simply failing in some unspecified time in the future earlier than it will get added to the search outcomes.
The road 587 referenced within the above discover is:
$GLOBALS['posts'] = & $wp_query->posts;
If I take away the “&” from the above line, the discover goes away, however the Hubspot articles are nonetheless not included. The array that’s constructed from the plugin appears to be doing it is job and gathering acceptable Hubspot put up information. Simply undecided the place the ball is getting dropped.
The rest wanted I can present. Thanks for any enter that’s given!