WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Facebook (Open Graph, Rich Pin, Twitter Card, SEO, and Schema Meta Tags)
[resolved] 0 is a protected WP option and may not be modified (38 posts)

  1. flokohlert
    Member
    Posted 1 year ago #

    Hi!

    I´ve updated to the latest version today and now i get the following error message instead of any page: I can´t access wp-admin too.
    0 is a protected WP option and may not be modified

    When i delete "nextgen-facebook" from plugins folder with ftp I regain access to my site.
    Thanks
    Florian Kohlert

    http://wordpress.org/extend/plugins/nextgen-facebook/

  2. flokohlert
    Member
    Posted 1 year ago #

    Version 2.3.1 works
    Thank you!

  3. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    If you want to try, I just tagged v2.4.1, which should fix that problem...

    http://downloads.wordpress.org/plugin/nextgen-facebook.2.4.1.zip

    js.

  4. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Which version of WordPress are you using? The "0 is a protected WP option and may not be modified" seems to be a known issue with older WP MU sites...

    Thanks,

    js.

  5. flokohlert
    Member
    Posted 1 year ago #

    Hi!
    I´m using WP 3.5.
    Thanks

  6. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    It's hard to tell where the error might be coming from -- Google says it was/is a bug, that might be related to some faulty entries in the DB options table... About all I can do is try to add extra checks in the code to make sure all input/output related to options is super tight. I've improved the activate() function with some extra checks that *might* help.

    You could try installing the current dev version at http://downloads.wordpress.org/plugin/nextgen-facebook.zip.

    Have to tried uninstalling the plugin? I doubt the problem is related to the NGFB options entry, but just in case, uninstalling the plugin would remove that options entry. I suspect it's something else in the DB that's having this affect though...

    Let me know if the dev version works out for you.

    Thanks,

    js.

  7. RMJ
    Member
    Posted 1 year ago #

    I already said in the other read but I had the same error and it went away after installing version 3.0 of the plugin.

    I also had version 3.5 of WP (with my custom theme if that matters).

    Installing 3.0 version did not go smoothly trhough. On first try I got PHP error telling that "headers had already been sent" (I already lost the exact error message so can't copy paste it here). After this I got WP error message on the plugin page that Facebook OG plugin has been disabled because of some error. This caused the whole plugin to disappear from the list, I could not even delete it the normal way. If I tried to install it again, it didn't let me, I got only the "details" option when I searched the plugin, no "install" option. The solution to fix this was to delete the plugin folder from the server, then go search the plugin again. This time it was again possible to install it and it installed smoothly without error.

    Currently the plugin is fully working on my site.

  8. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    I've added extra error handling when reading the options in v3.0.99, currently the release candidate for v3.1.

    You can pickup a copy from:

    http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    This should/will fix the "0 is a protected WP option and may not be modified" error.

    Thanks,

    js.

  9. tiger255
    Member
    Posted 1 year ago #

    The same for me, v3.0.99 does not work and i get the same message.

  10. libis
    Member
    Posted 1 year ago #

    The same problem for me after update NextGen Facebook v3.1. The old version v3.0 works fine!

  11. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, I've made some changes to the current dev version which may help... http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    - Instead of using update_option() when activated, I'm using add_option(). It might make a difference, I don't know (they're almost the same).

    - I added an optional constant you can use. Define it BEFORE you activate the new dev version.

    define('NGFB_RESET', true);

    This will reset the options every time you activate the plugin, so don't leave it in your wp-config.php. ;-)

    js.

  12. libis
    Member
    Posted 1 year ago #

    Even after update plugin on version 3.1.1 still doesn´t work. I´ve got own custom theme based on Twenty Eleven.

  13. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    I've tweeked a few things in the upcoming v3.1.2, so you could try that one:

    http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    Also, if you're not working on a production site, maybe you could turn on debug mode and let me know if there are any significant errors?

    define('WP_DEBUG', true);

    Alternatively, you can send debug out put into a file by adding:

    if ( WP_DEBUG ) {
            define('WP_DEBUG_LOG', true);
            define('WP_DEBUG_DISPLAY', false);
            @ini_set('display_errors',0);
    }

    The debug file is located in wp-content/debug.log.

    The Blackbox plugin might be an alternative to using WP's debug mode. I run Blackbox on my dev site pretty much all the time. ;-)

    Thanks,

    js.

  14. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    FYI - I just checked in some new code with improvements in the NGFB::sanitize_options() method. This *should* help with any options-related issues...

    http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    Give it a spin and let me know if it fixes the issues you're having.

    Thanks,

    js.

  15. Vakantie Ameland
    Member
    Posted 1 year ago #

    Version wordpress 3.5, Theme Catch Box version 1.7 Latest nextgen-facebook version. Still error (in Dutch)

    0 is a protected WP option and may not be modified

  16. libis
    Member
    Posted 1 year ago #

    Still same problem. :-(

    There is my debug.log after activation newest version NextGen Facebook.

    http://temp.lm-blog.cz/files/debug.log. hopefully it will help.

  17. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Which version are you guys using? 3.1.1 or the current dev version? I just checked-in v3.1.2b1, with a lot of subtle changes that could address this issue. Would you mind downloading it and giving it a try? The download URL is:

    http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    Thanks,

    js.

  18. Vakantie Ameland
    Member
    Posted 1 year ago #

  19. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    @Vakantie, was that v3.1.2b1?

    Thanks,

    js.

  20. Vakantie Ameland
    Member
    Posted 1 year ago #

    v3.1.2b1 did the trick, error gone! Tnx

  21. Saiful Islam
    Member
    Posted 1 year ago #

    Updated to Version 3.1.1 today.
    After update i'm getting the same error.
    Please update your plugin after testing only @Developer

    People may stop using your plugin if your plugin do the same on upcoming updates.

  22. libis
    Member
    Posted 1 year ago #

    i tried dev version and 3.1.1 and still does´t work :-(

  23. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    @Saiful, thanks for the tip, but I test on several different websites before releasing a new version.

    @libis, would you mind giving 3.1.2b2 a spin?

    http://downloads.wordpress.org/plugin/nextgen-facebook.3.1.2b2.zip

    Let me know if you see any errors from NGFB in the debug.log, or in your webserver's error log (some PHP errors only show in the webserver logs).

    I'm hoping this'll do the trick. ;-)

    Thanks,

    js.

  24. libis
    Member
    Posted 1 year ago #

    Ok, I tried a version 3.1.2b2 and the same problem. Even i tried installed in new Twenty Twelve Theme. Unfortunately didn´t work.

    But, I tried completely delete plugin (uninstall and delete all files). After it, I installed a new version of your plugin (3.1.1) and it works.

    So, I hope that this information will help you.

  25. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Excellent! Thanks.

    js.

  26. Profesor Yeow
    Member
    Posted 1 year ago #

    Here I have the same problem with I try to login in the /wp-admin/
    Tell me :"0 is a protected WP option and may not be modified"

    I try with early versions and the newone, but nothing, now when any version it's active gime that error. I must remove from the plugins directory for can user the /wp-admin/

    I have WP 3.5 (the last version)

    http://yeow.com.ar

  27. Profesor Yeow
    Member
    Posted 1 year ago #

    I try to follow the steps you punt here:
    http://wordpress.org/support/topic/error-when-reading-the-ngfb_options-array-from-the-database?replies=27#post-3727283

    But give me this error:

    Warning: Cannot modify header information - headers already sent by (output started at /home/profyeow/public_html/wp-config.php:179) in /home/profyeow/public_html/wp-includes/pluggable.php on line 876

  28. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    Debug mode is adding a lot more information now, so if you've defined NGFB_DEBUG, you might want to try and turn it off.

    NGFB_RESET will try to recreate the default options, but if you can, then best thing is to let WP delete the plugin for you (instead of removing it manually).

    You can also try the current dev version -- there's a minor fix to the update_options() method that might help.

    http://downloads.wordpress.org/plugin/nextgen-facebook.zip

    Thanks,

    js.

  29. jvismara
    Member
    Posted 1 year ago #

    Just updated (Jan 20th, 2013 at 5pm) my NextGen plugin using the Update link, and cannot access my admin area any more...

    get the error everybody else is having:
    0 is a protected WP option and may not be modified

    I don't know exactly which version of WP I'm using, but, I remember there was an update of WP that was not compatible with NextGen, so I waited till there was one available and updated both... that was a couple of weeks ago.
    now I cannot access my admin area, so I cannot update, rollback, or make ANY changes in my site...
    any clues?
    thanks,

  30. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    I'm still not sure what causes this - NGFB doesn't step anywhere near WP's protected option names - it only uses the 'ngfb_options' name.

    Anyway, here's what you can do. If you have access to phpmyadmin or MySQL, etc., you can delete the 'ngfb_options' entry in the options table.

    If not, then go in by FTP or SSH, and delete the nextgen-facebook plugin folder. Then go to WP's plugin page - WP will then deactivate NGFB automatically (since it's missing). Then add the following to your wp-config.php file and re-install NGFB.

    define('NGFB_RESET', true);

    Let me know how things work out.

    Thanks,

    js.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.