• Resolved riesiko

    (@riesiko)


    Polylang version 1.6.4. WP-Seo by Yoast 1.7.2. WP-theme 2015
    After updating I get the following error messages on my site:

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: Creating default object from empty value in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /homepages/37/d159954620/htdocs/sculpture/wp/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    What to do?

    https://www.ads-software.com/plugins/polylang/

Viewing 15 replies - 1 through 15 (of 30 total)
  • stgoldmann

    (@stgoldmann)

    Same here:

    Warning: array_merge(): Argument #1 is not an array in /home/xxx/public_html/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: Creating default object from empty value in /home/xxx/public_html/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    Warning: array_merge(): Argument #1 is not an array in /home/xxx/public_html/wp-content/plugins/polylang/include/plugins-compat.php on line 89

    acidlounge

    (@acidlounge)

    Same here:
    WordPress SEO 1.7.3
    Polylang 1.6.4

    lbineau

    (@lbineau)

    Same here with a fresh install and last versions of WordPress SEO and Polylang.
    I have also the following fatal error : ( ! ) Fatal error: Call to undefined method stdClass::canonical() in ***\wp-content\plugins\wordpress-seo\inc\wpseo-non-ajax-functions.php on line 227

    MTune

    (@mtune)

    Same here
    polylang 1.6.4
    Wordpress yoast seo 1.7.3
    any solutions?

    MTune

    (@mtune)

    This is the code in the plugin-compat.php file on line 89
    // reloads options once the language has been defined to enable translations
    // useful only when the language is set from content
    if (did_action(‘wp_loaded’)) {
    global $wpseo_front;
    $options = version_compare(WPSEO_VERSION, ‘1.5’, ‘<‘) ? get_wpseo_options_arr() : WPSEO_Options::get_option_names();
    foreach ( $options as $opt )
    $wpseo_front->options = array_merge( $wpseo_front->options, (array) get_option( $opt ) );
    }

    which causes the array_merge error –
    any ideas for a solution?

    Thread Starter riesiko

    (@riesiko)

    The WP-Seo 1.7.3. Update doesn’t resolve this problem here too, even with emptiing cache …

    Tony Amsterdam

    (@tony-amsterdam)

    It’s the update of WordPress SEO that’s causing the problems here
    Turning it of the error messages disappear

    edouardcoleman

    (@edouardcoleman)

    I tried and it worked. Nice you found it!

    jorge-vitrubio

    (@jorge-vitrubio)

    https://www.ads-software.com/support/topic/wp-seo-by-yoast-update-polylang-errors?replies=9#post-6579488

    I did coment those lines and i dis resolve the problem so whenever Polylang o YOAST solves the problem in next upgrade it should work.

    it is related to language from content which I can pass out.

    Plugin Author Chouby

    (@chouby)

    Hi!

    I can confirm that these errors occur for all users combining WPSEO 1.7.2 or 1.7.3 with the Polylang option “the language is set by the content” (which is a default option).

    This is due to a big change introduced in WPSEO 1.7.2, which of course I was not aware.

    If you comment the lines 85 to 90, errors will disappear but your WPSEO options won’t be translated.

    At the moment and before a solution is found, I recommend to revert WPSEO to v1.7.1
    https://downloads.www.ads-software.com/plugin/wordpress-seo.1.7.1.zip

    Also I recommend to set WP_DEBUG to false in your wp-config.php on a production site to avoid exposing such ugly errors.

    For people interested in, an issue has been opened at WPSEO github repository by a user (thanks to him!)
    https://github.com/Yoast/wordpress-seo/issues/1997

    I make this post sticky to avoid a flood of other new topics.

    Thread Starter riesiko

    (@riesiko)

    Thanks for the information, Chouby!

    cincinik

    (@cincinik)

    Thank you! ??

    combuilder

    (@combuilder)

    Cool! i’m not the only one suffering this problem!

    Back to WPSEO 1.7.1!!

    combuilder

    (@combuilder)

    Even with WPSEO 1.7.1, I’m suffering this error!!

    ClaraLopez

    (@claralopez)

    Thanks for the 1.7.1 version! I’ve tried this on line 89 at plugins-compat.php and should work, but my main menu gets a little bit stuck when scrolling.

    $wpseo_front->options = array_merge((array) $wpseo_front->options, (array) get_option( $opt ) );

    Take a look if you can improve it. I’m going to go back to 1.7.1 by the way

    https://www.ads-software.com/support/topic/wp-seo-by-yoast-172-update-polylang-version-164-errors?replies=7

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘WP-Seo by Yoast-update – PolyLang errors’ is closed to new replies.