Between WordPress 5.2 and WordPress 5.3 we used to get error The site is experiencing technical difficulties. But with latest release of WordPress 5.4 I think WordPress developers have changed message you would get also. If you know how to deal with the site is experiencing technical difficulties same techniques apply to solve. There has been a critical error on your website.
Quick Tip: To track what’s the error about exactly. Turn your website’s debug mode on. Once you turn the debug mode on you would get the details which file is causing. There has been a critical error on your website. error. Make sure to check your site’s error logs on your server also. See below how to turn on debug mode.
While 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. Usually, you do not get the email WordPress has sent to the location you used for installation. So you are curious if WordPress lie with you? No! WordPress sent you email using your host email processor. So kindly check your SPAM folder if you have received email in SPAM folder. If not then after you login WordPress admin go to Settings >> General and update your email location. So next time WordPress send you email that arrive on your right place.
Please note: There has been a critical error on this website error taken place of. There has been a critical error on your website since WordPress 5.7. Which was Your website is facing technical difficulty till 5.3.
Upgrade PHP to 7.4 Or Greater
WordPress 5.6 even 4.xx recommend to use PHP 7.4. I think this is the time you should upgrade your PHP version. This upgrade can be the solution to the problem you are facing. If you don’t know which version is running contact your hosting company they can help you.
What are WordPress Requirements?
Since WordPress 5.6 WordPress have now started supporting PHP 8.0. But as PHP 8.0 have not been yet adopted by several hosting companies. That’s why WordPress still supports 7.2 , 7.3 and 7.4 as well. Here are WordPress official requirements as well.
WordPress recommend servers running version 7.4 or greater of PHP and MySQL version 5.6 OR MariaDB version 10.1 or greater.
We also recommend either Apache or Nginx as the most robust options for running WordPress, but neither is required.
How to check your PHP version?
To check your current PHP version you can create a new file let’s say serverinfo.php. Now edit this file and add the next code in the file. After that run file it will give you all information about your server your server is running.
<?php
phpinfo(); //PHP function to get php information
Upgrade your PHP version via .htaccess file. You can also learn how to upgrade PHP version via FTP or cPanel file manager. Mostly upgrading PHP version fix WordPress “there has been a critical error on your website” Error.
Is this issue related to a plugin?
You are unable to access your WordPress admin area. Please try to access your file manager in cPanel. Alternatively, access the public_html directory via FTP.
Go to wp-content/ Directory them rename plugins/ directory to pluginsbackup/ 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 pluginsbackup/ to plugins/ Enter in plugin directory. Now rename each plugins directory by placing backup at end of that directory name.
Once you have changed all plugins directories names, start getting original directory names one by one. Make sure you check the website to see if it’s still working after each plugin starts working. As soon as you see which plugin is making problem just delete that plugin.
Troubleshoot your WordPress Theme
Just to make sure the issue is not the WordPress theme, go to the file manager in cPanel. Alternatively, access public_html via FTP. Go to directory wp-content/ and there you can find themes/ directory.
Enter in themes directory and rename the theme which is active on your website. By adding backup on its directory name. Then see if wp-admin/ start working if that do so this means problem is with your Theme.
Otherwise rename your theme back to its original name and try something else problem is not with your theme.
If the problem is with the theme and you are not the theme author, contact the theme author. Do this as soon as possible. They can help you solve the issue. If you are developer then follow steps below.
There has been a critical error on this website.
In case you are running WordPress network instead of Single WordPress installation. Then you receive errors related to site in network for example. There has been a critical error on this website. If a theme on a specific website has an error, it may refer to this website. A plugin may also have an error mentioning this website instead of this network.
I really liked your site.