[Plugin: WordPress SEO by Yoast] 1.2.8.4 mapped site admin broken
-
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.
- The topic ‘[Plugin: WordPress SEO by Yoast] 1.2.8.4 mapped site admin broken’ is closed to new replies.