• Hello

    I’m using version 2.4.11.1. I have redis object cache enabled.

    After some time, my website becomes unusable. Clearing the object cache usually does the trick, but it has become a real problem.

    Here’s the PHP stack trace. It becomes an infinite loop between set_status_data() and get_app_config(). Looking at the code, it’s pretty clear it’s bound to happen when the condition “// old status format?” is true.

    Code fix would be very much appreciated. Thanks.

    [31-Oct-2023 07:52:53 UTC] PHP Fatal error:  Uncaught Error: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames in /srv/www/wordpress/wp-content/object-cache.php:2582
    Stack trace:
    #0 /srv/www/wordpress/wp-content/object-cache.php(2562): WP_Object_Cache->is_group_of_type()
    #1 /srv/www/wordpress/wp-content/object-cache.php(2529): WP_Object_Cache->is_global_group()
    #2 /srv/www/wordpress/wp-content/object-cache.php(1904): WP_Object_Cache->fast_build_key()
    #3 /srv/www/wordpress/wp-content/object-cache.php(193): WP_Object_Cache->get()
    #4 /srv/www/wordpress/wp-includes/option.php(321): wp_cache_get()
    #5 /srv/www/wordpress/wp-includes/option.php(191): wp_load_alloptions()
    #6 /srv/www/wordpress/wp-includes/link-template.php(3424): get_option()
    #7 /srv/www/wordpress/wp-includes/link-template.php(3402): get_home_url()
    #8 /srv/www/wordpress/wp-includes/general-template.php(818): home_url()
    #9 /srv/www/wordpress/wp-includes/class-wp-http.php(192): get_bloginfo()
    #10 /srv/www/wordpress/wp-includes/http.php(150): WP_Http->request()
    #11 /srv/www/wordpress/wp-content/plugins/cookie-notice/includes/welcome-api.php(1159): wp_remote_request()
    #12 /srv/www/wordpress/wp-content/plugins/cookie-notice/includes/welcome-api.php(1385): Cookie_Notice_Welcome_API->request()
    #13 /srv/www/wordpress/wp-content/plugins/cookie-notice/cookie-notice.php(363): Cookie_Notice_Welcome_API->get_app_config()
    #14 /srv/www/wordpress/wp-content/plugins/cookie-notice/includes/welcome-api.php(1447): Cookie_Notice->set_status_data()
    #15 /srv/www/wordpress/wp-content/plugins/cookie-notice/cookie-notice.php(363): Cookie_Notice_Welcome_API->get_app_config()
    

The topic ‘Stack overflow – site unusable’ is closed to new replies.