Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

14 Most Common WordPress Errors and How to Fix Them

Last updated on by
Follow WPBeginner on YouTube
14 Most Common WordPress Errors and How to Fix Them

While WordPress is really easy to use, there are some common WordPress errors that can make you panic. The good thing is that the error you are seeing on your site is most likely been reported and resolved by someone before you. At WPBeginner, we have written tutorials on how to fix several popular WordPress errors. In this article, we will cover the 14 most common WordPress errors along with showing you how to fix all of these common WordPress errors.

WordPress Error

Important: Make sure that you have a complete backup of your WordPress site. We strongly recommend using an automated scheduled backup system like BackupBuddy. However, if you can not install plugins at this time, then check out how to manually create WordPress backup manually. In case you are unable to resolve a issue, please contact your WordPress hosting company.

1. How to Fix the Syntax Error in WordPress

This error usually occurs when you are trying to add code snippets into WordPress and have accidentally missed something or the code has incorrect syntax. This will result into a PHP parse error and you will see a notice like:

Parse error - syntax error, unexpected $end in /public_html/site1/wp-content/themes/my-theme/functions.php on line 278

The error message would indicate the unexpected thing found in the code and the location of the script where the error occurred with line number. To fix this issue you will have to correct the syntax. Most of the time it is a missing bracket, or some unexpected character in the code. [Fix this error]

2. How to Fix the Internal Server Error in WordPress

Another common error that WordPress users may come across is “Internal Server Error”, or sometimes “500 Internal Server Error”. This error usually happens when there is something wrong, but the server is unable to idefntify where the problem is. Since the error message does not indicate where you should look for the error, it pretty much up to you to figure this out. We have compiled a list of solutions that you can try and one of them will help you resolve it. [Fix this error]

3. How to Fix the Error Establishing a Database Connection in WordPress

This error message is clear that your website is unable to connect to the database. However solving this error can be tricky for beginners. Usually this occurs when a user has entered or modified their database credentials (database host, database username, and database password) incorrectly. Sometimes your database server could be unresponsive, or your database may have corrupted. However, most of the time it is usually incorrect database login credentials. Take a look at common solutions for this problem. [Fix this error]

4. How to Fix the WordPress White Screen of Death

This error usually results into a plain white screen with no error message which makes it the most puzzling because you have no clue where to look and what to fix. Most of the time it is caused when a script exhausts PHP memory limit. It can also happen due to a configuration on the server. It is also possible that a user would only see white screen of death on certain sections of their site. [See how to fix this error]

5. How to Fix WordPress Posts Returning 404 Error

The symptoms of this error is that when a user visits a single post on their site they get a 404 page – not found error. The user can browse all other sections of their site including the admin area. The most common cause of this issue is permalink settings in WordPress. To solve this issue a user would need to reconfigure their permalinks settings or manually update their rewrite rules. [Fix this error]

6. How to Fix the Sidebar Below Content Error in WordPress

Another common issue that many WordPress beginners face is sidebar appearing below the content when it is supposed to appear next to the content. Causes of this issue are mostly related to themes. Sometimes when users are adding code snippets to their site, they may accidentally forget to close an html div tag or add an extra closing div which may result into breaking the theme layout. Another common cause is using disproportionate width in CSS or not clearing float properly. [Fix this error]

7. How to Fix White Text and Missing Buttons in WordPress Visual Editor

Sometimes buttons from WordPress visual editor may disappear or start showing blank white spaces instead of buttons. This problem may occur when concatenated JavaScript is not working in user’s admin area, missing or corrupt TinyMCE files, or conflict with some other plugin that modifies or extends the TinyMCE shipped with WordPress. [Fix this error]

8. Fix: WordPress Memory Exhausted Error – Increase PHP Memory

Indications of this error could be a white screen of death, or an 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 xxx

This error occurs when a WordPress script or a plugin exhausts the default allocated memory size limit. [Fix this error]

9. What To Do When You Are Locked Out of WordPress Admin (wp-admin)

Sometimes you may find yourself locked out of the WordPress admin area. This could happen if you forgot your password and don’t have to access to password recovery email. This could also happen due to a plugin or code that incorrectly tries to make some changes into admin section. It could also happen if someone has hacked your WordPress site and changed all usernames and passwords. [Fix this issue]

10. How to Fix WordPress Login Page Refreshing and Redirecting Issue

Symptoms of this issue are that when a user attempts to login to the WordPress dashboard, they are redirected by WordPress back to the login page. Most of the time it happens due to incorrect values for site url and home url fields in WordPress options table. [Fix this issue]

11. How to Fix Image Upload Issue in WordPress

