7 Common WordPress Errors and How to Fix Them

WordPress is an incredible piece of programming that works fine more often than not. Yet, there are times when things quit working. Perhaps WordPress can’t interface with the data set. Or on the other hand perhaps a few records have been undermined. Regardless, here are 7 of the most regularly experienced WordPress mistakes and how you can fix them:

A Word of Warning: Backup Your Website

Before you go on and follow any of the means beneath, make a reinforcement of your entire site. When attempting to fix your site, you may break it significantly more. Having a reinforcement guarantees you can generally return to the “less-broken” condition of your site. Thus, before you roll out any improvements to your site, back it up.

Error Establishing a Database Connection

This is the most widely recognized mistake WordPress clients face. In case you are a WordPress client, you will presumably confront this mistake no less than multiple times in the course of your life.

At the point when you see the blunder message “Mistake Establishing a Database Connection,” it essentially implies that WordPress couldn’t interface with your MySQL information base worker.

The most widely recognized justification this issue is inaccurate data set login certifications. Possibly your secret key or the username isn’t right.

To check if your secret key and username are correct, alter your wp-config.php record and search for the accompanying code:

define('DB_NAME', 'database_name’);
/** MySQL database username */
define('DB_USER', 'username');

/** MySQL database password */
define('DB_PASSWORD', 'password');

/** MySQL hostname */
define('DB_HOST', 'localhost');

In the above code test:

username is the username of the MySQL information base client that approaches your WordPress data set.

secret key is the secret word of the MySQL data set client.

have is the location of the worker that is facilitating your information base. Here’s a rundown of normal MySQL hostnames.

database_name is the name of your WordPress information base you are attempting to get to.

Check the data set login accreditations in your wp-config.php document and fix them in case they are incorrect. Much of the time, this mistake shows up when the information base login qualifications are invalid.

Yet, there are times when different things may be causing this blunder. One of those is that your information base worker isn’t reacting. All things considered, the best anyone can hope for at this point is to contact your web have and request that they fix the issue.

500 Internal Server Error

This mistake shows up when there was a type of a blunder on the worker yet the worker programming couldn’t distinguish the specific blunder.

There are in a real sense a great many reasons why you may be seeing this blunder. Possibly you introduced a wrecked module or rolled out certain improvements to the WordPress codebase.

Here are a couple of things you should attempt:

1.Check Your .htaccess File

The .htaccess record is utilized to revamp URLs and make them look pretty. The “pretty permalinks” elective in the WordPress permalinks settings uses this record to make the URLs of your site look “pretty.” if, despite everything that your .htaccess record

On the off chance that your .htaccess record has been debased, your worker will show the 500 interior worker blunder.

To know whether your .htaccess record is making the issue, you need to sign into your FTP client or the File Manager application your web have given and rename the .htaccess document to “.htaccess_backup”

When you rename the record, have a go at opening the landing page of your site. If your site is presently working, visit the permalinks settings page from your WordPress dashboard and snap Save Changes.

2.Switch To The Default Theme

On the off chance that you are seeing the 500 Internal Server Error message, you most likely can’t get to the dashboard.

On the off chance that you can get to the dashboard, visit the Themes area and change the topic to the default one that accompanies WordPress.

On the off chance that you can’t get to the dashboard or then again on the off chance that you don’t have the default subject introduced, login to your FTP customer, explore to the wp-topics organizer, and rename the envelope of your present topic to something different.

This will drive WordPress to change to the default subject and on the off chance that you don’t as of now have the default topic, WordPress will download the default topic and introduce it.

3.Increase Memory Limit

This is seldom the reason for the 500 Internal Server Error yet now and then your WordPress site can go over the default PHP Memory Limit set in the wp-config.php document. At the point when this occurs, you see the 500 Internal Server Error.

To fix this, login to your FTP customer and add the accompanying line of code to the furthest limit of your wp-config.php document:

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

4.Deactivate All Your WordPress Plugins

A bad or broken module may be the motivation behind why you are seeing this mistake.

On the off chance that you don’t know which module is causing this issue, you should deactivate all your WordPress modules.

Much of the time, in case you are seeing this mistake, you will not have the option to get to the WordPress dashboard. In case you can get to the Plugins page from your WordPress dashboard, incapacitate all the modules from that point.

Then again, in the event that you can’t get to the Admin region, login to your FTP customer, and rename the modules envelope in wp-content organizer.

This will handicap all the dynamic modules.

White Screen of Death

This is the most feared mistake in the WordPress people group since you don’t see a blunder message revealing to you why you are seeing this white screen.

Here are a couple of things you can attempt:

1.Enable Debugging

At the point when you empower troubleshooting in WordPress, WordPress will begin showing blunder messages that it would stow away in a creation climate. The motivation behind why WordPress conceals these blunder messages is on the grounds that a programmer may abuse the data these mistakes offer.

When you empower troubleshooting, you may see the genuine mistake.

To empower troubleshooting, search for the accompanying line of code in your wp-config.php document:

define(‘WP_DEBUG’, bogus);

You will discover this some place at the lower part of the document. Change bogus to consistent with empower investigating.

2.Use The Default Theme

In case you can get to the Dashboard, change to the default subject. This is typically brought about by broken subjects.

In the event that you can’t get to the Admin Dashboard, attempt the means in the “500 Internal Server Error” segment above.

3.Disable All Plugins

Modules that attempt to change the appearance of your site or your site’s Dashboard may cause this blunder. Debilitate all your modules by adhering to the directions in the part above.

4.Increase Memory Limit

This is typically not the explanation but rather take a stab at expanding as far as possible by adhering to the directions in the segment above.

WordPress Sidebar Below Content

In the event that your sidebar is appearing beneath your substance rather the left or the right side (contingent upon your topic), then, at that point it can mean one of two things: either your subject has been corrupted or your html is invalid.

On the off chance that your subject is debased, everything thing you can manage is update the topic if an update is accessible or reinstall the most recent form of the topic.

Be that as it may, assuming the HTML code on your site is ruined, you should fix the invalid code. This typically happens when you haven’t shut a tag with a closing tag.

To see whether this is actually the situation, open the page where you see this mistake, right snap and snap the “View Source Code” alternative.

It will show all the HTML code that your page is utilizing. Duplicate this code, open this HTML Validation Checker apparatus, and glue the code in there to check if your HTML is legitimate.

In the event that you see a mistake on that page, you should search for the record that has the invalid HTML code and fix the code in it. Sadly, every subject is unique and has many records. You should search for the record and afterward search for the mistake causing invalid code without anyone else. We can’t assist you with that.

On the off chance that your HTML code is substantial and you are as yet seeing this blunder, your topic may be adulterated. Or then again your style.css document in the current subject may have some messed up code. On the off chance that the style.css record is broken, you should employ an engineer to fix it.

Connection Timed Out

This blunder normally shows up when WordPress needs more memory to play with. At the point when this is the situation, you should build as far as possible in your wp-config.php record. To do this, place the accompanying line of code toward the finish of your wp-config.php record:

define('WP_MEMORY_LIMIT', '64M');

In the event that this doesn’t fix your mistake, take a stab at deactivating all the modules and changing to the default subject. See rules in the 500 Internal Server Error region above.

Forgot Admin Password

We are altogether liable of failing to remember the Admin secret word for our sites. Once just as in overabundance of numerous occasions. In case this is going on to you, don’t freeze.

It is truly simple to reset the Admin secret phrase.

The most straightforward approach to do it is through the Forgot Your Password interface on the Login Page of your WordPress administrator region.

In the event that the Forgot Your Password include offered by WordPress doesn’t work for you, login to PHPMyAdmin and choose your WordPress site’s data set:


Presently, select the wp_users table from the rundown of tables:


You will see every one of the clients there are on your WordPress site (counting You) as an information base section. Find your username among the rundown and snap the Edit connect to one side of the passage column:


On the Edit page, you will see choices to alter user_pass:


Very much like in the above screen capture, select MD5 starting from the drop and afterward input your new secret phrase in the worth field.

Snap the GO catch at the base and login utilizing your new secret phrase.

Pages And Posts Return a 404 Not Found Error

Your .htaccess record normally is the reason for this blunder. In case you are seeing the 404 blunder on Posts and Pages, this implies two things: you are presumably utilizing Pretty Permalinks and WordPress couldn’t alter the .htaccess record when you saved the settings.

In 99% of the cases, this issue disappears by just tapping the Save Changes button on the Permalinks Settings page on your WordPress Admin dashboard. This will compel WordPress to rework the new changes to the .htaccess document.

On the off chance that that didn’t work, you should alter your .htaccess record and spot the accompanying code in it:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

The above code should make it work.

Stuck In Maintenance Mode After Update

This is an uncommon issue. In case WordPress is going through the update cycle and for reasons unknown is hindered in it, you will see the Maintenance Mode message constantly on your site.

In case this is the issue you are confronting, just erase the .support document from your WordPress establishment index and visit your site. It fixes the issue usually.