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

How to Fix the WordPress White Screen of Death

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Fix the WordPress White Screen of Death

If you have been using WordPress for a few years, then you have encountered the white screen of death at least once. The WordPress white screen of death is one of those extremely annoying problems like error establishing a database connection. The reason why this issue is frustrating for users is because it locks you out of your WordPress admin panel. Because there is no error output in most cases, you are left clueless to figure out what is the issue. The worst thing about white screen of death is that sometimes it will only affect a certain part of your site. For example, you may only see the white screen of death on your WordPress admin while everything else works fine. In other cases, you may only see it on a specific post whereas everything else runs just fine. In this article, we will show you how to fix the WordPress white screen of death by looking at a few possible solutions.

Note: Before you make any changes to your site, make sure you have sufficient backups.

Why do you get this error?

Majority of the time when you see a white screen of death, it means that you exhausted the memory limit. This could be caused by a plugin that you may be using that is not functioning properly. It could also be caused by a poorly coded theme that you are using. It could also mean that there is an issue with your web hosting server. Since the problem can be caused by any number of things, it may require a lot of troubleshooting.

Does the problem occur on your other sites?

If you have multiple sites, then the first thing you should do is to make sure that the white screen of death is happening across the board or just on this one domain. If the issue is with all of your sites, then it is a strong indicator that your web hosting provider is having some issues. However, if the issue is only with one of your sites, then this could be an issue with a plugin or theme that you are running. If the issue is only happening with a single post or page, then you know it is definitely a problem with your specific site.

Increasing the Memory Limit

Usually this issue happens because your memory is being exhausted. Use our tutorial on how to increase PHP memory in WordPress.

Disabling All Plugins

If increasing the memory limit did not help, or if you have a high memory limit like 256M or 512M, then you need to start troubleshooting. In our experience of troubleshooting this issue, we have always found that the issue is either with a specific plugin or a theme. Let’s go ahead and disable all the plugins.

Use these instructions on how to deactivate all WordPress plugins at once.

If this fixes the issue, then enable one plugin at a time to get to the bottom of the issue.

Replace Theme with a Default Theme

If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default twenty ten theme. The best way to do this is by backing up your theme folder. Then deleting the theme. WordPress will automatically fall back to the default theme.

Alternatively, you can go in your phpMyAdmin and update the database tables in wp_options table. The following table names would have to be updated:

template, stylesheet, and current_theme. Change the value to twentyeleven.

If this fixes the issue, then you should look at your theme’s functions.php file. If there are extra spaces at the bottom, then you should consider fixing it. If you are using a poorly coded function in your theme’s functions.php file, then it can cause this as well.

Other Fixes

If none of the above fixes it, then you should try to re-install a fresh copy of WordPress. While it is unlikely, but it is always possible that a core file may have been corrupted.

You can also use the WordPress debug function to see what type of errors are being outputted. Add the following code in your wp-config.php file.

error_reporting(E_ALL); ini_set('display_errors', 1);

define( 'WP_DEBUG', true);

Once you add this, the blank screen will now have errors, warnings, and notices. These may be able to help you determine the root cause.

Sometimes, you may have access to the backend, but the front-end of the site has white screen of death. This can happen because of a caching plugin. Simply empty your cache.

If you have a white screen of death only on a very long post page, then you should also try to clearing cache. Another trick that we have found to work is increasing the recursion and backtrack limit. You can paste the following code in your wp-config.php file. Or in some servers you will be required to modify your PHP.INI file.

/** Trick for long posts */

