There Has Been a Critical Error on This Website (WordPress): causes and fix
Quick answer: A plugin or theme that broke after an update is almost always the cause. Open the recovery mode link in the admin email first; if there is none, rename the plugins folder via your host.

Symptoms
- The site shows only "There has been a critical error on this website."
- The dashboard won't load either, or shows the same plain error page
- You received an email titled "Your Site is Experiencing a Technical Issue"
- The error started right after installing or updating a plugin or theme
Likely causes
- A plugin became incompatible with your PHP version or another plugin after an install or update
- The theme or its functions.php file has a syntax error
- The host's PHP version is too old or too new for WordPress or your plugins
- PHP ran out of memory, or a core file was uploaded incompletely
- A nulled (pirated) plugin or theme contains broken or malicious code
Step-by-step fix
Start from step one and test again after each step; steps go from the simplest to the most technical.
-
Open the recovery mode email
WordPress emails the site admin address when a critical error happens, naming the plugin or theme at fault and including a link to "recovery mode". Click it to log in to the dashboard and deactivate that plugin. Check your spam folder too.
-
Undo your last change
If you installed or updated a plugin or switched themes just before the error, that change is the likely culprit. If the dashboard still opens, deactivate it and reload the site.
-
Rename the plugins folder
If you can't reach the dashboard, use your host's File Manager or FTP, go to wp-content and rename the plugins folder to plugins-old. If the site comes back, a plugin is to blame: rename the folder back and reactivate plugins one at a time from "Plugins" until the error returns.
-
Switch the theme temporarily
In wp-content/themes, rename the active theme's folder; WordPress falls back to a default theme if one is installed. If the site loads, the theme or its functions.php is the problem. If no default theme is installed you may see a different error, so rename the folder back.
-
Check the PHP version
In your hosting control panel's PHP version tool (often called "Select PHP Version" or "MultiPHP Manager"), choose a version WordPress supports. If you changed it recently, switch back to the previous version, then update your plugins.
-
Turn on debug logging
Back up wp-config.php, then add these lines above "That's all, stop editing": define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); The exact error, including the file path (plugins/... or themes/...), is then written to wp-content/debug.log. Remove the lines once the site is fixed.
-
Raise the PHP memory limit
If the log mentions "Allowed memory size", add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php. See the "Allowed memory size exhausted" guide for the full fix.
-
Re-upload WordPress core files
If the log points to a file in wp-admin or wp-includes, download the latest WordPress from wordpress.org and replace only those two folders via FTP. Don't touch wp-content or wp-config.php. Back up the full site and database first.
If nothing worked
If nothing works, copy the error from debug.log and send it to your host's support; they can also read the server error log. If a premium plugin or theme is at fault, contact its developer with your PHP version and the exact error. Don't install nulled plugins or themes; they are a common cause of this error and often contain malware. Never hand your hosting or admin password to someone promising an instant fix on social media; if you hire an expert, create a temporary account and delete it afterward.
Frequently asked questions
Will renaming the plugins folder erase my plugin settings?
No. Plugin settings are stored in the database. After you rename the folder back, you only need to reactivate the plugins from the dashboard.
Why didn't I get the recovery mode email?
The admin email in your settings may be wrong, your host may not send mail, or the message landed in spam. In that case, use the File Manager method instead.
Related problems

WordPress 500 Internal Server Error
A 500 error means the server hit a problem running your site without saying why. A broken .htaccess file, a faulty plugin or low PHP memory are the usual causes; check your host's error log first.

WordPress White Screen of Death
A completely blank page means PHP stopped before building the page and the error is hidden. A plugin, theme or memory limit is usually to blame; turn on WP_DEBUG first to reveal the real error.

WordPress Allowed Memory Size Exhausted Error
PHP used up the memory allowed to build a page. Add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php first; if that doesn't help, raise memory_limit in your hosting control panel.
Terms used on this page
More WordPress & Websites problems
All problems WordPress & Websites
Last updated: