Troubleshooting

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.

WordPress Advanced About 30 min 8 steps WordPress & Websites
There Has Been a Critical Error on This Website (WordPress): causes and fix — A woman at a home office desk late at night looks at her laptop in frustration, one hand on her forehead.

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

  1. A plugin became incompatible with your PHP version or another plugin after an install or update
  2. The theme or its functions.php file has a syntax error
  3. The host's PHP version is too old or too new for WordPress or your plugins
  4. PHP ran out of memory, or a core file was uploaded incompletely
  5. 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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

Terms used on this page

More WordPress & Websites problems

All problems WordPress & Websites

Last updated:

Type a few letters of the topic; spelling variants are treated as the same.