It's All About IT

5 Most Common WordPress Errors and How to Fix Them

WordPress is the Most Popular CMS on the internet. Infact, this blog you’re reading is built on wordpress.

While working on wordpress projects, I came across Some Errors that every wordpress developer might be facing while working on wordpress projects

So, here is the list of Most common wordpress errors with their simple solutions-

1. Error Establishing Database Connection

As it is clear from the message itself, there is error connecting to the database.

This can occur due to a wrong Database name, User or Password.

How to Fix – To fix the database connection issue in wordpress, you need to check the wp-config.php file located in the root directory.

Check if the the connection details provided are correct. Once you put the right credentials, It will go away like magic.

2. Briefly Unavailable due to Scheduled Maintenance

When you perform updates in wordpress, it creates a .maintenance file automatically.

When updates are done, this file is removed.

When wordpress system fails to delete this file, it shows the error.

How to Fix – You need to delete the .maintenance file manually.

You can delete this file from hosting manager (like cPanel or Plesk) , FTP Client or through SSH commands if You know How to run SSH commands on server

3. Page Exists but shows 404 Not found

In many cases, when you change the permalink structure to custom, the pages that you created shows 404 not found error.

This is due to poor redirect rules or permalink conflicts.

How to fix – To fix this unexpected error in 1 minute, all you need to do is-

  1. Deactivate Url Redirect Plugin if there is any installed.
  2. Open the .htaccess file and paste the default wordpress htaccess code and remove everything else from htaccess file.

Copy and Paste the below code to your htaccess file

# 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

If Still not resolved, try clearing cache from Browser and Server as well.

4. You Made changes, But Not Visible

You may face this ridiculous error in wordpress website. You keep making the changes, but they don’t reflect on live website.

This error is due to CDN or Server side Caching. In case you’re using cloud hosting or caching enabled on server, You’ll see no changes untill you manually clear the cache from server.

5. Unable to upload images

sometimes when you face this error when uploading images on wordpress.

This error is due to incorrect file permissions.

How to fix – Check the file permissions of wp-content/uploads and set it to 755

Reference links –

Leave a Message

Registration isn't required.




By commenting you accept the Privacy Policy

-->