Wordpress is harder to use than Wix

8 Most Common WordPress Errors And How To Fix Them

Do you have a WordPress based website?

It could be just what your business needs to reach the masses, increase your ROI, and strengthen your brand identity. Setting up an online project is indeed easy thanks to the user-friendly interface and flexibility with WordPress. While WordPress is very easy to use, there are some common mistakes that can bother it. Best of all, the error you are likely to see on your website has most likely been reported and fixed by someone before you.

Need Help Repairing Your WordPress Site?
WHSR is now partnering with Codable.io to help users who need professional WP development / customization services.

To receive a free quote, please fill out this request form.


Here are tutorials on how to fix these common WordPress errors:

1. Failure to connect to the database

An error in establishing the database connection is pretty self-explanatory and indicates that the connection to the database has been broken.

  • Causes of database errors
  • Problem with your hosting server
  • Error in the wp-config.php file
  • Your website may have been hacked

Solution #1. Troubleshoot problems with your hosting server

It's a good idea to speak to you WordPress hosting provider regarding the problem.

Your hosting provider can tell you whether your database has shut down because of its quota exceeded or there is a problem with the server. When it tells you everything is fine on the server, it's time to check your wp-config.php file.

Solution #2. wp-config.php file error

Open your wp-config.php file via FTP or the file manager. Now check that the database name, host, username and password are correct. If you notice changes to these details, correct them immediately. If you don't know how to edit PHP files, the first thing to do is to familiarize yourself with the basics.

Solution #3. Scan it to see if it has been hacked

WordPress is the most preferred open source platform, but it is extremely vulnerable to security threats. So it's no surprise to see WordPress as the primary target for hackers. Use a security tool to fully scan your website and see if your website is at risk. If you find that your website has been hacked, don't panic. Change your login details immediately and restore your website from the backup.

2. White screen of death

This error usually causes a plain white screen of death with no error message making it more frustrating for you as you have no idea what to look for or what to fix.


  • Often caused by an exhausted memory limit
  • Badly coded theme or plugin

Solution # 1:Increase the memory limit

Since the used memory limit is a common reason for this error, it is recommended to increase the memory limit. To increase the limit, open your wp-config.php file and paste the following line of code into the main PHP tags.

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

The above code increases your memory limit to 64M.

Solution # 2. Replace your theme with the default theme and disable all plugins

If the problem persists, disable all plugins and replace your currently active theme with the default WordPress theme. If the problem is resolved, either your design or one of your plugins is causing a white screen. Activate one plugin at a time and keep an eye on the website. If that fixes the problem, check your theme's functions.php file and remove any extra spaces at the end of the file.

3. 500 internal server error

This is another common problem that appears at least once on almost every WordPress website. There are several possible causes.


  • Exhausted PHP memory limit
  • Corrupted plugin functions
  • Corrupted theme functions
  • Corrupted .htaccess

Solution # 1. Increase the memory limit

Follow the same steps to increase the memory limit mentioned in the previous step.

Solution #2. Edit the .htaccess file

Since the problem is usually caused by a damaged .htaccess file, you will need to edit your .htaccess file. Open your .htaccess file via the FTP or file manager and rename it with .htaccess old. Update your website and see if the problem persists. If that solves the problem, click Settings> Permalinks and click Save Changes to reset .htaccess.

Solution # 3. Deactivate all plugins

If changing your .htaccess file didn't affect the problem, then it's time to check your plugins. Deactivate all plugins by clicking on Plugins? installed plugins. Select "Disable" from the "Bulk Action" drop-down list and click "Apply". All plugins are automatically deactivated. Now go to your website, update it and see if the error is gone. If so, activate your plugins one at a time and see which plugin caused the problem.

Solution #4. Replace the WP-Admin and WP-Includes folders

If nothing worked, try replacing your WP Includes and WP Admin folders with new copies of a WordPress installation. Save them and upload them. Refresh the browser and see if the problem is resolved.

4. Lost admin email and password query does not work

It is common to forget your email address or password, especially if you need to remember a lot. In such a scenario, you have likely clicked the "Lost Password" link to get the details back. Unfortunately, you never have the reset link in your inbox.

Root cause:

The root cause of this problem is still a mystery, but the solution is not. There are certain things you can do to change your email address and password without the need for the reset link.

Solution #1. Edit the functions.php file

To make changes to a topic's functions.php file, navigate to ../wp-content/themes/your_current_theme via FTP or the file manager. Open your functions.php file and add the following line of code.

wp_set_password ('DesiredNewPassword', 1);

Put your desired new password where it says "DesiredNewPassword". Save the file and upload it again. When you're signed in to your website, remove the code from the file and upload it again.

Solution #2. Reset your email address and password via phpMyAdmin

Log into your cpanel. Click on phpMyAdmin and select your website's database. Click on the wp_users table and edit your record. Enter a new value for user_pass. Remember that phpMyAdmin uses MD5 encryption, so you need to convert your password to MD5.

Select the MD5 option from the drop-down menu under Features. Click "Save" and update your website.

5. Connection timed out

This error is usually caused by an overloaded shared server. The following reasons usually cause this problem.


  • Heavy plugins
  • Theme function bug
  • Exhausted PHP memory limit


  1. Increase your PHP memory limit
  2. Disable all plugins and remove the plugin that is causing the problem
  3. Switch to a standard WordPress theme to see if the theme is causing the problem

6. 404 page faults

This error usually occurs when the website cannot find the page you specified.


The permalink setting is the main cause of the 404 page fault.


Reconfigure your permalinks by going to Settings> Permalink. You can also manually rewrite the rules to override the default permalink settings.

7. Memory exhausted error

A memory error will either exhaust the white screen of death or the error below

Fatal Error: Allowed memory size of 33554432 bytes exhausted (attempted to allocate 2348617 bytes) in / home / username / public_html / site1 / wp-includes / plugin.php on line xxx


The main cause is when a WordPress plugin or script is exhausting the default memory limit.


You need to increase your PHP memory limit. Although we mentioned all the steps to increase the memory limit in the first point, I am still writing them here.

To increase the limit, open your wp-config.php file and paste the following line of code into the main PHP tags.

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

The above code increases your memory limit to 64M.

Replace your theme with the default theme and disable all plugins

8. Not available for scheduled maintenance errors

This error can occur due to an interrupted or incomplete WordPress update.

Root cause:

When WordPress updates a plugin or theme, your website will go into maintenance mode. If the update is interrupted, your site will remain in maintenance mode.


  1. Manually update your WordPress installation
  2. Delete your .maintenance file by going to your root directory via FTP or the file manager.

Wrap up

WordPress is powerful software, but like other platforms, it has its weak points. In today's release, we've uncovered some common errors, their causes and solutions. Hope you find it useful and get rid of these errors permanently.

About Jason Daszkewicz

Jason Daszkewicz is an internet enthusiast who works as a WordPress developer for Wordsuccor Ltd. serves and provides enterprise WordPress plugin development services. Jason has exceptional knowledge of blogging articles related to WordPress. He also loves spending his time outdoors exploring the world, people, and technology.