Sometimes a user would suddenly notice that all the images from their site are gone and are showing broken image placeholders. When the user tries to upload an image to a post using the media uploader, it results into an error. All these files in the media library will appear as broken. This error occurs due to incorrect file and directory permissions in a WordPress installation. A number of factors may cause this issue. [Fix this issue]

12. How to Fix Common Image Issues in WordPress

Uploading images to a WordPress site can be confusing for someone new to WordPress. A user may be unable to find out how to align images, resize or crop them, or display them in a gallery format. This is not an error or issue in WordPress. You just need to familiarize yourself with how WordPress handles media. [Fix this issue]

13. How to Fix “Are You Sure You Want to Do This” Error in WordPress

Users may come across this error in WordPress admin area. The most common cause of this error is a plugin or theme failing to use Nonce properly. Nonce are special security keys which may be appended to URLs when performing an admin action in WordPress. Sometimes a plugin or theme may use it incorrectly which may result into users seeing this error. [Fix this error]

14. How to Fix Briefly Unavailable for Scheduled Maintenance Error in WordPress

Sometimes due to an unfinished or interrupted WordPress update, you might see Briefly Unavailable for Scheduled Maintenance error in WordPress. What happens there is that WordPress puts your site in maintenance mode during an update. If for some reason the update is interrupted, WordPress does not get the chance to put your site out of the maintenance mode. This error would lock down your entire site and make it unavailable for admins as well as visitors. [Fix this error]

We hope this list helps you find solutions for some of the most common WordPress errors. If you run across another WordPress error that we haven’t covered, then please let us know. We will do our best to cover it and provide a fix.

You can help us out by leaving a comment below or join us on Twitter.

Don’t forget to share this article with your friends.


Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »

