WordPress is one of the best CM in blogging platform. It’s not only easy great for your website because basically it’s friendly to search engine, WordPress is also easy to use. Indeed, some common WordPress errors sometimes give you nervous. However, you should no worry about them. Thousand of people are WordPress users may have similar issues everyday and they are most likely been reported and resolved.
To make it easy for you, we summarized the 11 most common WordPress errors along with solution to help you deal with them. Whenever you hit this error or something that make you panic, you will know how to fix it.
1. The Syntax Error
Be careful when you’re trying to edit your code in WordPress. Syntax error usually occurs when you’re trying to add some code into WordPress and inadvertent missed something, forget to close the tag or the code has incorrect syntax. It will result into a PHP parse error and you will see a warning like:
“Parse error – syntax error, unexpected $end in /public_html/site1/wp-content/themes/my-theme/functions.php on line 278”
This warning indicates something incorrect in the code and show the location of the script might have been error ( the line number ). When you meet this issue, the best is to fix with the correct syntax. It could be a missing bracket, a closing tag or remove unexpected characters in the code.
2. Fix the Internal Server Error
“Internal Server Error” or “500 Internal Server Error” may scare you at time. This error usually happens when there’s something wrong and the server could not identify where the problem is. It usually happens when your plugin or them malfunction or caused by corrupted .htaccess file and PHP memory limit. The following solutions will help you out:
- Check your .htaccess file
- Increase your PHP limit memory
- Deactivate all plugins to find out whether particular plugin cause this problem
- Re-uploading Core Files by re-uploading the wp-admin and wp-includes files from fresh WordPress installation
- Ask your hosting provider
3. Fix Error Establishing a Database Connection
The error shows that your website could not connect to the database. It occurs when a user has entered or modified the database credentials incorrectly such as database host, database password and username. Some database server is not responsive enough or your database may have corrupted. In most case, it could be incorrect database login credential. It’s advised to check your wp-config file and your web host ( MySQL Server ).
4. WordPress and Admin is Showing Plain White Screen
There is no error message, but only plain white screen. It seems like you have no clue where to look and what to fix. This error normally happens right after a new theme installation, a script exhaust PHP memory limit or due to a configuration on the server. Common solution to fix the error:
- Increasing the memory limit
- Disabling all plugins or reset your plugin via FTP or cPanel
- Replace your current them with default theme
- Rename current installed them folder via FTP or cPanel and check whether your them is compatible with your version of WP
[ Also Read: 9 Reasons to Choose WordPress For Your Online Store ]
5. How to Fix 404 Error in WordPress
When a user visits any page of their site and discovered 404 error –page not found error- is indeed really annoying. The user normally can browse all other sections of their site, including dashboard or admin area. This issue usually caused by the permalink settings in WordPress. To solve this issue, user would need to reset their permalinks setting or update their rewrite rules manually.
6. Error in WordPress Visual Editor ( The White Text and Missing Buttons )
The common solutions to fix this error:
- Clear Browser Cache
- Fix with wp-config
- Replacing TinyMCE Scripts with fresh copy by adding this following code at the very top after the php opening tag:define(‘CONCATENATE_SCRIPTS’, false);
7. Fix Fatal error: Allowed memory size of 33554432 bytes exhausted in WordPress
Indication of this error could be the blank space or another error message like this one:
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 ….
The common solutions are:
- Edit PHP.ini to update your memory limit by increasing the memory number. For example if the below line showing memory 64M like the following:
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
You can increase 64M to 128M
- Edit .htaccess file by adding the following script:
php_value memory_limit 64M
- Edit wp-config.php file by adding the following script:
Increasing memory allocated to PHP
- Create PHP.in file to wp-admin folder
8. When You are Locked Out of Your WP Admin
Do you lose password and failed to recover your account via email? It could happens because of plugin or code that incorrectly tries to make some changes into your admin sections. It could also happen when someone tried to hack your WordPress site and changed our usernames and passwords.
The common solution you can try:
– Reset your password through phpMyAdmin from your cPanel
– Reset your password via FTP
9. Login Page Refreshing and Redirecting
This issue usually happens when there is incorrect values for site url and home url fields in WordPress options table. You can fix this by clear cookies to resolve login issues, deactivate all plugins, reset your them to default them, update site url in wp-config.php or generate fresh .htaccess file.
[ Also Read: 18 Best WordPress Social Sharing Plugins For 2015 ]
10. Fix Image Upload Issue
It starts worrying you to find all the images from your site are gone and are only showing broken image placeholders. When you tries to upload any image to a post then it results into an error. It usually caused by the incorrect file and directory permission in your WordPress installation, so now it’s time to check them out via your cPanel.
11. “Briefly unavailable for scheduled maintenance” Message
You might see ‘Briefly Unavailable for Scheduled Maintenance’ in WordPress do to unfinished or interrupted WordPress update. It may happen when WordPress puts your site in maintenance mode during their update. The solution is to remove the .maintenance file from your web root directory.
We hope this list will help you out to find solution for your WordPress’s trouble. One thing to remember, always do backup before you make changes to your website. It’s actually one of the best preventive action to help your self from accidental error. If you could not resolve the issue, it’s advised to contact your hosting company.