Disclosure: WHSR is reader-supported. When you buy through our links, we may earn a commission.
8 Most Common WordPress Errors and How to Fix Them
Updated: Sep 13, 2017 / Article by: Jason Daszkewicz
Do you have a WordPress powered 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 venture is indeed simple with WordPress, thanks to its user-friendly interface and flexibility. While WordPress is extremely easy to use, there are a few common errors that can make it annoying. However, the best part is that the error you are probably encountering on your website has most likely been reported and solved by someone before you.
Need Help Fixing Your WordPress Site? WHSR is now partner with Codeable.io to assist users who need professional WP development / customization services.
Your hosting provider will be able to tell you whether your database shuts down for exceeding its quota or there is some issue 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.
Solution #2. wp-config.php file error
Open your wp-config.php file using FTP or file manager. Now, check if database name, host, username and password are correct. If you find any change in these details, correct them immediately. If you don't know how to edit PHP files, it's better you make yourself familiar with the basics first.
Solution #3. Scan it to check if it's been hacked
WordPress is the most preferred open source platform, but is extremely vulnerable to security threats. So, it's no surprise to see WordPress as the top target for hacking. Use a security tool to scan your website entirely and check if your website is compromised. If you find that your site has been hacked, don't panic. Immediately change your login details 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 since you have no idea what to seek and what to fix.
Often caused by an exhausted memory limit
Poorly coded theme or plugin
Solution #1: Increase the memory limit
Since exhausted memory limit is one popular reason 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 within the main PHP tags.
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 still persists, disable all your plugins and replace your currently active theme with the default WordPress theme and check if it still shows a white screen of death. If the problem is resolved, either your theme or one of your plugins is causing a white screen. Activate one plugin at a time while keeping an eye on the website. If this resolves the problem, check your theme's functions.php and remove any extra spaces at the bottom of the file.
3. 500 Internal Server Error
This is another common problem that almost every WordPress website encounters at least once. There are several potential causes.
Exhausted PHP memory limit
Corrupted plugin functions
Corrupted theme functions
Solution #1. Increase the memory limit
Follow the same steps to increase the memory limit as mentioned in the previous step.
Solution #2. Edit .htaccess file
Since the problem is usually caused by a corrupted .htaccess file, you would need to edit your .htaccess file. Open your .htaccess file from the FTP or file manager and rename it with .htaccess old. Refresh your website and see if the problem persists. If this fixes the problem, click on settings > permalinks and hit save changes to reset .htaccess.
Solution #3. Deactivate all the plugins
If changing your .htaccess file did not have any impact on the problem, you might want to check your plugins. Deactivate all your plugins by clicking on plugins ? installed plugins. Choose “deactivate” from the “bulk action” drop down 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 plugin has caused the problem.
Solution #4. Replace wp-admin and wp-includes folders
If nothing worked, try replacing your wp-includes and wp-admin folders with fresh copies from a WordPress install. Save them and upload. Refresh the browser and see if the problem is resolved.
4. Lost Admin Email and Password Retrieval is not Working
It's common to forget your email or password, especially when you have tons of them to remember. In such a scenario, you probably have clicked on the lost password link to recover the details. But unfortunately, you never got the reset link in your inbox.
The actual cause of this problem is still a mystery, but the solution is not. There are certain things you can do to change your email and password without needing the reset link.
Solution #1. Edit your functions.php file
To make changes in a theme's functions.php file, navigate to ../wp-content/themes/your_current_theme via FTP or file manager. Open up your functions.php file and add the following line of code.
Put your desired new password in place of where it says “DesiredNewPassword.” Save the file and upload it again. Once you have logged into your website, remove the code from the file and upload again.
Solution #2. Reset your email and password via phpMyAdmin
Log in to your cpanel. Click on phpMyAdmin and select your website's database. Click on wp_users table and edit your record. Enter a new value for user_pass. Remember phpMyAdmin uses MD5 encryption, so you have to convert your password into MD5.
Choose the MD5 option from the drop down menu in Functions. Hit save and refresh your website.
5. Connection Timed Out
This error is usually caused by an overburdened shared server. The following reasons usually cause this problem.
Theme function errors
Exhausted PHP memory limit
Increase your PHP memory limit
Deactivate all the plugins and remove the one that's causing the problem
Switch to a default WordPress theme to check if your theme is causing the problem
6. 404 Page Error
This error usually occurs when the website does not find the page you've specified.
Permalink setting is the primary cause of 404 Page error.
Reconfigure your permalinks by clicking on the settings > permalink. You also can manually rewrite the rules to overwrite default permalink settings.
7. Memory Exhausted Error
A memory exhausted error causes either a white screen of death or the following error
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried 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 a script exhausts the default memory limit.
You need to increase your PHP memory limit. Even though we have mentioned 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 within the main PHP tags.
The above code increases your memory limit to 64M.
Replace your theme with the default theme and disable all plugins
8. Unavailable for Scheduled Maintenance Error
You may encounter this error due to an interrupted or unfinished WordPress update.
When WordPress updates a plugin or theme, it puts your website in maintenance mode. If the update is interrupted, it keeps your site in maintenance mode.
Manually update your WordPress installation
Delete your .maintenance file by going to your root directory through FTP or file manager.
WordPress is a powerful software but like other platforms, it has its flaws. In today's post, we have revealed certain common errors with their causes and solutions. I hope you find it useful and get rid of these errors permanently.
About Jason Daszkewicz
Jason Daszkewicz is a web enthusiast who serves as a WordPress developer for Wordsuccor Ltd. that provides WordPress plugin development services for businesses. Jason holds exceptional expertise in blogging on WordPress related articles. He also loves to spend his time outdoors exploring the world, people and technology.