How to Fix WordPress Critical Error
Are you looking for how to fix WordPress critical error, then you’ve landed at the right place.
WordPress may once show you a message that “There has been a basic mistake on this site. If it’s not-too much trouble, browse your site administrator’s email inbox for directions. It will likewise incorporate a connection to investigating in the WordPress guide.
In this article, we will direct you step by step on how to fix the WordPress critical error easily. And also about what causes WordPress critical error and how to avoid it.
What is WordPress Critical Error?
The WordPress critical error is an error that stops WordPress from loading all the content it needs to work well.
This WordPress error resulted in a white-screen of death or a fatal-error message on the screen. Most learners did not find it helpful and tried to resolve the issue independently.
Since-WordPress 5.2, users will now see a generic-error message:
“There has been a critical-error on this website. Please check your site admin-email inbox for instructions with a link to the WordPress debugging-guide.
It will send an email message to your WordPress site’s administrator email address with additional insights regarding the mistake and a connection to get to your WordPress dashboard in the recuperation mode.
What Causes the WordPress critical error?
The WordPress critical error is generally caused by a cracked script, plugin, or code that prevents WordPress from functioning well.
WordPress cannot-load the rest of the files it needs until you resolve this problem.
If you have copied and pasted code snippets from some tutorial to your website, it might trigger a critical-error.
All top WordPress plugins are fully tested, making them less likely to cause a critical error. However, a clash with another WordPress plugin or some custom-code may cause the error.
Let’s see how to easily fix the WordPress critical error and get your website back.
Fixing The WordPress Critical Error
The critical error message itself isn’t extremely helpful in tracking down the reason for the issue and fixing it. Fortunately, WordPress likewise sends an email to the administrator email address of your site.
Many WordPress sites have issues-sending emails, so you might not get this important email notification. If you did-not receive any email-then, do not worry. Digiscap will show you how to fix the WordPress critical error without the email.
But if you receive the WordPress critical error email notification, we will show you how to make sense-of it and use-it to bring your website-back.
1. Fixing WordPress Critical Error with WordPress Debugging-Email
First, visit the inbox for the email address you use as the WordPress administration-email on your website.
Not sure which email-address you used as the admin-email? It is the email-address you provide when installing-WordPress.
If you are on Bluehost or used-a WordPress auto-installer, your admin email-address will likely be the same address you have used for your WordPress-hosting account.
RELATED BLOGS: READ MORE
You will see an-email in your inbox with the subject line “Your Site is Experiencing a Technical Issue.” Inside it, you will find more helpful information about what caused the critical-error on your WordPress-website.
For example, in the following-screenshot, you can see that the WordPress-theme on our test site caused the critical-error.
The email also includes a special-link that will enable you to log in to your WordPress-website in recovery mode to fix and study the issue.
At the end of the email, you-will sees even more detailed information about the error, including the specific file and code that triggered it.
RELATED BLOGS: READ MORE
In this example given below, some code at line-614 in our theme’s-functions. php file is responsible for causing the error.
Here is another instance showing error details caused by a cracked WordPress plugin.
You need to click-on the link to WordPress-recovery mode, which will take you to your WordPress-admin area.
You’ll be asked to log-in to continue.
Once you are logged-in, you will see a notification informing you about the critical-error, what causes the error, and a link to the place where you can-go to fix it.
For example, the following-screenshot tells us about the critical error caused by the plugin with a link to the plugins page.
If you click-on the link, it will show you the wrong plugin. It will also show you which line of code causes the error.
You can go-ahead and deactivate-the plugin for now.
Then you can find an-alternative WordPress plugin or see if you can-get support from the plugin-developers.
Similarly, if the issue is with your-theme, you will see a-link to the Themes-page. At the end of the page, you can-see the issue’s theme-causing.
You can change your WordPress-theme or delete the broken theme and reinstall a fresh-copy of the same-theme from the official-source to see if that resolves-the issue.
Once you have marked the issue, you can click on the Exit-Recovery Mode button at the-top.
In most-cases, your WordPress-website would now start-working normally.
However, if you are still-seeing the WordPress critical error, you can try the troubleshooting steps in the next step.
2. Fixing WordPress Critical Error Manually
If you didn’t get the WordPress basic issue warning email, then, at that point, this is the way you can investigate and fix the basic mistake in WordPress.
If the mistake was brought about by a new move you made, you could fix that activity to fix the issue.
For example, assuming you introduced a new module and actuating it caused the basic mistake, then, at that point, you want to deactivate that module (we’ll tell you the best way to do that in the initial step underneath).
Then again, if you are uncertain, you can follow these means.
1. Deactivate All WordPress-Plugins
The simple way to disable a cracked WordPress plugin is by deactivating-it. However, you don’t have access to the admin-area due to the critical error, and you don’t-know which plugin to deactivate.
To address this, we will-deactivate all WordPress-plugins. Don’t worry; you can-easily reactivate them once you get-access to your WordPress-admin-area.
Connect to your WordPress-website using an FTP-client or the File Manager-app in your WordPress hosting-control-panel.
Once connected, you need to navigate-to the /wp-content/ folder.
Inside the wp-content folder, you will-see a folder called ‘plugins.’ You need to right click-on it and then-select the ‘Rename’ option.
Next, change-the name of the plugins-folder to anything that you like. In this example, we’ll call-it ‘plugins.deactivate’.
Once you have done this, all of your plugins will be-deactivated.
Mostly, WordPress looks for the plugins-folder to load the activated plugins on your-website. When it cannot find the plugins-folder, it simply cannot activate the-plugins and automatically-sets them as-deactivated.
You can now visit your-website to see if the critical-error message has disappeared.
Note: Even if the critical error issue is resolved or-not, don’t forget to rename-the plugins. Deactivated folder-back to ‘plugins.’ WordPress will then recognize the folder. You’ll be able to reactivate them from the WordPress dashboard to identify which one-caused the critical error.
2. Switch to Default-Theme
The next step in troubleshooting the critical-error is to switch your WordPress-theme to a default theme. This will fix the critical error if some code causes it in your current WordPress theme.
Go to the WordPress.org themes directory and download a fresh-copy of the TwentyTwenty or Twenty Twenty-One WordPress theme.
Next, you need to unzip the theme-file to your computer. This will create-a-folder with the theme-name on your computer.
Now you need to connect to your WordPress-site using an FTP client or the file-manager app in your hosting control-panel. Once-connected, navigate to the /wp-content/themes folder, and you will see a list of all-themes installed on your website.
Go ahead and download all-of-them to your computer as a backup. After that, you need to delete-all theme-folders from your website.
Your WordPress site now has no-theme installed. To fix-this, go ahead and upload the default-theme folder you downloaded earlier.
Once finished, you can-try visiting your website.
If your WordPress-theme caused the critical-error, then it should disappear-now, and you’ll be able to access-your website.
3. Reinstall WordPress
A crooked WordPress core-file or malware could also cause a critical-error in WordPress. The simple way to fix this is by reinstalling-WordPress.
Go to-WordPress.org and download a fresh-copy of WordPress to your-computer. After downloading the-file, you need to unzip-it to your computer. This will create a folder-called ‘wordpress’ containing all the files-you need for the reinstall.
Next, you need to connect to your WordPress-site using an FTP client or the file-manager app in your hosting control-panel.
Once connected, you need-to navigate to the root-folder of your website. The root-folder is the one that contains wp-admin, wp-content, wp-includes, and wp-admin folders inside it.
Now select the files inside the wordpress-folder on your computer and upload-them to your website. Your FTP-client will ask if you want to overwrite-these files or skip-them. You need to select ‘Overwrite’ and check-the box-next to the ‘Always use this action’ option.
Click on the OK-button to continue. Your FTP-client will now replace all your core WordPress-files with fresh copies from your computer.
Once finished, you can try-visiting your website to see if this resolved-the error.
If a corrupt-WordPress core file or malware caused the critical, the error should disappear.
We hope this article helped-you troubleshoot and fix-the critical error in WordPress.