• Resolved carmpocalypse

    (@carmpocalypse)


    When updating to Docket Cache Version 21.08.08, I get an error message on the frontend when viewing the website. The message, “There has been a critical error on this website.” I can not update my theme’s function.php file because I get syntax errors

    The syntax error relates to docket-cache/includes/cache.php on line 820:

    // wp stale cache
                    // prefix:md5hash:microtime
                    if (false !== strpos($key, ':') && @preg_match('@(.*):([a-z0-9]{32}):([0-9\. ]+)$@')) {
                        $expire = $maxttl < 345600 ? $maxttl : 345600; // 4d
                    }

    With the new update, the plugin introduced Chunk Cache Directory and Auto Remove Stale Cache. The Chunk Cache Directory was Enabled by default when I updated the plugin to 21.08.08. I disabled this feature and so far my website’s frontend looks like it’s back to normal.

    Should this be Disabled by default instead of it being enabled so others won’t come across this issue when updating. Also, will there be a fix? If you need more info let me know.

    *UPDATE*

    Also, on the WordPress backend, even with Chunk Cache Directory disabled, I get the message, “There has been a critical error on this website. Please check your site admin email inbox for instructions.” This happens when clicking on pages to try and add/publish them, The Events Calendar, GamiPress and bbPress links. However, going to other WordPress links like Tools and Settings still work. Most other plugins and their settings still work too. Not sure why GamiPress, The Events Calendar, bbPress and even going to pages get errors. With Docket Cache active, I can not add and publish pages.

    The backend error messages also affects the frontend of the website for those plugins as well. For example, if I go to the URL to my forums, I get the error message. I rolled back to the 21.08.05 version of the plugin until there is a fix or some configuration that I can do to solve the issue.

    System Info:
    WordPress version 5.9.3
    Current plugin: Docket Cache (version 21.08.08)
    PHP version 8.0.18

    Error:

    An error of type E_ERROR was caused in line 820 of the file /home/xxx/public_html/wp-content/plugins/docket-cache/includes/cache.php. Error message: Uncaught ArgumentCountError: preg_match() expects at least 2 arguments, 1 given in /home/xxx/public_html/wp-content/plugins/docket-cache/includes/cache.php:820
    Stack trace:
    #0 /home/xxx/public_html/wp-content/plugins/docket-cache/includes/cache.php(820): preg_match('@(.*):([a-z0-9]...')
    #1 /home/xxx/public_html/wp-content/plugins/docket-cache/includes/cache.php(369): WP_Object_Cache->maybe_expire('posts', 1209600, 'get_page_by_pat...')
    #2 /home/xxx/public_html/wp-content/plugins/docket-cache/includes/cache.php(2061): WP_Object_Cache->set('get_page_by_pat...', 0, 'posts', 0)
    #3 /home/xxx/public_html/wp-includes/post.php(5716): wp_cache_set('get_page_by_pat...', 0, 'posts')
    #4 /home/xxx/public_html/wp-includes/class-wp.php(236): get_page_by_path('wp-admin/edit.p...')
    #5 /home/xxx/public_html/wp-includes/class-wp.php(758): WP->parse_request(Array)
    #6 /home/xxx/public_html/wp-includes/functions.php(1310): WP->main(Array)
    #7 /home/xxx/public_html/wp-admin/includes/post.php(1239): wp(Array)
    #8 /home/xxx/public_html/wp-admin/includes/class-wp-posts-list-table.php(166): wp_edit_posts_query()
    #9 /home/xxx/public_html/wp-admin/edit.php(225): WP_Posts_List_Table->prepare_items()
    #10 {main}
    thrown
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘There has been a critical error on this website’ is closed to new replies.