How to fix "There has been a critical error on this website" in WordPress
"There has been a critical error on this website." is the message WordPress shows when PHP hits a fatal error while building a page. Sometimes it adds "Please check your site admin email inbox for instructions." The good news: WordPress usually tells you which plugin or theme caused it. This guide shows you how to find the cause, get back into your dashboard, and fix the WordPress critical error for good.
Step 1: Use the recovery mode email
- Open the inbox of the email address set as the site administrator (in Settings → General → Administration Email Address). Look for a message with a subject like "Your Site is Experiencing a Technical Issue". Check spam as well.
- The email names the plugin or theme and the exact error. Click the recovery mode link inside it.
- Log in. WordPress pauses the faulty plugin or theme for your session only, so you can work in the dashboard.
- Go to Plugins, deactivate the plugin named in the email, and click Exit Recovery Mode.
Step 2: Find the error yourself
- In cPanel File Manager, open the site folder and look for
error_log. The last PHP Fatal error line shows the file path that failed. - For more detail, turn on the debug log as described in How to enable WP_DEBUG and read the WordPress debug log.
Read the path in the error:
wp-content/plugins/name/means that plugin.wp-content/themes/name/means that theme.wp-includesorwp-adminusually means another plugin passed bad data to WordPress, or core files are incomplete after a failed update.
Step 3: Disable the faulty plugin or theme
- In File Manager go to
wp-content/plugins. - Rename the folder of the plugin from the error, for example
elementor-protoelementor-pro-off. - Reload the site. If you do not know which plugin it is, rename the whole
pluginsfolder to test, then rename it back and check plugins one at a time. - For a theme, rename its folder in
wp-content/themesso WordPress switches to a default theme.
Step 4: Fix the real cause
| What the error shows | What to do |
|---|---|
| A plugin after an update | Install the latest version again, or roll back to the previous version, then report it to the developer. |
| Two plugins doing the same job | Keep one. Two cache, SEO or security plugins often clash. |
| "Allowed memory size ... exhausted" | Raise memory. See How to fix the WordPress "Allowed memory size exhausted" error. |
| "Call to undefined function" or syntax errors after a PHP change | Switch to a PHP version your plugins support. See How to change the PHP version. |
| A license or "nulled" premium plugin | Replace it with an original copy from the developer. Pirated plugins often contain broken or malicious code. |
| Your own edit in functions.php | Undo the edit from File Manager, or restore the file from a backup. |
Step 5: Reinstall WordPress core if needed
If the error points to wp-includes and no plugin is involved, the core files may be damaged. In the dashboard go to Dashboard → Updates and click Re-install version. This replaces core files only; your content, plugins and themes are not touched. Take a backup first.
Common problems
- The error appears only in the dashboard: an admin-only plugin feature is failing. The recovery email or error log will name it.
- The error appears only on checkout or one page: test with the related plugin (payment gateway, shipping, page builder) disabled.
- It came back after a few days: automatic updates may have re-installed the faulty version. Turn off auto-updates for that plugin until it is fixed.
Frequently asked questions
I never received the recovery email. Why?
Either the admin email address is wrong or old, or your site's emails are not being delivered. Use the error log method instead, and later set up proper email sending for WordPress.
Will disabling the plugin delete my data?
No. Deactivating or renaming a plugin keeps its data. Only deleting it and choosing to remove data in its own settings would remove anything.
Is this the same as the white screen?
Yes, with a friendlier message. The steps in How to fix the WordPress White Screen of Death (blank white page) apply here too.
Need help? Open a support ticket or message us on WhatsApp +20 127 113 3655.