• Resolved sadhaka

    (@sadhaka)


    Had the dreaded “critical error” upon opening WP admin, followed by an email “from WordPress” indicating critical errors caused by W3TC:

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    
    In this case, WordPress caught an error with one of your plugins, W3 Total Cache.

    — snip —

    Error Details
    =============
    An error of type E_ERROR was caused in line 16 of the file /[server-path]/wp-content/plugins/w3-total-cache/Dispatcher.php. Error message: Uncaught Error: Class '\W3TC\ModuleStatus' not found in /[server-path]/wp-content/plugins/w3-total-cache/Dispatcher.php:16
    Stack trace:
    #0 /[server-path]/wp-content/plugins/w3-total-cache/Generic_Plugin.php(281): W3TC\Dispatcher::component('ModuleStatus')
    #1 /[server-path]/wp-includes/class-wp-hook.php(288): W3TC\Generic_Plugin->admin_bar_menu(Object(WP_Admin_Bar))
    #2 /[server-path]/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #3 /[server-path]/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #4 /[server-path]/wp-includes/admin-bar.php(86): do_action_ref_array('admin_bar_menu', Array)
    #5 /[server-path]/wp-includes/class-wp-hook.php(288): wp_admin_bar_render('')
    #6 /[server-path]/wp-includes/class-wp-hook.php(3
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sadhaka

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Can you please share when did this issue start to occur?
    Have you made any updates recently? What version of W3 Total Cache are you using?
    Thank you!

    Thread Starter sadhaka

    (@sadhaka)

    Well the site just came back as normal, without any intervention from me, so I don’t know what happened there.

    The error occurred roughly an hour or so ago.

    I have made no significant updates to the site recently.

    The W3TC plugin version is listed as version 0.12.0, if that helps.

    I don’t know if any of this gives you a clue to you as to what might have occurred.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sadhaka
    Thank you for the information.
    You should check if /[server-path]/wp-content/plugins/w3-total-cache/ModuleStatus.php exists. Since you updated to the latest 0.12.0 there may be some failures during the update.
    If you encounter the issue again, download the plugin from here and replace the ModuleStatus.php.
    Thank you!

    Thread Starter sadhaka

    (@sadhaka)

    I checked, and yes, the file ModuleStatus.php does exist at that path.

    Anyway, if it happens again, I’ll try your recommendation.

    However, I notice that the ModuleStatus.php on the server and the one in the download are identical..

    • This reply was modified 4 years, 11 months ago by sadhaka.
    Thread Starter sadhaka

    (@sadhaka)

    I found these PHP errors in my server error logs, which might give additional clues:

    [18-Dec-2019 15:03:11 UTC] PHP Fatal error:  Uncaught Error: Class 'W3TC\PgCache_Plugin' not found in /[server-path]/wp-content/plugins/w3-total-cache/Root_Loader.php:29
    Stack trace:
    #0 /[server-path]/wp-content/plugins/w3-total-cache/Root_Loader.php(163): W3TC\Root_Loader->__construct()
    #1 /[server-path]/wp-content/plugins/w3-total-cache/w3-total-cache.php(67): require_once('/[local/serverpath]/...')
    #2 /[server-path]/wp-settings.php(360): include_once('/[local/serverpath]/...')
    #3 /[server-path]/wp-config.php(92): require_once('/[local/serverpath]/...')
    #4 /[server-path]/wp-load.php(37): require_once('/[local/serverpath]/...')
    #5 /[server-path]/wp-blog-header.php(13): require_once('/[local/serverpath]/...')
    #6 /[server-path]/index.php(17): require('/[local/serverpath]/...')
    #7 {main}
      thrown in /[server-path]/wp-content/plugins/w3-total-cache/Root_Loader.php on line 29
    [18-Dec-2019 15:03:11 UTC] PHP Fatal error:  Uncaught Error: Class 'W3TC\PgCache_Plugin' not found in /[server-path]/wp-content/plugins/w3-total-cache/Root_Loader.php:29
    Stack trace:
    #0 /[server-path]/wp-content/plugins/w3-total-cache/Root_Loader.php(163): W3TC\Root_Loader->__construct()
    #1 /[server-path]/wp-content/plugins/w3-total-cache/w3-total-cache.php(67): require_once('/[local/serverpath]/...')
    #2 /[server-path]/wp-settings.php(360): include_once('/[local/serverpath]/...')
    #3 /[server-path]/wp-config.php(92): require_once('/[local/serverpath]/...')
    #4 /[server-path]/wp-load.php(37): require_once('/[local/serverpath]/...')
    #5 /[server-path]/wp-blog-header.php(13): require_once('/[local/serverpath]/...')
    #6 /[server-path]/index.php(17): require('/[local/serverpath]/...')
    #7 {main}
      thrown in /[server-path]/wp-content/plugins/w3-total-cache/Root_Loader.php on line 29
    [18-Dec-2019 15:03:14 UTC] PHP Fatal error:  Uncaught Error: Class '\W3TC\ModuleStatus' not found in /[server-path]/wp-content/plugins/w3-total-cache/Dispatcher.php:16
    Stack trace:
    #0 /[server-path]/wp-content/plugins/w3-total-cache/Generic_Plugin.php(281): W3TC\Dispatcher::component('ModuleStatus')
    #1 /[server-path]/wp-includes/class-wp-hook.php(288): W3TC\Generic_Plugin->admin_bar_menu(Object(WP_Admin_Bar))
    #2 /[server-path]/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #3 /[server-path]/wp-includes/plugin.php(544): WP_Hook->do_action(Array)
    #4 /[server-path]/wp-includes/admin-bar.php(86): do_action_ref_array('admin_bar_menu', Array)
    #5 /[server-path]/wp-includes/class-wp-hook.php(288): wp_admin_bar_render('')
    #6 /[server-path]/wp-includes/class-wp-hook.php(3 in /[server-path]/wp-content/plugins/w3-total-cache/Dispatcher.php on line 16
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @sadhaka

    It seems to be just a temp issue after updating.

    Please let us know if this happens again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Critical errors caused by W3TC’ is closed to new replies.