WordPress creation guide fixes the 8 most common errors on WordPress today

It could be just what your business needs to reach the masses, increase your ROI, and strengthen your brand identity.

Setting up an online venture is really simple with WordPress, thanks to its flexible and user-friendly interface. While WordPress is extremely easy to use, there are a few common mistakes that can be frustrating for you. However, the best part is that errors you may encounter on your site are more likely to be reported and resolved by someone before you.

1. Error establishing database connection with WordPess

fix 8 most common errors in WordPress
CG – fix 8 most common errors in WordPress

The error establishing a database connection is pretty self-explanatory and tells you that the connection to the database has gone down.

  • Cause of database setup error
  • Problems with your host
  • Error in wp-config.php . file
  • Your website may have been hacked

1. Troubleshooting with your host

Talk to you is a good idea WordPress Hosting Provider regarding the matter.

Your hosting provider should be able to tell you if your database is shutting down because of quota exceeded or there is a problem with the server. If you are told that everything is fine on the server end, it’s time to check your wp-config.php file.

2. wp-config.php file error

Open your wp-config.php file using FTP or a file manager. Now, check that the database name, server, username and password are correct. If you find any changes in these details, correct them immediately. If you don’t know how to edit PHP files, it’s better to familiarize yourself with the basics first.

  • WordPress Scan it to check if it’s hacked

WordPress is the most preferred open source platform, but is extremely vulnerable to security threats. So it’s no surprise that WordPress is a prime target for hacking. Use a security tool to scan your entire site and check if your site is compromised. If you find that your website has been hacked, don’t panic. Instantly change your login details and restore your site from backup.

2. White screen of death

fix errors in WordPress
CG – fix 8 most common errors in WordPress

This error often causes a simple white screen of death with no error message, making it even more frustrating because you don’t know what to look for and what to fix.

Reason:

  • Usually due to exhausted memory limit
  • Poorly coded themes or plugins

Fix 1: Increase memory limit

Since memory limit exhaustion is one of the common reasons of this error, it is recommended to increase the memory limit. To increase the limit, open your wp-config.php file and add the following line of code in the main PHP tags.

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

The above code increases your memory limit to 64M.

fix 2. Replace your theme with default theme and disable all plugins

If the problem persists, deactivate all your plugins and replace your currently active theme with the default WordPress theme and check if it shows the white screen of death. If the problem is resolved, your theme or one of your plugins will cause a white screen. Activate one plugin at a time while monitoring the site. If this solves the problem, check your theme’s functions.php and remove any extra spaces at the end of the file.

3. Internal server error 500

500 Internal Server Error
500 Internal Server Error

This is a common problem that almost every WordPress website encounters at least once. There are several potential causes.

Reason:

  • PHP memory expired
  • Plugin functionality is broken
  • Theme function is broken
  • Broken .htaccess

1. Increase memory limit

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

Solution #2. Edit the .htaccess file
Since the problem is usually caused by a corrupt .htaccess file, you need to edit your .htaccess file. Open your .htaccess file from FTP or a file manager and rename it with the old .htaccess. Refresh your site and see if the problem persists. If this fixes the problem, click settings > permalink and hit save changes to reset the .htaccess.

3. Disable all plugins

If changing your .htaccess file doesn’t have any impact on the problem, you might want to check your plugins. Deactivate all your plugins by clicking on plugins? installed plugins. Select “deactivate” from the “bulk actions” drop-down menu and hit apply. It will automatically deactivate all your plugins. Now go to your website, refresh it and check if the error is gone. If so, activate your plugins one by one and see which one is causing the problem.

4. Replace wp-admin and wp-includes . folders

If nothing works, try replacing your wp-includes and wp-admin folders with fresh copies from the WordPress installation. Save them and upload. Refresh the browser and see if the problem is resolved.

4. Lost admin email and password not working

fix 8 most common errors in WordPress
admin -wp

It’s common to forget your email or password, especially when you have a lot to remember. In such a case, you probably clicked on the lost password link to recover the details. But unfortunately you never have the reset link in your inbox.

Reason:

The actual cause of this problem remains a mystery, but the solution is not. There are several things you can do to change your email and password without the reset link.

1. Edit your functions.php file

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

wp_set_password(‘New desired password’, 1);

Place your desired new password where it says “DesedlyNewPassword”. Save the file and upload it again. Once you are logged in to your site, remove the code from the file and upload it again.

2. Reset your email and password via phpMyAdmin

Login to your cpanel. Click on phpMyAdmin and select your website database. Click on the wp_users table and edit your profile. Enter a new value for user_pass. Remember phpMyAdmin uses MD5 encryption, so you have to convert your password to MD5.

Select the MD5 option from the drop-down menu in Functions. Hit save and refresh your web page.

5. Connection overdue

fix wordPress Connection Timed Out
fix wordPress Connection Timed Out

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

Reason:

  • Heavy plugin
  • Theme function error
  • PHP memory expired
  • Solution

Increase your PHP memory limit

Disable all plugins and remove the ones that are causing the problem
Switch to a default WordPress theme to check if your theme is causing problems

6. 404 . Page Error

Fix 404 Page Error
Fix 404 Page Error

This error only occurs when the page page is not found. You have specified the page.

Reason

The permanent setting of the link is a major factor in the 404 error page.

Solution:
Reconfigure yours. You can also write a replayer of the rules to override the default binding settings.

7. Out of memory error

Memory Exhausted Error
Memory Exhausted Error

Out of memory error causing white screen of death or following error

Fatal error: Allow memory capacity of 33554431 bytes to run out (attempted to allocate 2348617 bytes)in/home/username/public_html/site1/wp-includes/plugin.php on line xxx

Reason

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

Solution

  • You need to increase your PHP memory limit. Although we covered all the steps of increasing the memory limit in the first point, I am still writing it here.
  • To increase the limit, open your wp-config.php file and add the following line of code in the main PHP tags.
  • define( ‘WP_MEMORY_LIMIT’, ’64M’);
    The above code increases your memory limit to 64M.
  • Replace your theme with default theme and disable all plugins

8. Not available for scheduled maintenance

Unavailable for Scheduled Maintenance Error
Unavailable for Scheduled Maintenance Error

You may get this error because of an interrupted or incomplete WordPress update.

Reason:

  • When WordPress updates a plugin or theme, it puts your site in maintenance mode. If the update is interrupted, it will keep your site in maintenance mode.

Solution

  • Update WordPress installation manually
  • Delete your .maintenance file by going to your root directory via FTP or a file manager.

End

WordPress is a powerful piece of software but like other platforms, it has its flaws. In today’s article, we have revealed some common errors with their causes and solutions. I hope you find it useful and get rid of these errors permanently.

LEAVE A REPLY

Please enter your comment!
Please enter your name here