Knowledgebase

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

  1. 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.
  2. The email names the plugin or theme and the exact error. Click the recovery mode link inside it.
  3. Log in. WordPress pauses the faulty plugin or theme for your session only, so you can work in the dashboard.
  4. Go to Plugins, deactivate the plugin named in the email, and click Exit Recovery Mode.
The recovery link expires after a while. If it no longer works, or the email never arrived (for example because your site cannot send email), continue with the steps below.

Step 2: Find the error yourself

  1. 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.
  2. 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-includes or wp-admin usually 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

  1. In File Manager go to wp-content/plugins.
  2. Rename the folder of the plugin from the error, for example elementor-pro to elementor-pro-off.
  3. Reload the site. If you do not know which plugin it is, rename the whole plugins folder to test, then rename it back and check plugins one at a time.
  4. For a theme, rename its folder in wp-content/themes so WordPress switches to a default theme.

Step 4: Fix the real cause

What the error showsWhat to do
A plugin after an updateInstall the latest version again, or roll back to the previous version, then report it to the developer.
Two plugins doing the same jobKeep 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 changeSwitch to a PHP version your plugins support. See How to change the PHP version.
A license or "nulled" premium pluginReplace it with an original copy from the developer. Pirated plugins often contain broken or malicious code.
Your own edit in functions.phpUndo 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.

  • There has been a critical error on this website, WordPress critical error, WordPress recovery mode, PHP fatal error, WordPress technical issue email, حل مشكلة critical error ووردبريس, خطأ فادح ووردبريس

Was this answer helpful?

0 Users Found This Useful