How to Fix the 'There Has Been a Critical Error on This Website' Message
Content
Seeing the dreaded "There has been a critical error on this website" message can instantly raise your blood pressure. Your site is down, and you might be locked out of your WordPress dashboard. This is one of the most common yet alarming issues WordPress users face.
The good news is that this message is a generic catch-all for a wide range of underlying problems, and it's almost always fixable. This guide will walk you through the most common causes and the step-by-step troubleshooting process to get your site back online.
What Causes the Critical Error?
The "critical error" message is WordPress's way of saying a PHP error has occurred that was severe enough to stop the page from loading. The most frequent culprits are:
- Plugin Conflicts: A plugin is outdated, incompatible with your current version of WordPress or PHP, or was poorly coded.
- Theme Conflicts: Your active theme has an issue, often after a core WordPress update.
- PHP Version Incompatibility: Your web server is running an outdated (or sometimes too new) version of PHP that your theme or plugins can't handle.
- Corrupted Core Files: A failed or incomplete WordPress update can leave core files in a broken state.
Step-by-Step Troubleshooting Guide
Important: Before you begin, if you have a recent backup of your site, consider restoring it. This is often the fastest way to resolve the issue. Contact your web hosting provider's support team, as they frequently keep backups.
1. Enable Debugging to Find the Root Cause
The first step is to find the specific error message. The generic "critical error" is not helpful, but WordPress can log the real error for you.
You will need to access your website's files using an FTP client (like FileZilla) or your hosting provider's file manager (often found in your cPanel).
- Locate and edit the
wp-config.phpfile in your site's root directory. - Find the line that says
define( 'WP_DEBUG', false );. - Replace it with the following lines:
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false ); - Save the file and upload it back to your server if necessary.
- Now, try to reload your website. The error will still appear, but WordPress will now write the detailed error to a file called
debug.login your/wp-content/directory. - Check the
debug.logfile. The error message inside will point directly to the problematic plugin, theme, or function.
Alternatively, you can check your server's error logs. Your hosting provider's control panel (e.g., cPanel) should have an section for "Error Logs" or similar. If you can't find it, your hosting provider's support team can help you locate it.
2. Deactivate All Plugins (The Most Common Fix)
If you cannot access the wp-admin dashboard to disable plugins normally, you can do it manually by renaming the folder.
- Connect to your site via FTP or File Manager.
- Navigate to the
/wp-content/directory. - Find the
pluginsfolder and rename it to something likeplugins_deactivated. - Create a new, empty folder named
plugins. - Now try to access your website and WordPress admin dashboard. If the site loads, you have confirmed a plugin was causing the problem.
- To identify the culprit, rename your
plugins_deactivatedfolder back toplugins. - Rename the new empty
pluginsfolder to something else, likeplugins_temp. - Inside the now-active
pluginsfolder, create a new folder for each plugin you want to test (e.g.,akismet,yoast-seo). Move the plugin's files from the main folder into its new individual folder. - Start moving plugins back into the main
pluginsfolder one by one, checking your site after each move. When the error returns, you've found the problematic plugin.
3. Switch to a Default Theme
If deactivating all plugins didn't resolve the issue, the problem may lie with your theme.
- Via FTP/File Manager, navigate to
/wp-content/themes/. - Rename the folder of your currently active theme (e.g., change
my-themetomy-theme_deactivated). - WordPress will automatically default to a standard theme like Twenty Twenty-Four. If your site comes back, you know your theme is the issue. You will need to contact the theme's developer for support or find a compatible alternative.
4. Check Your PHP Version
An outdated PHP version is a common cause of errors. WordPress recommends using PHP 8.0 or higher. However, some older plugins or themes may not be compatible.
- You can usually change your PHP version in your hosting control panel (cPanel, Plesk, etc.). Look for "MultiPHP Manager" or a similar option.
- If your site breaks on a newer PHP version (like 8.1 or 8.2), try rolling back to a slightly older, but still supported, version like PHP 8.0 or 7.4 to see if it resolves the conflict while you update your plugins and theme.
5. Reinstall WordPress Core Files
If the above steps fail, your WordPress core files might be corrupted from a failed update.
- Download a fresh copy of WordPress from wordpress.org.
- Unzip the file on your computer.
- Using FTP, delete the
/wp-admin/and/wp-includes/directories from your server. Do not delete the/wp-content/folder or yourwp-config.phpfile. - Upload the fresh
/wp-admin/and/wp-includes/folders from your computer to your server. - Upload the individual files from the fresh WordPress root folder (like
wp-login.php) over the ones on your server, ensuring they are replaced.
This replaces all core files without affecting your content, plugins, or themes.
When to Seek Specific Support
If the debug log points to a specific commercial plugin (e.g., Elementor Pro, a premium theme, MalCare) or theme, you will need to contact that product's developer directly for support. The 'Installing WordPress' team and community forums cannot provide support for commercial products, as their developers are best equipped to handle issues with their own code.
By methodically following these steps, you can almost always identify and resolve the critical error on your website. Remember, the key is to stay calm and troubleshoot one potential cause at a time.
Related Support Threads Support
-
WordPress updateshttps://wordpress.org/support/topic/wordpress-updates-12/
-
The REST API encountered an errorhttps://wordpress.org/support/topic/the-rest-api-encountered-an-error-21/
-
Meow Gallery PRO Plugin: Update failed: Download failed. Unauthorizedhttps://wordpress.org/support/topic/meow-gallery-pro-plugin-update-failed-download-failed-unauthorized/
-
Failed WordPress Update has rendered my WP-ADMIN console uselesshttps://wordpress.org/support/topic/failed-wordpress-update-has-rendered-my-wp-admin-console-useless/
-
Critical error / dashboard doesn’t showhttps://wordpress.org/support/topic/critical-error-dashboard-doesnt-show/
-
Plugin update blocked pagehttps://wordpress.org/support/topic/plugin-update-blocked-page/
-
miserable experiencehttps://wordpress.org/support/topic/miserable-experience-2/
-
Error: Es gab einen kritischen Fehler auf deiner Website.https://wordpress.org/support/topic/error-es-gab-einen-kritischen-fehler-auf-deiner-website/
-
critical issuehttps://wordpress.org/support/topic/critical-issue-16/
-
*URGENT* WordPress <= 6.1.1 – Unauth. Blind SSRF vulnerabilityhttps://wordpress.org/support/topic/urgent-wordpress-6-1-1-unauth-blind-ssrf-vulnerability/
-
help troubleshooting woocommerce errorhttps://wordpress.org/support/topic/help-troubleshooting-woocommerce-error/
-
Site empty after updatehttps://wordpress.org/support/topic/site-empty-after-update/
-
“Critical Error: Site Won’t Load After Plugin Update – Need Help!”https://wordpress.org/support/topic/critical-error-site-wont-load-after-plugin-update-need-help/
-
Critical error has been encountered in your sitehttps://wordpress.org/support/topic/critical-error-has-been-encountered-in-your-site/
-
Fatal errorhttps://wordpress.org/support/topic/fatal-error-4691/
-
kritischer Fehlerhttps://wordpress.org/support/topic/kritischer-fehler-2/
-
My WordPress store is not displaying correctlyhttps://wordpress.org/support/topic/my-wordpress-store-is-not-displaying-correctly-2/
-
I am not able to change wordpress themehttps://wordpress.org/support/topic/i-am-not-able-to-change-wordpress-theme/
-
Issue with MalCare Plugin After WordPress Updatehttps://wordpress.org/support/topic/issue-with-malcare-plugin-after-wordpress-update/
-
Fatal error: Uncaught Error: Call to undefined function elegant_description() inhttps://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-elegant_description-in/
-
class-wp-plugins-list-table.php on line 188https://wordpress.org/support/topic/class-wp-plugins-list-table-php-on-line-188/
-
Plugin Radio Player Vulnerability found in 2.0.82https://wordpress.org/support/topic/plugin-radio-player-vulnerability-found-in-2-0-82/
-
Plugin Installation Failedhttps://wordpress.org/support/topic/plugin-installation-failed-30/
-
Order_date site log warninghttps://wordpress.org/support/topic/order_date-site-log-warning/
-
Critical Error on Websitehttps://wordpress.org/support/topic/critical-error-on-website-28/
-
file_exists(): open_basedir restriction in effecthttps://wordpress.org/support/topic/file_exists-open_basedir-restriction-in-effect-5/
-
Fatal Errorhttps://wordpress.org/support/topic/fatal-error-4405/
-
About WordPress 5.5.1 Please Help Very Importanthttps://wordpress.org/support/topic/about-wordpress-5-5-1-please-help-very-important/
-
Disconnected Websitehttps://wordpress.org/support/topic/disconnected-website/
-
Help, cant upload posthttps://wordpress.org/support/topic/help-846/
-
Critical Error when updating from PHP 7.1 to 8.1https://wordpress.org/support/topic/critical-error-when-updating-from-php-7-1-to-8-1/
-
plugin kicked me out of my own would-be websitehttps://wordpress.org/support/topic/plugin-kicked-me-out-of-my-own-would-be-website/
-
Website not loading after WP upgrade to 6.2https://wordpress.org/support/topic/website-not-loading-after-wp-upgrade-to-6-2/
-
Can’t access my dashboard since i updated my iphone ios version yesterdayhttps://wordpress.org/support/topic/can-access-my-dashboard-since-i-updated-my-iphone-ios-version-yesterday/
-
There has been a critical error on this website. Please check your site admin emhttps://wordpress.org/support/topic/there-has-been-a-critical-error-on-this-website-please-check-your-site-admin-em-30/
-
Can you please tell what this mean error on phphttps://wordpress.org/support/topic/can-you-please-tell-what-this-mean-error-on-php/
-
There has been a critical error on this websitehttps://wordpress.org/support/topic/there-has-been-a-critical-error-on-this-website-27/
-
How to fix there was critical error on this website?https://wordpress.org/support/topic/how-to-fix-there-was-critical-error-on-this-website/
-
I cannot reach my wordpress site’s dashboardhttps://wordpress.org/support/topic/i-cannot-reach-my-wordpress-sites-dashboard/
-
Slider Revolution Plugin – Plugin Vulnerability Notificationhttps://wordpress.org/support/topic/slider-revolution-plugin-plugin-vulnerability-notification-2/
-
Critical errorhttps://wordpress.org/support/topic/critical-error-689/
-
wordpress arror on my pageshttps://wordpress.org/support/topic/wordpress-arror-on-my-pages/
-
Getting an error messagehttps://wordpress.org/support/topic/getting-an-error-message-9/