Yoast SEO
[Plugin: WordPress SEO by Yoast] mapped site admin broken (3 posts)

  1. stickhandle
    Posted 3 years ago #

    WordPress version: 3.4.2
    WordPress SEO version: & dev version
    Broken admin for mapped sites (not main site). By broken i mean - white page (no content).
    Here's the stack:

    [11-Sep-2012 04:29:08 UTC] PHP Fatal error:  Cannot unset string offsets in [path]/wp-content/plugins/wordpress-seo/admin/class-admin.php on line 440
    [11-Sep-2012 04:29:08 UTC] PHP Stack trace:
    [11-Sep-2012 04:29:08 UTC] PHP   1. {main}() [path]/wp-admin/index.php:0
    [11-Sep-2012 04:29:08 UTC] PHP   2. require_once() [path]/wp-admin/index.php:12
    [11-Sep-2012 04:29:08 UTC] PHP   3. do_action() [path]/wp-admin/admin.php:111
    [11-Sep-2012 04:29:08 UTC] PHP   4. call_user_func_array() [path]/wp-includes/plugin.php:403
    [11-Sep-2012 04:29:08 UTC] PHP   5. WPSEO_Admin->maybe_upgrade() [path]/wp-includes/plugin.php:0

    Issue seems to be with the get_option( 'wpseo' ) at the start of maybe_upgrade() function in class-admin.php. It should be returning a nice array like this (as per parent site) : Array ( [disableadvanced_meta] => on [version] => [tracking_popup] => done [yoast_tracking] => off [ignore_tour] => ignore ). Instead, for child mapped site, we get only : 1pseo_social. Development version has the same issue. Quick hack: in class-admin.php, comment out line 321, and hardcode the version:

    function maybe_upgrade() {
        $options = get_option( 'wpseo' );
        //$current_version = isset( $options['version'] ) ? $options['version'] : 0;
        $current_version = '';

    Obviously not the best idea ... since the array is used in more places. Might get you by until Joost pushes a fix.


  2. nelero
    Posted 3 years ago #

    Yes ! Fixed it (temporarly) ! thanks.

  3. iDope
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.