Unexpected WordPress errors are a pain to for you to deliver a better user experience. The 404 error are a typical example which can happen to your WordPress site. In fact, some steps can be taken on your side without having to wait for your WordPress hosting provider to fix them. Under the guidance of this article, you will have the ability to troubleshoot WordPress errors on your own.
1. Create a Complete Backup of Your WordPress Site
Before any changes are made to your WordPress site, you have the need to create a full copy of all the data. Things can be much easier with a use of a WordPress backup plugin. Otherwise, you should spend much more time and energy to backup your databases and files through manual efforts. So you are advised to install a backup plugin on your WordPress site. Then what you need to confirm is that all the data has been stored in a safe location.
The reason to create a complete backup is for your convenience to restore your WordPress site in case that something goes out of control. This is a powerful weapon to fight against data loss caused by security threats, malicious attacks, and more.
2. Deactivate Plugins Installed on Your WordPress Site
Most often, there will be a plugin which has compatibility issues with your WordPress core, theme, or more. With all the WordPress plugins deactivated, you are likely to have your site function as usual. The activation of installed plugins one by one can help you find which one should be responsible for the error.
After the access to your admin area, the checking can be done on the Plugins > Installed Plugins page. From the Bulk Actions drop down menu lies a Deactivate button. With the selection of that and a click on the Apply button next to it, you can deactivate all the selected plugins on your WordPress site.
Without access to the admin area, a workaround is to deactivate all the plugins via FTP or phpMyAdmin.
With the use of an FTP client, you need to connect to your WordPress site. Then ‘plugins’ is the folder you should find inside the /wp-content/ folder. Rename the plugins folder after anything that you like, for example, ‘plugins.deactivate’.
3. Switch to a Default WordPress Theme
There are some instances where your WordPress theme is the cause of WordPress errors. Under this circumstance, you need to switch from your current WordPress theme into a default one. This will help you check whether something is wrong with your current WordPress theme. Appearance > Themes page is a place where you can activate the default theme.
Or, the job can also be finished via a FTP client. You are required to download your current theme to local computer. And then delete all other themes and just keep a default WordPress theme.
As a result, the default theme will be automatically activated without the need to take further steps. There must be something wrong with your theme if your WordPress site now can function well.
4. Backup and Delete the .htaccess File
The internal server error is probably caused by the corrupted .htaccess file. But most of you will have trouble finding the hidden file. On the result of cPanel > file manager > root directory, you can force your FTP client to show hidden files.
The .htaccess file should be downloaded to your Desktop and then deleted from your server. At this moment, you can create a new .htaccess file with a just click on the ‘Save Changes’ button in the Settings > Permalinks interface. Find the new one from your WordPress directory.
5. Fix Website URL
Without proper configurations of URL options, 404 errors, redirect issues, and some other common errors can also come to your WordPress site. These errors can be fixed when you enter the matched URLs into the Settings > General page. This is the easiest way to correct the improper settings.
Of course, you can also get these errors fixed with the use of wp-config.php file. Add the below code before /* That’s all, stop editing! Happy blogging. */.
Note: example.com should be replaced with your own domain name.
6. Check Your Server Resource Usage
The excessive use of disk space and bandwidth can also cause WordPress errors like “Quota is full, you can’t edit” and “Failed to write the file”. In fact, there is no such an unlimited hosting solution. But many of you might have not calculated the amount of server resources you need to run a WordPress site. If you exceed the limit, you should consider whether to upgrade your plan.
7. Check the File Permissions
Due to the incorrect file permissions, your WordPress site will encounter a HTTP error and some other errors. A specific permission will deal with the user access to each WordPress file and folder. With wrong permissions, you also lack the ability to make changes to the files.
In most cases, 755 is the number for the folder permission while the file permission should be 644. The permission can be reset after a right click on the wp-content folder.
Sometimes, you will have the failure to correct these errors. This may result in that only your hosting provider has the right to change the default script on their own server. Thus contacting the technical support can help you fix these errors within a few minutes.
8. Check Reading Settings
With the creation of a new WordPress site, you should have it indexed by search engines. On the Settings > Reading page, there is an option should remain unchecked: Search Engine Visibility. A possibility is that you have discouraged search engines from indexing your WordPress site unconsciously.
If you still have the failure to troubleshoot the WordPress errors, you are advised to seek further support from your hosting provider. Through the communication channels, your web host will try their best to give you the most responsive technical assistance.