I updated Yoast SEO to 12.3 from 12.1. After update, I selected Posts in the admin area and saw these PHP warnings at the top of the page.
Warning: array_merge(): Argument #2 is not an array in /wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 194
Warning: array_merge(): Argument #1 is not an array in /home/rayfranklin3/public_html/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 194
I googled the first error and found this support page:
1. Check that issue goes away when Yoast is disabled
2. Check for plugin conflicts
3. Check console for JS errors
I checked my console and found no JS errors, so I tried deactivating the plugin, as suggested by Yoast support. I visited my site home page and saw no problems. So I reactivated Yoast. That generated the following notice on the Plugins page from WP:
The plugin generated 404 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
The warnings about “class-wpseo-options.php” only happened immediately after upgrading. I have no way to downgrade and upgrade again, so that is not a test I can perform. I observed no JS errors on the console. Since I cannot reproduce the upgrade problem, I cannot check that the cause is related to plugin conflicts.
The only part of my bug report that is repeatable is the WP warning about unexpected output from Yoast SEO every time I deactivate and activate the plugin. I deactivated all plugins and then reactivated only Yoast SEO. It generates the same WP warning with 404 characters of unexpected output every time.
Since I cannot see the output WP is complaining about, I cannot evaluate it. Perhaps Yoast developers know how to capture this output.
- The topic ‘PHP warning for class-wpseo-options.php on line 194, 12.3 upgrade’ is closed to new replies.