WordPress is the de facto standard today for everyone, whether it’s for a blogger or a business. This is because of its ease of use, simplicity to build and run the website, and user-friendly UI and scalability. While WordPress is the most popular content management system (CMS) on the market, website owners have to face certain issues and errors. These errors are frustrating and impact the performance of their site.

However, the positive thing with WordPress is that these errors can also be understood and fixed easily, without the help of an expert technician. This is because most of the errors in WordPress arise due to small glitches and minuscule problems. If you know how to read and reach the cause of the error properly, you can solve such issues on your own and get your site up and going. 

In this article, we have curated a few of the most common WordPress errors and easy ways to fix them.

Error establishing a database connection

Problem: As the issue itself says, “Error establishing a database connection” means that a connection could not be formed with the database. This problem can occur due to a number of reasons including some issues with the web hosting server, website hacking, or some error in the wp-config.php file.

Solution: If it is because of an issue with your hosting server, then contact your hosting service provider to find what’s wrong at the server end. If they say that everything is good at their end, then it’s time to open the wp-config.php file from FTP or file manager.

Here, confirm if the database name, host, username and password are right. If things are not right, then put in the correct information.

Lastly, if the problem still isn’t solved, scan your site with a security tool to check if it has been hacked. Update your login details and restore the database from backup in case it is compromised. 

Internal Server Error

Server not Found Error

Problem: It is one of the most occurring WordPress errors which happens when there is some issue with the server. Generally, when you use poor themes or plugins on your site or if there is a corrupt .htaccess file, this error can occur.

Solution: Log in to your cPanel account and open File Manager. Rename the existing .htaccess file and check if the issue has been resolved.

In case the error still shows up, then it’s time to boost the limit of PHP memory. You can do it from the File Manager or FTP. Open the wp-config.php file in an editor and paste the code written below:

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

Save and upload the updated file to the server again. Your PHP memory will get increased and the problem will be resolved. 

502 Bad Gateway Error

Problem: When the visitors on your website make requests and the server is either unable to respond to the requests or takes too much time to do it, this error shows up. Your server can become slow or unresponsive because of certain reasons including poor hardware, issues in software or memory, allocation of low resources, etc.

Solution: If the server is slow, it may load the site after a refresh. But if the reloading doesn’t work, then try to clear the cache and re-open it. Also, you should update the themes and plugins installed on your site. Sometimes, outdated and non-compatible plugins too can cause this error. 

Connection Timed Out

Problem: This WordPress error occurs when the requests to the server can’t be fulfilled even after trying multiple times. The cause of this error is the lack of resources on the server to respond to requests. Connection Timed Out error generally occurs with a website or blog on shared hosting where multiple websites share a single server.

Solution: If the traffic on your site has increased and it is facing this issue frequently, then it’s time for you to go for a better web hosting plan. Sometimes, this error can also occur due to corrupt software, malware, or hardware. 

403 Forbidden Error

Problem: The 403 Forbidden Error happens when the server denies the requests to load a website or any particular webpage or post. In such cases, the website can’t show the content to visitors and they have to simply leave it. 

Solution: The first thing to do when this error occurs is to deactivate all your plugins. Now check the website again to see if the issue has been resolved. If everything is alright, then re-activate the plugins one by one and keep track of the website.

In case the issue isn’t resolved even after deactivating plugins, update the permalinks. From your dashboard, open Settings > Permalinks. Click on ‘Save Changes’. This might fix the issue.

Lastly, if both of the above methods don’t work, then there is some issue in your .htaccess file. What you have to do is to create a new file and replace the existing one with it.

404 Page Error

404 not found wordpress error

Problem: This error occurs if you have changed the URLs of a page or post, or there are broken links. Mostly, it happens because of wrong rewrite rules in the permalink structure.

Solution: From Settings, open Permalinks and re-save it. This might fix the issue.

If the issue continues, then you will have to do some manual action and update the .htaccess file. Open the file and add the following code to it:

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

Now save the file. The problem will get resolved. 

Wrapping up:

These are the most common WordPress errors that can occur on your site or blog that are not caused by your actions. However, you shouldn’t get worried or wait for long to resolve the issues. Use the techniques mentioned above and reload your site. It will be up and running in no time. Your visitors should always see what you want them to see instead of such errors.

 

Author Bio:

Mark Coleman is a passionate writer, currently working as an Editor at MarkupTrend. Markup Trend offers free resources for developers, designers and webmasters and is updated daily. Mark is available for hire for product and business promotions.

Posted by Outside Contributor

From time to time, we are glad to feature outside authors who contribute to BizzMarkBlog with their insights and experience. This is one of those features.