WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
1.2.8.4 mapped site admin broken (3 posts)

  1. stickhandle
    Member
    Posted 1 year ago #

    WordPress version: 3.4.2
    WordPress SEO version: 1.2.8.4 & 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] => 1.2.8.4 [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 = '1.2.8.4';

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

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. nelero
    Member
    Posted 1 year ago #

    Yes ! Fixed it (temporarly) ! thanks.

  3. iDope
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.