WordPress currently dominating the web development arena as 59% of total websites are powered by it. This is typically due to its simple web developer, availability of varieties of plugin and themes. Though WordPress is stable software and functions without encountering the errors. However, it can’t be said that error will not occur and if so things can be devastating. Fortunately, these errors can be solved by performing the simple operation or sometimes programming approach. To make things easy for you we have listed five most common errors you may encounter in process of WordPress site development and after the website is running quite well. Let’s get started!
500 Internal Server Errors
The first error in our list is ‘500 internal server error’. The most common reason behind the error is the corrupt .htaccess file just like in any case of error 400, error 403 etc. Other causes can be faulted plugins and themes and even improper installation of WordPress itself.
There are certain ways to fix this error and the most common one is editing the .htaccess file. With the help of FTP client, you will be able to access on your server. Next step will be navigated to the root directory of your WordPress installation and locate the .htaccess file. Just right-click on it and save it before you go further. Now rename the file such as .htaccess_new and save the changes. Reload the site, if it works Congratulations and if it does not work disable all the plugin and reload the website. If it works, you can find the plugin that causing the error by enabling them one by one and checking the status of the site. You can use phpMyAdmin tool provided 000webhost.com in order to perform the similar steps.
Sometimes PHP memory limits can result from the 500 internal error. Increasing PHP memory limit may solve the problem.
Maintenance Mode Error
Second most common error as it is associated with upgrading process of WordPress that takes a place frequently. The errors look like the one displayed in the screenshot.
To keep up with trends WordPress update itself to a new version frequently. The common cause behind this maintenance error is a .maintenance file which was created during the process of updating. If the file was not removed properly after the upgrading process or the upgrade process fails itself you will most probably see this error.
To eliminate the maintenance error the process is simple. Get access to your server with the help of your FTP client. Navigate to the root directory of WordPress installation. Find the .maintenance file and simply delete. To prevent this error you can opt for automatic updates instead of choosing manual WordPress upgrade.
Connection Timed Out
Not only developer and most of the users are also well aware of this error. The error typically occurs due to bad server configuration or incapable server. An incapable server may not be able to complete the browser’s requests & withstand users’ demand resulting the error showed in below picture.
The cure for this error is simple and works very effectively. In order to eliminate the ‘connection timeout error’ disable all the plugins. Reload the website and if works smoothly again activate the plugins one by one and you will most probably find the plugin causing the error.
You can also increase your PHP memory limit using the wp-config.php file. Open the file, and add the following line of code to it:
This will increase the PHP memory by 128 MB. It is worth to note that if you tied up with shared hosting you will not be able to increase the PHP memory. However, you will never face this type of problem when it comes to 000webhost.com as even their most economical plan is loaded with almost ‘everything unlimited’.
Another way to cure the connection timeout is deactivating the current theme and get back to original WordPress theme.
I hope you will never encounter an Error 145 as it literally means corrupted or damaged database. Before going further it will be an auspicious step to back up the database.
Curing an error 145 is quite is easy but can things can go haywire if done wrong. You will need PHPMyAdmin tool in your list of assortment which is at your fingertips if you are working with 000webhost.
To eliminate this error from the root, log in to phpmyadmin and select your WordPress database. You will most probably face the screen displayed below.
As shown in a picture select the checkbox near the table. Don’t check the ones mentioned in a picture but check the ones you may think to result from the error. Once selected you will be able to navigate the action ‘repair table’ from the drop-down menu as shown in the picture. Repair the table and see the error 145 getting disappeared.
Error Establishing a Database Connection
Last but not least. You will face this error when accessing your website. This error generally means that WordPress is unable to access the database or getting interrupted when accessing the database.
The possible reason behind this error is an issue with the wp-config.php file – the file which contains important information regarding to your database such as username, database name, password, database host etc. correcting these details may eliminate the error and to do so as we mentioned above you will need to locate the wp-config.php file in similar way we located in .htaccess file. Configure the file with correct database information and save the changes. Reload the website and congratulations! If you are still getting the same error after following the above method you may require to contact your web host.
These are the most common WordPress errors with their solutions. Though, there are few more error worth to look at such as White Screen of Death, error 28, Warning: File_Get_Contents, error 400 etc. and fixing them is never as simple as eating the piece of cake. Hope this guide will help you to eliminate those error from the root and function you WordPress site flawlessly.