How to Fix the WordPress 'Critical Error' and Get Your Site Back Online
Content
Encountering the generic "There has been a critical error on this website" message can be alarming. This message is WordPress's way of saying a fatal PHP error has occurred, preventing a page or your entire site from loading. This guide will walk you through the most common causes and the step-by-step troubleshooting process to resolve it.
Why This Error Happens
A "Critical Error" or "White Screen of Death" is typically a symptom of a deeper conflict or problem. Based on common community reports, the culprits are usually one of the following:
- Plugin Conflicts: A newly installed or updated plugin is the most frequent cause. It might be incompatible with your current version of WordPress, PHP, or another plugin.
- Theme Issues: An outdated or faulty theme (especially a custom or premium one) can trigger fatal errors, particularly after a core WordPress or PHP update.
- Outdated PHP Version: WordPress heavily relies on PHP. Running an old, unsupported version of PHP (e.g., 7.0 or below) is a common source of compatibility errors.
- Corrupted Core Files: Sometimes, a failed update can corrupt the core WordPress files.
Step-by-Step Troubleshooting Guide
Important: Before you begin, if you can access your site's admin email, check it for a detailed error message from WordPress. This email often names the specific plugin or theme causing the issue, which can save you significant time.
1. Check Your Server's Error Log (The Fastest Method)
Your web hosting server keeps a log of errors that is often the quickest way to identify the problem.
- Access your hosting control panel (e.g., cPanel).
- Look for a section called "Error Log," "Logs," or "Metrics."
- Open the latest error log file. It will contain detailed error messages that point directly to the faulty plugin, theme, or code.
- If you cannot find it, your hosting provider's support team can help you locate it.
2. Enable WordPress Debugging
If the server logs don't provide a clear answer, you can enable WordPress's built-in debug mode to generate a specific log file.
- Connect to your site via FTP or your hosting provider's File Manager.
- Locate the
wp-config.phpfile in your WordPress root directory. - Edit the file and 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.
- Now, revisit your website to trigger the critical error again. This will silently create a
debug.logfile in the/wp-content/directory. - Check this log file for detailed error messages that identify the problem.
3. Isolate the Problem: The Quick Fix
If you cannot access your WordPress dashboard (/wp-admin), you will need to deactivate components manually.
A. Deactivate All Plugins
- Via FTP/File Manager, navigate to the
/wp-content/folder. - Rename the
pluginsfolder toplugins.deactivate. - This will disable all plugins at once. Check if your site loads normally.
- If it does, rename the folder back to
plugins. - Then, go into the plugins folder and rename individual plugin folders one by one (e.g., change
plugin-nametoplugin-name.deactivate), checking your site after each change. This will help you identify the problematic plugin.
B. Switch to a Default Theme
- If deactivating plugins doesn't work, the issue may be your theme.
- Via FTP/File Manager, navigate to
/wp-content/themes/. - Rename your current active theme's folder (e.g., change
my-themetomy-theme.deactivate). - WordPress will automatically switch to a default Twenty Series theme (e.g., Twenty Twenty-Four) if one is installed. If your site works now, you know your theme was the cause.
4. Check Your PHP Version
An outdated PHP version is a common cause of errors. Log into your hosting control panel and check which version of PHP your site is using. The 'Fixing WordPress' team suggests using PHP 8.0 or 8.2 for the best compatibility and performance. Update if necessary, but always test on a staging site first if possible.
What to Do Next
- If you found a problematic plugin: Keep it deactivated and check the plugin's support forum for updates or known issues. You may need to find an alternative.
- If you found a problematic theme: Contact the theme's developer for support. Ensure the theme is updated to the latest version.
- If a plugin/theme update caused the issue: Sometimes, rolling back to a previous version of the plugin can resolve the conflict until a patch is released.
By methodically working through these steps, you can almost always identify and resolve the cause of a WordPress critical error.
Related Support Threads Support
-
Activating new usershttps://wordpress.org/support/topic/activating-new-users/
-
My wordpress is showing this errorhttps://wordpress.org/support/topic/my-wordpress-is-showing-this-error-please-help-3/
-
Customizer Broken – Kadence Themehttps://wordpress.org/support/topic/customizer-broken-kadence-theme/
-
Unable to access and edit Posts and Pageshttps://wordpress.org/support/topic/urgent-assistance-needs-unable-to-access-and-edit-posts-and-pages/
-
Critical error after installing optimizepress pluginhttps://wordpress.org/support/topic/critical-error-after-installing-optimizepress-plugin/
-
My wordpress is showing this error. Please helphttps://wordpress.org/support/topic/my-wordpress-is-showing-this-error-please-help/
-
wordpress error when i tried to loginhttps://wordpress.org/support/topic/wordpress-error-when-i-tried-to-login/
-
Erro crítico no sitehttps://wordpress.org/support/topic/erro-critico-no-site-3/
-
wp-admin Errorhttps://wordpress.org/support/topic/wp-admin-error-34/
-
Critical error at my bloghttps://wordpress.org/support/topic/critical-error-at-my-blog/
-
Trying To Access Plugins Page In Backendhttps://wordpress.org/support/topic/trying-to-access-plugins-page-in-backend/
-
Critical Error on My websitehttps://wordpress.org/support/topic/critical-error-on-my-website-14/
-
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-46/
-
Your Site is Experiencing a Technical Issue- critical errorhttps://wordpress.org/support/topic/your-site-is-experiencing-a-technical-issue-critical-error/
-
Critical Error on Blog Subdomain Only When Logged Out – Ongoing for 3+ Monthshttps://wordpress.org/support/topic/critical-error-on-blog-subdomain-only-when-logged-out-ongoing-for-3-months/
-
A critical error has occurred on my website.https://wordpress.org/support/topic/a-critical-error-has-occurred-on-my-website/
-
Critical Error on website, Theme conflict, Dashboard not displaying righthttps://wordpress.org/support/topic/critical-error-on-website-theme-conflict-dashboard-not-displaying-right/
-
Maintenance Modehttps://wordpress.org/support/topic/maintenance-mode-40/
-
Your Site is Experiencing a Technical Issuehttps://wordpress.org/support/topic/your-site-is-experiencing-a-technical-issue-140/
-
Cant access astra starter templateshttps://wordpress.org/support/topic/cant-access-astra-starter-templates/
-
Cannot access Adminhttps://wordpress.org/support/topic/cannot-access-admin-12/
-
There has been a critical error on this website.https://wordpress.org/support/topic/there-has-been-a-critical-error-on-this-website-395/
-
Critical error? Can’t login?https://wordpress.org/support/topic/critical-error-cant-login/
-
There has been a critical error on this website.https://wordpress.org/support/topic/there-has-been-a-critical-error-on-this-website-394/
-
Your Site is Experiencing a Technical Issuehttps://wordpress.org/support/topic/your-site-is-experiencing-a-technical-issue-146/
-
Critical Errorhttps://wordpress.org/support/topic/critical-error-784/
-
Warning with WP Cronhttps://wordpress.org/support/topic/warning-with-wp-cron-2/
-
WP Core Manager Fatal Errorhttps://wordpress.org/support/topic/wp-core-manager-fatal-error/
-
Website suddenly down – why?https://wordpress.org/support/topic/website-suddenly-down-why/
-
Critical Errorhttps://wordpress.org/support/topic/critical-error-774/
-
Critical Errorhttps://wordpress.org/support/topic/critical-error-827/
-
Critic Error PHPhttps://wordpress.org/support/topic/critic-error-php/
-
In this case, WordPress caught an error with one of your plugins, Core Handler.https://wordpress.org/support/topic/in-this-case-wordpress-caught-an-error-with-one-of-your-plugins-core-handler/
-
Critical Error – Can’t Fixhttps://wordpress.org/support/topic/critical-error-cant-fix/
-
Critical Error Not Getting Emailhttps://wordpress.org/support/topic/critical-error-not-getting-email/
-
Fixing broken plugins pagehttps://wordpress.org/support/topic/fixing-broken-plugins-page/
-
Cannot Access the Admin areahttps://wordpress.org/support/topic/cannot-access-the-admin-area/
-
Critical Error After Uploading backup websitehttps://wordpress.org/support/topic/critical-error-after-uploading-backup-website/
-
My website crashes due to critical error; can’t even log inhttps://wordpress.org/support/topic/my-website-crashes-due-to-critical-error-cant-even-log-in/
-
My website has “critical error” but email haven’t been received…https://wordpress.org/support/topic/my-website-has-critical-error-but-email-havent-been-received/
-
Cant sign in to my wordpress admin dashboardhttps://wordpress.org/support/topic/cant-sign-in-to-my-wordpress-admin-dashboard/
-
can’t access dashboard–Class “AutomatticJetpackRoles” not foundhttps://wordpress.org/support/topic/cant-access-dashboard-class-automatticjetpackroles-not-found/
-
Error while visiting dashboardhttps://wordpress.org/support/topic/error-while-visiting-dashboard/
-
Critical error on my websitehttps://wordpress.org/support/topic/critical-error-on-my-website-13/
-
Critical error on the Plugins page in WordPress adminhttps://wordpress.org/support/topic/critical-error-on-the-plugins-page-in-wordpress-admin/
-
Fatal error: An error of type E_ERRORhttps://wordpress.org/support/topic/fatal-error-an-error-of-type-e_error-2/
-
Critical Error Message when opening “Products” Tabhttps://wordpress.org/support/topic/critical-error-message-when-opening-products-tab/
-
Importing theme and its demo import files cause critical wordpress errorhttps://wordpress.org/support/topic/importing-theme-and-its-demo-import-files-cause-critical-wordpress-error/
-
Critical Error / Don’t know email associated with accounthttps://wordpress.org/support/topic/critical-error-dont-know-email-associated-with-account/
-
Pages section showing Critical Errorhttps://wordpress.org/support/topic/pages-section-showing-critical-error/
-
Cannot edit pages or postshttps://wordpress.org/support/topic/cannot-edit-pages-or-posts-2/
-
Page is not editablehttps://wordpress.org/support/topic/page-is-not-editable/
-
Webseite Down / Kritischer Fehler / keine Adminzugriff mehrhttps://wordpress.org/support/topic/webseite-down-kritischer-fehler-keine-adminzugriff-mehr/
-
WordPress accesshttps://wordpress.org/support/topic/wordpress-access-3/
-
error message on Top of the Admin Panelhttps://wordpress.org/support/topic/error-message-on-top-of-the-admin-panel/
-
Site crashed while edit MU plugin using WP file managerhttps://wordpress.org/support/topic/urgentsite-crashed-while-edit-mu-plugin-using-wp-file-manager/
-
Critical Error on Site – No cPanel/FTP Access – Only WordPress Loginhttps://wordpress.org/support/topic/critical-error-on-site-no-cpanel-ftp-access-only-wordpress-login/
-
Can’t access my Admin Panel Dashboardhttps://wordpress.org/support/topic/cnat-access-my-admin-panel-dashboard/