Comments

  1. April says:

    I cannot figure out how to make tab spaces stay when I switch between html and visual mode in wordpress. I am a poet and this makes playing with the format extremely difficult. I have not been able to find a solution anywhere (that does not involve major coding that I do not understand.) Is there an easy way to fix this?

    • WPBeginner Support says:

      That’s mainly because Tab Spaces are not HTML formatting. You can install a plugin like TinyMCE Advanced to add an indent button into your visual post editor.

  2. Silvia says:

    I am so glad have found this blog, a lot of information very easy to digest..
    I have my website in WP running already for two month.
    Now I have encounter a problems with the links. I cannot link words from my content. I use to do clicking the icon, that shown me a little window to redirect the link, It was running perfectly, but since two ago it doesn’t work any more.When I click in the icon the screen move to the right, and that’s, anything else happens.
    If I want create a bottom it is fine, there is no problem.
    There a way that I can fix that easily by myself, I am not really tecchy.
    Thanks so much.

  3. Phil says:

    I cannot for the life of me get images to show at all on my WordPress website. I’m running Ubuntu 14.04 and my WordPress is now on localhost. I can upload and edit images and see them while doing so just fine! BUT I cannot load images into my webpages and the images with the themes don’t show either. I’m getting zero php errors and zero Apache errors.
    Just can’t understand this and couldn’t find the answer via Google. I’m running WordPress 4.1.1. I’ve disabled ALL plugins and still have the problem AND I’ve set my /usr/share/wordpress/wp-content folder to 777 permission and /usr/share/wordpress/wp-content/uploads directories and everything under them to 777 permissions. A check of the Apache and php error logs shows no errors.
    Any help is much appreciated.
    Phil

    • WPBeginner Support says:

      We are not sure how apache is set up on your system. But here is something you can try. Add user you are currently logged in with to the www-data group. After that you need to give the ownership of your WordPress directory to the www-data group. Lastly, you need to set directory permissions for wp-content folder to 755. Hope this helps.

      • Phil says:

        Hi and thanks,
        My permissions are see as you said and my user is part of the group www-data but still the same results as above. I cannot even see the theme images except for the images on theme twenty fourteen only when selecting it.
        Thanks,
        Phil

  4. jane says:

    Hi, I hope you can help I am not using Worpress as a blog but as a website with information only. How do I remove the bottom panel that has comments and log in as people are trying to get into the site – when there is nothing to get into. Thanks

  5. Robin says:

    Was uploading pics and it was working fine. In the middle of it, I started getting an error message: dscf4594-1(rev 0).jpg” has failed to upload due to an errorThe uploaded file could not be moved to wp-content/uploads/2014/11 and now I am unable to upload anything. Any help would be greatly appreciated!

  6. kirsten says:

    The media I have uploaded over the weeks suddenly dos not show on my page and if it does once play is clicked it does not play ? PLEASE HELP

  7. vinh says:

    how to fix content page not showing. plz help me

  8. Martin Orton says:

    Some really good WordPress tips here! Really enjoyed reading it! :)

  9. Abdelrahman Helmi says:

    My host offers PHP 5.3 , 5.4 and 5.5 versions, What is the best for WP?

  10. Dewey says:

    getting Fatal error: Call to undefined function get_user_by() in D:\Hosting\11407246\html\wp-content\plugins\intellectual-property-basic\template_handling.php on line 84

    when signing into wordpress wp-admin site….

  11. Nathan Freeburg says:

    I’m getting this error when I click on the Plugins link.

    Fatal error: Cannot use object of type stdClass as array in /data/16/2/156/148/2156963/user/2367401/htdocs/WordPress/wp-content/plugins/all-in-one-event-calendar/all-in-one-event-calendar.php on line 160

    It’s clearly an issue with that one plugin, but how do I get in to deactivate it?

  12. Manuel Crisol says:

    I put in a comment with a request for help a few minutes ago. It showed when I clicked “add your comment”. But when I refreshed the page and went back again. All other comments that I saw before I posted were there except my post for help. Why?

  13. Manuel Crisol says:

    I can’t understand something in my website. I have WordPress 3.8.1 running Twenty-Eleven Theme. in my media library I had one word I wanted to change. FIRST–I deleted the media item in my library.SECOND—I uploaded the same item which I edited in my computer (one word change: from the word “can” to the word “may”) THEN—-when the item was uploaded, it still showed the word: “can” and NOT the word “may”. Third—I again went back my media library and instead of DELETING the media library item. while the item concerned is checked: I clicked: “edit image”. and this brought me to EDIT MEDIA PAGE: BUT THE IMAGE SHOWED MY CHANGES. THEN, I CLICKED UPDATE AND VISITED THE PAGE WITH IMAGE CONCERNED AND IT STILL HAS THE WRONG WORD THAT I WANTED TO CHANGE.

    What am I doing wrong??? I would appreciate your reply. THANK YOU VERY MUCH.

  14. Gary Clift says:

    Hi there,
    Thanks for your tips on your web site regarding WordPress.
    Can you please answer a question?

    I added my newly registered gary-example.com domain to my WordPress site:

    WordPress Address (URL) http://gary-example.com
    Site Address (URL) http://gary-example.com

    and it worked but when I changed the settings to:

    WordPress Address (URL) http://www.gary-example.com
    Site Address (URL) http://www.gary-example.com

    I could no longer access the site. I Googled and was able to edit the functions.php file to get back to normal, but people are expecting to be able to hit http://www.gary-example.com.

    Am I doing something wrong? Or have I not given the Name Servers enough time to make this magically work??

    Thanks so much, I really appreciate it.

    Gary

    • Gary Clift says:

      Sorry I meant to say people are expecting to be able to hit http://www.gary-example.com.

      Thanks,
      Gary

    • WPBeginner Support says:

      You need to ask your web host for support. It seems that your domain is not configured to use www

    • Freddy says:

      You can try redirecting your www domain (www.gary-example.com) to the non www domain (gary-example.com) using .htaccess

      Add the following code in your .htaccess file:

      RewriteEngine On
      RewriteBase /
      RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
      RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

      And save the changes. Hope it helps!

  15. Albert Fields says:

    I have the biggest (to me) beginner error. I loaded WP into my host site and all I get is a page that says it is the front page and does nothing.

    I can not figure how to get to the administration page of WP.

    I need some help.

  16. Pam Burzynski says:

    Yes, I always love your tips because you know what difficulties we’re experiencing. Relative to photos, how about this one…No problem uploading photos to posts, but when sharing these posts on twitter, fb, linkedin the photo doesn’t show up anymore (it used to). Now I get this strange bubble “photo” instead of the image. Yes, I have set the featured image too. I have searched for solutions and know a lot of other folks have this issue as well, but I can’t resolve it. Of course these types of issue can drive a person batty. Any thoughts on this one? Thanks! ~Pam

  17. Carole Rains says:

    I have triggered errors on my site when attempting to add code or make some other type of layout change. Is there a way for me to create a dummy version of my site that I can test my changes on so I don’t break my site while customers are on it?

  18. Lupdilup says:

    Thank you for sharing all these great tips and tutorials, I truly appreciate it :)
    Have a fabulous New Year!

  19. David Radovanovic says:

    Don’t forget the increasingly popular ajax permission error:

    “XMLHttpRequest cannot load http://www.yourwebsite.com. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://yourwebsite.com’ is therefore not allowed access.”

    Note the two urls: one has a “www” while the other does not. Same server though different domain causes the error.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.