We understand that this is a very frustrating error, and we hope that one of the tricks above fixed the issue for you. What have you tried that seemed to work for you? If you found another solution to work, then please let us know. We would be happy to expand on this resource, so others do not have to waste as much time finding a solution.

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 »


  1. Britneye says:

    This totally saved my butt today. Thanks so much! I was in full on panic mode!

  2. austine charles says:

    am comfused l these dosnt seemto work atall am in trouble now my dashboard is totally white now

  3. Rory Ingen says:

    We had this issue but it stated “error” in the top left corner of the white screen.

    We had recently implemented a new security plugin and I had entered the incorrect password multiple times and so the security plugin blacklisted my IP.

    After 15 minutes I can now get back in again.

    Luckily I waited before I started on all the above fixes!!

  4. Aleksandar says:

    Another solution – check and remove empty index.htm and/or index.html and/or default.htm

    If server config changed (after Apache upgrade), order of index files can change so index.php stay behind plain files.

    Had this case once in last two years.

  5. prokops says:

    In my case, wp-admin/post.php blank screen was fixed by removing the ” ?> ” at the end of my function.php in my child theme. I don’t know how the end tag ended in there, but removing it solved my problems.

  6. Nell Yang says:

    I should say thank you to you all! Thank you for sharing your posts with us. I am still working on this problem but it’s so nice to see your instructions. Thank you very much!

  7. Ming says:

    I have the white screen of death it’s sending me crazy, have tried loads of things that people have suggested and am at a loss as to what I can do . Any help gratefully received before I throw the laptop out of the window

  8. Haiko Nieuwoudt says:

    Thanks for this insightful article. Saved my skin!

  9. Charles Osborne says:

    I found a hint for this on another site. It is an error caused by a newr version of php more than likely. If your Cpanel allows you change your php version roll it back to until your site works and then you can update everything and go back to the newer versions of php.

  10. Drew Walk says:

    Thanks !!!
    error_reporting(E_ALL); ini_set(‘display_errors’, 1);

    define(‘WP_DEBUG’, true);

    very help me.. now i can customize my site.. Thanks !

  11. Morshedul Arefin says:

    This is really a very nice and helpful article for developers. Thank you so much for such kind of tremendous article.

  12. kelley c says:

    I’m helping with a website for a non-profit, I’m not a Word Press expert so i was distressed when I kept getting the white screen with one word ‘error’ displayed and could not access any pages on the site through the admin.

    My web host couldn’t see anything amiss so he suggested I unplug my router and let it reset. Sure enough it worked. I continue to see the white ‘error’ screen but unplugging the router has fixed it every time.

    What on earth could cause this? Am working under limitations as it is, this makes it even harder to want to help them out.

  13. Alois says:

    White screen, login to WP not working, 3 pages of fake users then found in WP, mess in files on FTP = HACKED WP.
    TIP: Do REGULAR UPDATES both: Files from FTP and MySQL database from phpMyAdmin or hosting Administration! Save localy together for these situations.

    (TIP: Most of hosters do regular backups about 14 days back)

    1. downloading MySQL database (.sql file) from the hosting administration as a backup.
    2. downloading OLD HACKED WP from FTP (hosting) as a backup.
    2. downloading fresh installation of WP from
    3. deleting WHOLE OLD WP installation from FTP (all files).
    4. moving NEW fresh WP to FTP.
    5. copy some my folders from OLD WP to NEW WP from folder wp-content: plugins, theme, uploads.
    6. installation of new WP and telling it: I have got an existing database, so filling db name, password…
    7. after installation WP working ok, login – deleting fake users, unused plugins, themes, check. TIP: WP Settings > General > Turn off option: Anyone can register as a new user.
    8. installing plugin Wpdbup for automatic backups, setting its jobs, tests of them.
    10. DOWNLOAD working WP both, ALL FILES from FTP and MySQL DATABASE from hosting or PhpMyAdmin AS A BACKUP.
    11. Repeat point 10. always BEFORE a lot of changes of your web and always AFTER them :-)

    Jesus saves :-)

    Good luck


  14. Nicola says:

    U saved my life thanks!!!!

  15. Julie says:


    I have a several wordpress sites and I have a blank white screen on all of them and I cannot access the admin page on any of them to try to fix the problem. Can anyone help?

  16. MALLORY says:

    Help! I don’t have access to the php, I’m working with a company and I have their login info and that’s it. It’s giving me this: Fatal error: Cannot redeclare class oauthconsumer in /nas/content/staging/cphouston/wp-content/plugins/comments-plus/lib/external/twitter/OAuth.php on line 12

  17. Eileen Prades says:

    Woke up to a blank page this morning and tried your fixes. Unfortunately nothing worked for me. It turned out that my wp-config.php was completely empty. Luckily I could restore it from a backup. But I’m still wondering how this could happen? Any ideas?

  18. Willem says:

    I read allot of posts and sat for a week trying solve this.
    The Issue was:
    My Public ip was blocked on the “Shared Hosted Server” so I called my service provider that does my hosting and they removed it. and its working again

  19. jo says:

    After being hacked, I followed your instruction to changed my password in phpMyAdmin. then I got the white screen on my admin page. any ideas?

  20. Yamini says:

    Not working, any solution to this

  21. Olivier says:

    Thank you very much for your usefull article!
    With this I finally can find the plugin who gives me the ‘famous’ white screen of death…
    Hope that everything will be ok now ;-)

  22. Willem says:

    Any Solution to this problem yet?


  23. Harper says:

    Today my blog went white like you were describing, but I can’t even get log in or access anything on my site to try anything you’ve suggested because absolutely everything is white. Any ideas on what to do in this case? I’m pretty sure it’s because I somehow messed up the coding in the theme when I was try to remove the “powered by WordPress” on the bottom of the page. Thanks so much!

  24. W0bble says:

    I fixed it saving wp.config.php in ANSI instead of UTF-8…

  25. Alex says:

    If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default twenty ten theme. The best way to do this is by backing up your theme folder. Then deleting the theme. WordPress will automatically fall back to the default theme.

    My site was hacked! I just restored it! Thank you so much! Even though it looks ugly, it is not directed to others sites.

    Very useful guide!

    One question: When I go to Google and type, it still says, “This site may be hacked.” What can I to remove this?

    Thank you so much again!


  26. Jedda says:

    i had the white screen of death caused by a plug in, i renamed the plugins after eventually deciphering enough tech language to set up an FTP client via filezilla.(i had to watch 6 very annoying youtube videos to get there) Still only the admin log in box but nothing else. Came here, deleted the theme as directed and now even the log in box is gone. A years worth of work on my site gone, both page and my will are broken. any ‘idiots set by step’ advice welcome x

    • erm3nda says:

      For little bucks i can fix your site, sure.

      I had no enough time to “decypher” tech language. It’s is time consumption. Fix things is faster :P

      If you really add worth to your website, consider that “repairing” a kind of issue you can pay for get rid of.

      Analogy of cars should be like: Your car do not cost only the 10.000 initial cost, it cost to you the fuel, tires and other things, like paint, repair etc.

      Best of luck

  27. erm3nda says:

    Yes, rename the themes then put it back did the trick… omg
    I was looking around every config file, nevermind.

    Error display didn’t show me anything :C

  28. Sameer Panda says:

    Nothing worked for me. Please check my domain here

  29. Michel says:

    nothing worked for me…:'(

  30. amy miranda says:

    as of yesterday i have suddenly for the first time in 4 years, the white screen of death.. i can’t log into my website. my developer does not know, he says he will hire a team and it will cost me $1000 to fix it. how can i fix it myself. my website is called but now i can’t even access it. help please!

  31. diogo says:

    I followed the instructions in section “Replace Theme with a Default Theme”, and updated the wp_options. This worked fine for me.

    Thank you.

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.