Support » Plugin: Yoast SEO » Warning: array_merge(): Argument #2 not array on updating in recent versions

  • Resolved Mayeenul Islam

    (@wzislam)


    From the last few releases we’re having an update-transition warning like below:

    Warning: array_merge(): Argument #2 is not an array in …\wp-content\plugins\wordpress-seo\inc\options\class-wpseo-options.php on line 187

    Warning: array_merge(): Argument #1 is not an array in …\wp-content\plugins\wordpress-seo\inc\options\class-wpseo-options.php on line 187

    Warning: array_merge(): Argument #1 is not an array in …\wp-content\plugins\wordpress-seo\inc\options\class-wpseo-options.php on line 471

    What’s an update-transition warning?

    We’re updating Yoast SEO. It’s updating using the WP’s new JS API. After successful update when we refresh the site, on the first refresh we see these warning in admin panel (WP Network).

    Then again on the front end on each of the site.

    That happens only once, only on first refresh.

    Possible workaround

    I think you need to take care of the update on options table while upgrading.

    Keep up the good work

    Environment
    WordPress 4.9.8
    Yoast SEO 8.1
    Debug true
    Network true

    Cannot nullified the case to confirm in absence of other plugins, because I’m having this on a client site.

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Warning: array_merge(): Argument #2 not array on updating in recent versions’ is closed to new replies.