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 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.
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. Well usually you do not get the email which WordPress have sent to email which you used to install the WordPress. 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 may have received email in 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.
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 so i think this is the time you should upgrade your PHP version and this can be the solution of 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 following code in the file. After that run file it will give you all information about the system 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?
As you are unable to access your WordPress admin area so please try to access your file manager in cPanel or access 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 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.
Troubleshoot your WordPress Theme
Just to make sure if issue is not WordPress theme again go to file manager in cPanel or 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 in condition problem is with theme and you are not theme author try to reach theme author ASAP they can help you to solve 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. And in case a theme on a specific website or a plugin have error that mentions like on this website instead of on this network.