WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Possible Bug Found (13 posts)

  1. John Turner
    Member
    Posted 3 years ago #

    I receiving an error "[Thu Jun 23 15:28:40 2011] [error] [client 153.9.5.36] PHP Fatal error: Cannot unset string offsets in /srv/www/seedprod.com/public_html/wp-content/plugins/wordpress-seo/wp-seo.php on line 90"

    It seems the unset is causing an error. If I comment out line 90 it get an error on the next one line 100. I have added a fix be check that it's not = to 0.

    if ( isset( $options[$opt] ) && $option[$opt] != 0 ) {
    ....
    unset(..);
    }

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

  2. When and where are you getting the error?

    Have you tested it by turning off your other plugins?

  3. John Turner
    Member
    Posted 3 years ago #

    This might be an issue only in multisite. It works fine on my main blog, but subsites have the error. It's related to the wpseo option it pulls from the db. On the main site the values is a:2:{s:15:"ms_defaults_set";b:1;s:7:"version";s:5:"0.4.2";}
    on the subsites the values is: 0pseo_xml

    You can reproduce the error by replacing the option wpseo with the bad value in the db then call /wp-admin/admin-ajax.php?action=

  4. I'm using this on MultiSite (activated network wide, but configured per site) with no issues. 4 sites, happy as clams. The values are correct all down the line. Which is why I wondered if you had a plugin conflict.

    Can you reset to defaults on the affected sites?

  5. John Turner
    Member
    Posted 3 years ago #

    ok looks like it adds this value '0pseo_xml ' to wpseo open when a subsite is 1st created. The bug occurs until the the plugin is configured. Once configured it save the proper values. Crisis averted:) thx

  6. *heh* The fix is to configure the plugin. Makes sense ;)

  7. Piet
    Member
    Posted 3 years ago #

    thanks for figuring this out! I also had the Fatal Error line and after basic configuration I was good to go. Not sure if it helps anyone, but for me the error was triggered on a subsite of a multisite install when editing the description (adding images) of categories.
    Cheers!

  8. Dan
    Member
    Posted 3 years ago #

    It's still not working for me, I'm getting the error when adding a featured image to a post.

    Do you know what exactly you have to configure to get it working?

  9. John Turner
    Member
    Posted 3 years ago #

    I can export my config if you like? I'm not sure what exactly triggers the replacement of the 0pseo_xml place holder with out going back to the code.

  10. Dan
    Member
    Posted 3 years ago #

    If you could, that would be a great help. Thanks.

  11. John Turner
    Member
    Posted 3 years ago #

    ha, looks like the export is broken. anyway I followed this guide.

    http://www.wpbeginner.com/plugins/how-to-install-and-setup-wordpress-seo-plugin-by-yoast/

  12. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    I'd need to look at your server to be able to reproduce / fix this... Please contact me through my site's contact form.

  13. Dan
    Member
    Posted 2 years ago #

    I don't know what happened, but the plugin miraculously started working for me. May be the 1.0 update.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic