Support » Plugin: Yoast SEO » PHP warning for class-wpseo-options.php on line 194, 12.3 upgrade

  • Resolved bigleaf3

    (@bigleaf3)


    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:
    https://wordpress.org/support/topic/warning-array_merge-argument-2-not-array-on-updating-in-recent-versions/

    1. Check that issue goes away when Yoast is disabled
    2. Check for plugin conflicts
    3. Check console for JS errors

    https://kb.yoast.com/kb/how-to-check-for-plugin-conflicts/

    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.

    • This topic was modified 1 year, 8 months ago by bigleaf3. Reason: correct spelling error
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support amboutwe

    (@amboutwe)

    We’re sorry that you are experiencing problems that might be caused by our plugin!

    Just to be sure, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Nineteen

    Test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin allows you to run a conflict check without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP warning for class-wpseo-options.php on line 194, 12.3 upgrade’ is closed to new replies.