How to Fix the “There Has Been a Critical Error on Your Website” Error in WordPress

Affiliate disclosure: In full transparency – some of the links on our website are affiliate links, if you use them to make a purchase we will earn a commission at no additional cost for you (none whatsoever!).

In this blog post, we will go over a few steps to take in order to resolve the most common WordPress error “There has been a Critical Error on your Website.”

This error has been reported in recent WordPress versions, specifically from WordPress 5.4 to the most recent WordPress 5.7. WordPress was only displaying the white screen, also known as the white screen of death, prior to this message (WSoD). In the following paragraphs, we will discuss the possible causes of this problem as well as possible solutions.

Let’s get started and get your WordPress running!

How to Fix the “There Has Been a Critical Error on Your Website” Error in WordPress

The Cause of the Error

The message “There Has Been a Critical Error on Your Website” clearly states that some error is preventing the website from being viewed in the browser.

This could be due to a variety of factors, including plugins, themes, updates, PHP versions, changes to the website’s document root, memory consumption, and so on.

We may not know what the problem is right away, but if we look into it further, we may be able to identify it and become acquainted with it.

Once the problem has been identified, it is much easier to fix it or report it to the development team or your hosting provider if it is server-related. You can check rosehosting coupon codes for the latest deals and offers.

There Has Been a Critical Error on Your Website

Updated PHP Version

When we update the PHP version, we do so to improve the security of the WordPress website and to ensure the compatibility of any new plugins or themes that are installed. However, if we receive the error “There has been a Critical Error on your Website,” it is almost certainly due to the new PHP version. Simply revert to the previous PHP version via your control panel, or remove it and reinstall the previous version if your server lacks a control panel. Please keep in mind that an out-of-date PHP version can cause the website to crash. In this case, you must update the PHP version to resolve the problem.

New Theme Installed

The new Theme may occasionally break the website because it is incompatible with the version of WordPress you are using or with some plugins. To revert to the previous theme, log in to your WordPress admin dashboard and navigate to Appearances —> Themes. If this does not help, it is best to make a backup of the website’s document root, as well as a MySQL database, dump the next time you install a new theme.

Plugin Issues

because it is more likely to install a new plugin than a theme or something else, plugins can sometimes cause this error. There are numerous WordPress plugins available in the plugins section, and if you do not read the documentation to determine whether the plugin is compatible with your WordPress version or theme, the installation may be fatal and break your website. If the website is broken after installing the plugin, simply rename the plugin name to the plugin. Directly backup on your server, and then refresh the page. This disables the plugin and allows you to remove it from your WordPress admin. Please keep in mind that if a plugin is broken, you will be unable to access the WordPress admin dashboard, which is why you must rename the plugin manually on your server or via FTP.

Memory Limit

WordPress has a limit on how much memory any PHP script can use. If this limit is exceeded, the white screen with the error message discussed in this post will appear. The PHP memory limit can be increased in the php.ini file or directly in the wp-config.php file located in the WordPress website’s document root. If your server has a control panel, you can easily increase the PHP memory limit through the panel GUI without modifying any files on the server.


Malicious codes and scripts can be injected if you use outdated PHP versions or plugins or themes. Removing malicious codes and scripts is a difficult task, and deleting malicious scripts can sometimes result in the deletion of WordPress core files, which can cause a variety of issues. If you have fully managed VPS support included in your services, it is best to contact your hosting provider for this.

Enable Debug Mode

The previous paragraphs explained what could be the cause of the error “There has been a Critical Error on your Website,” but in this paragraph, we will show you how to easily find the correct cause. You should think about enabling WordPress’s debug mode as an option. When debug mode is enabled, you will see the exact PHP errors that will appear in the browser. To enable debug mode, navigate to the following line in wp-config.php:

sudo nano wp-config.php

And paste the following lines of code at the end of the file.

define( 'WP_DEBUG', true );

define( 'WP_DEBUG_DISPLAY', true );

define( 'WP_DEBUG_LOG', true );

You can easily debug the issue once the debug mode and debug log is enabled.

Of course, you are not required to correct the “There has been a critical error on your website.” If you make use of one of their Managed VPS Hosting services, You can simply request that their expert Linux administrators resolve this issue for you. They are available 24 hours a day, 7 days a week, and will respond to your request as soon as possible.

If you enjoyed this post on how to fix the “There has been a Critical Error on your Website Error in WordPress,” please share it with your friends on social media using the buttons on the left or simply leave a comment below. Thanks.

Alisia Thompson

As it’s said, the greatness of writing reflects the greatness of re-writing and here, the works of Alisa is the greatest example of the same. Being outstandingly perfect in copywriting, all the articles of AffiliateBay are complemented by her unerring and precise editing. This makes Alisa Thompson an invaluable gemstone of AffiliateBay.

Leave a Comment