Support » Plugin: Redis Object Cache » Error after upgrading to version 1.5.0

  • Resolved wfstudents

    (@wfstudents)


    Hi,

    Thanks for the plugin…

    I just upgraded and it took down my site.. had stop Redis on server to recover..

    Error log:

    [error] 19635#19635: *359939 FastCGI sent in stderr: “m/wp-includes/class-wp-post.php on line 265PHP message: PHP Warning: Invalid
    argument supplied for foreach() in /var/www/example.com/wp-includes/class-wp-post.php on line 265PHP message: PHP Warning: get_object_vars
    () expects parameter 1 to be object, array given in /var/www/example.com/wp-includes/class-wp-post.php on line 265PHP message: PHP Warning:
    Invalid argument supplied for foreach() in /var/www/example.com/wp-includes/class-wp-post.php on line 265PHP message: PHP Warning: get_obj
    ect_vars() expects parameter 1 to be object, array given in /var/www/example.com/wp-includes/class-wp-post.php on line 265PHP message:

    The page I need help with: [log in to see the link]

Viewing 11 replies - 16 through 26 (of 26 total)
  • jpb_adx

    (@jpbmaga)

    Same issue here, had to restore application from backup. The sequence of events as I recall was: updated plugin; logoff; modify wpconfig.php; login; got to admin screen with message regarding something about redis, went to redis settings in plugin; message went away; site broke admin not working; logged off; login screen quit working; attempts to refresh browser could not find login page; restored from backup

    Plugin Author Till Krüss

    (@tillkruess)

    I’ll look into the JSON serializer issue now.

    Until then, remove the constant from your config and run FLUSHDB or FLUSHALL on your Redis instance.

    diegpl

    (@diegpl)

    Thank you Till, but for me even after run these, removing the line and downgrade the plugin it worked.

    therealgilles

    (@chamois_blanc)

    Thanks Till.

    Here is the error I got if it helps:

    Fatal error: Uncaught Error: Cannot use object of type stdClass as array in .../public_html/wp-content/plugins/ocean-extra/includes/freemius/includes/managers/class-fs-key-value-storage.php:154
    Stack trace:
    #0 .../public_html/wp-content/plugins/ocean-extra/includes/freemius/includes/managers/class-fs-key-value-storage.php(129): FS_Key_Value_Storage->load()
    #1 .../public_html/wp-content/plugins/ocean-extra/includes/freemius/includes/managers/class-fs-key-value-storage.php(107): FS_Key_Value_Storage->__construct('admin_notices', 'global', 0)
    #2 .../public_html/wp-content/plugins/ocean-extra/includes/freemius/includes/managers/class-fs-admin-notice-manager.php(123): FS_Key_Value_Storage::instance('admin_notices', 'global', 0)
    #3 .../public_html/wp-content/plugins/ocean-extra/includes/freemius/includes/managers/class-fs-admin-notice-manage in .../public_html/wp-content/plugins/ocean-extra/includes/freemius/includes/managers/class-fs-key-value-storage.php on line 154
    Error: The site is experiencing technical difficulties.

    It affected several plugins. It looked like get_option was returning a JSON object instead of an array in this case. Hope this helps. If you can tell us how the new option is supposed to work, I am always eager to learn something new. Thank you

    Joe

    (@joecole1)

    Just adding my error log as well if that helps…

    Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /var/www/parisbloom.com/html/wp-content/plugins/wp-fail2ban/vendor/freemius/wordpress-sdk/includes/managers/class-fs-key-value-storage.php:154 Stack trace: #0 /var/www/parisbloom.com/html/wp-content/plugins/wp-fail2ban/vendor/freemius/wordpress-sdk/includes/managers/class-fs-key-value-storage.php(129): FS_Key_Value_Storage->load() #1 /var/www/parisbloom.com/html/wp-content/plugins/wp-fail2ban/vendor/freemius/wordpress-sdk/includes/managers/class-fs-key-value-storage.php(107): FS_Key_Value_Storage->__construct('admin_notices', 'global', 0) #2 /var/www/parisbloom.com/html/wp-content/plugins/wp-fail2ban/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php(123): FS_Key_Value_Storage::instance('admin_notices', 'global', 0) #3 /var/www/parisbloom.com/html/wp-content/plugins/wp-fail2ban/vendor/freemius/wordpress-sdk/includes/managers/class-fs-admin-notice-manager.php(93): FS_Admin_Notice_Manager->__construct('global', '', '', in /var/www/parisbloom.com/html/wp-content/plugins/wp-fail2ban/vendor/freemius/wordpress-sdk/includes/managers/class-fs-key-value-storage.php on line 154

    Plugin Author Till Krüss

    (@tillkruess)

    The issue here is that PHP’s loose typing system. Sticking with the default or igbinary seems to be the way to go.

    diegpl

    (@diegpl)

    Ok, it worked 😀
    I set define( ‘WP_REDIS_SERIALIZER’, Redis::SERIALIZER_IGBINARY ); on wp-config, flushed all and flushed db and reactivated Redis plugin.

    @tillkruess If I wanted to set the default as you said, what exactly was I supposed to insert there, since just removing the line it did not come back to the “not set” default?

    Thank you a lot! 😉

    Plugin Author Till Krüss

    (@tillkruess)

    I’ve updated the docs: https://github.com/tillkruss/redis-cache/commit/7a0babe7b8d250dc6435a9621da0db2fb4a8e231

    I would suggest sticking with igbinary if Redis space is a concern, otherwise, the default implementation is fine.

    jpb_adx

    (@jpbmaga)

    so can somebody summarize the correct procedure to update the plugin, I’m a bit lost here

    Plugin Author Till Krüss

    (@tillkruess)

    Upgrade will work just fine, just don’t use the JSON serializer.

    A cache flush before and after upgrades is recommended too.

    Sébastien SERRE

    (@sebastienserre)

    Hello, I flushed ALL + DB many times. Redis is connected but allways have an error on a plugin activation:
    https://github.com/Freemius/wordpress-sdk/issues/371

    Any idea of what’s wrong ?

Viewing 11 replies - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.