WordPress There has been a critical error on your website

WordPress gives you message “There has been a critical error on your website”. Please check your site admin email inbox for instructions. They also share helpful article’s link on wordpress.org Learn more about debugging in WordPress. Well usually you do not get the email which WordPress have sent to email which you used to install the WordPress.

Luckily, it’s possible to fix this issue without taking too much time. This article will discuss the “There has been a critical error on your website” message means and six methods to fix it.

What causes There has been a critical error on your website

With the latest release of WordPress 5.4 i think WordPress developers have changed message you would receive also. If you know how to deal with the site is experiencing technical difficulties same methods apply to solve. There has been a critical error on your website.

Much like the White Screen of Death as previous WordPress realease, the issue can usually be traced back to an issue with PHP. Either an error in your code, plugins, or theme. It may also be an issue of database.

How to fix There has been a critical error on your website

  1. Check Email and Error Logs
  2. Turn On WordPress Debug
  3. Check Plugin or theme
  4. Restore From a Backup
  5. Upgrade PHP Version
  6. Check for Malware

Check Email and Error Logs

WordPress sent you email using your host email processor, so go and check your email junk or spam folder. If not then after you login WordPress admin go to Settings >> General and update your email address. So next time WordPress send you email that arrive on your right address.

On your hosting account and go to “public_html > error_log”. The file records four types of PHP errors – warning, notice, parse, and fatal. At the beginning of each log, you’ll see the type of error that was found. If you find a parse or fatal error, you’ll have to fix it.

If you can’t locate the error_log file, ask your hosting provider for help. Keep in mind that the error_log file will only be available if you enable PHP error logging.

2. Turn On WordPress Debug

The quickest way to know why WordPress is throwing this error or what’s causing the problem. Edit your “wp-config.php” from WordPress’s root folder then follow final steps on this post below. Turn on debug mode so you can find more details about the issues you are facing.

Look for below text

//Wordpress debug
define('WP_DEBUG', false);

And change to false

//And replace with
define('WP_DEBUG', true);

Debugging is now enabled on your site and errors will be shown. Visit your WordPress site and fix the error shown to you.

3. Check Plugin or Theme

WordPress admin will not be reachable, then access your file manager in cPanel or access public_html directory via FTP.

Go to “wp-content” Directory and rename “plugins” or “themes” directory to “plugins–” or “themes–” now try to load your site. If this works that means you have problem with a plugin.

If problem is with plugin change back the directory name to “plugins” Enter in plugin directory. Now rename each plugins directory by placing “–” at end of that directory name.

Once you have changed all plugins directories names, start getting original directory names one by one and make sure you check the website if that’s still working after each plugin start working. As soon as you see which plugin is making problem just delete that plugin.

Do the same with theme, if turn out that there are no issues with all your plugins.

4. Restore From a Backup

When WordPress errors are beyond your head, restoring a backup can be a quick and easy way out. While it won’t always solve the issue, it’s definitely worth a shot. And if the problem happens again, you may be able to retrace your steps next time.

5. Upgrade PHP Version

WordPress requires PHP 7.4 or greater. Check the PHP version on your web host, and if you find you’re using an older version of PHP, upgrading it to 7.4 or greater can fix the “There has been a critical error on your website” error.

6. Check for Malware

Sometimes a critical error can be caused by malware, especially if you’re noticing strange PHP scripts that can’t be traced back to your plugins or theme. Removing malware is a tough task, more so when you’re locked out of your website and can’t even run a scan.

It can be hard to tell the difference between legitimate files and suspicious ones added by malware, and deleting random core files isn’t likely to end well. Malware can also modify PHP files, hiding scripts in them you won’t notice as malicious unless you’re a developer.

If you suspect malware is the cause, then it may be best to turn to your web host for help.


If you’ve tried all these options and nothing is working, you definitely have a real problem on your hands. But you can always turn to us for help identifying and fixing the issue. We will do our best and provide you with the support you need to get your site up and running again.

You may also like...