Support » Fixing WordPress » There has been a critical error on this website.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://wordpress.org/support/article/debugging-in-wordpress/

    You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you cannot access wp-admin, there are other ways to deactivate plugins.

    Thread Starter deepasubramani

    (@deepasubramani)

    HI Steven,

    Thanks for your time.
    1) I have tried deactivating all the plugins
    2) Tried deactivating the themes
    Still, I am unable to log in to the Admin page.

    I have enabled the debug mode and the below msg is appearing. Can anyone please help ASAP as I am new to this.

    Fatal error: Uncaught Error: Class 'WC_Payment_Gateway' not found in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/src/WooCommerce/Payments/AbstractPaymentGateway.php:46 Stack trace: #0 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/vendor/composer/ClassLoader.php(478): include() #1 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/wp-con...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('GoDaddy\\WordPre...') #3 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/src/WooCommerce/Payments/GoDaddyPaymentsGateway.php(39): spl_autoload_call('GoDaddy\\WordPre...') #4 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/vendor/composer/ClassLoader.php(478): include('/var/www/wp-con...') #5 /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/var/www/wp-con...') #6 [internal in /var/www/wp-content/mu-plugins/gd-system-plugin/plugins/mwc-core/src/WooCommerce/Payments/AbstractPaymentGateway.php on line 46
    There has been a critical error on this website.
    
    Learn more about troubleshooting WordPress.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    It looks like Woocommerce is missing one or more files. Maybe the update yesterday didn’t complete. I’m confused by the GoDaddy “mu” plugins, so try two things:

    1. Contact GoDaddy tech support to ask what’s going on with their MU plugins.
    2. Download a fresh copy of WooCommerce from wordpress.org. Unzip locally. Via FTP or the file manager app in your hosting control panel, delete the directory wp-content/plugins/woocommerce and then upload the woocommerce directory you just unzipped in its place.

    Thread Starter deepasubramani

    (@deepasubramani)

    Thank You so much Steve for your reply.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘There has been a critical error on this website.’ is closed to new replies.