WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
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

WPBeginner» Blog» Tutorials» How to Fix the WordPress White Screen of Death (Step by Step)

How to Fix the WordPress White Screen of Death (Step by Step)

Last updated on December 3rd, 2020 by Editorial Staff
578 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Fix the WordPress White Screen of Death (Step by Step)

The WordPress white screen of death is one of the most common WordPress errors. It is also one of the most frustrating ones because there is no error message, and you are locked out of WordPress.

Another problem with the white screen of death error is that sometimes it only affects a certain part of your website.

For example, you may only see the white screen of death inside the WordPress admin area, while everything else works fine. In other cases, you may only see it on a specific post whereas everything else works fine.

In this article, we will show you how to fix the WordPress white screen of death by looking at different solutions.

Fixing WordPress white screen of death error

Note: Before you make any changes to your site, make sure you have a backup of your WordPress site. If you don’t have access to the admin area, then see our guide on how to manually create WordPress database backup.

Why Do You See the White Screen of Death in WordPress?

Majority of the time when you see a white screen of death, it means that a script on your website exhausted the memory limit.

The unresponsive script either gets killed by your WordPress hosting server, or it simply times out. This is why no actual error message is generated, and you see a plain white screen.

WordPress showing white screen instead of website

Sometimes you might see a critical error message instead of a plain white screen.

Whether you’re seeing a blank screen, or the message “There has been a critical error on your website,” it’s the same error.

This error can also happen due to a poorly coded theme or plugin installed on your site. Sometimes it can happen if there is an issue with your web hosting server.

Since the white screen error can be caused by any number of things, it requires methodical troubleshooting to fix.

Does the problem occur on your other sites?

If you have other WordPress sites installed on the same hosting account, then you want to start by checking if the problem is occurring on other sites as well.

If it is, then that’s a strong indicator that something is wrong with your WordPress hosting service. This could be a temporary issue affecting their service, and you need to reach out to their support for more help.

On the other hand, if the issue is only happening with one website or a specific part of that site, then you know that the problem is with that particular website.

Fixing White Screen Error with WordPress Recovery Mode

If the white screen of death error is caused by a WordPress plugin or theme, then WordPress may be able to catch it.

The new fatal error protection feature introduced in WordPress 5.2 can sometimes catch the error, so you may not even see a white screen. Instead, you will see a message that the site is having technical difficulties.

Technical difficulties

You would also receive an email message on your admin email address with the subject ‘Your Site is Having a Technical Issue’.

Technical issue email sent to admin

This email message will point out the plugin causing the error, and it will also contain a special link. This link will allow you to login to the WordPress recovery mode and deactivate the faulty plugin.

WordPress recovery mode

However, if you are seeing the plain white screen of death with no email or recovery mode option, then you need to manually fix the error.

Increasing the Memory Limit

Usually, this error happens because a script has exhausted the memory and quit in the middle. To fix this, you need to increase PHP memory available to WordPress. This will allow the script to use more memory to finish the job it was supposed to do.

You can follow the instructions in 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.

If you can still access the WordPress admin area, then you can simply go to Plugins » Installed Plugins page. Select all the installed plugins and then select ‘Deactivate’ under ‘Bulk Actions’ drop-down.

Deactivate all plugins via WordPress admin area

However, if you don’t have access to the WordPress admin area, then you will need to deactivate all plugins via FTP.

First, connect to your WordPress site using an FTP client. Once connected, go to the wp-content folder where you will see the ‘plugins’ folder.

Rename plugins folder to deactivate all plugins

Now, you need to right-click on the plugins folder and then select rename. You can rename the plugins folder to plugins-deactivated.

Plugins deactivated

Your FTP client will now rename the plugins folder.

WordPress looks for a folder named plugins to load all plugins. When it cannot find the folder, it simply deactivates all plugins.

If this fixes the issue, then enable one plugin at a time to get to the bottom of the issue. Once you find the plugin causing the issue, you can replace it with an alternative or report the issue to plugin authors.

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 theme.

First, connect to your website using an FTP client and go to the /wp-content/themes/ folder. It contains all installed themes on your website.

Right-click to select your current WordPress theme and download it to your computer as a backup.

Download current theme as backup

Next, you need to delete your current theme from your website. Right-click on your theme folder and select ‘Delete’. Your FTP client will now delete the theme from your website.

Delete current theme

Now if you have a default WordPress theme like (Twenty Eighteen or Twenty Nineteen) installed on your website, then WordPress will automatically start using it as the default theme.

However, if you don’t have a default theme installed, then you need to manually install it using FTP.

If this fixes the issue, then you should look at your theme’s functions.php file. If there are extra spaces at the bottom of the file, then you need to remove those, and sometimes that fixes the issue.

If you are using a poorly coded function in your theme’s functions.php file, then it can cause the white screen of death error as well.

Consider downloading a fresh copy of your theme from its source and then install it.

Enable Debug Mode to Catch Errors in WordPress

If nothing has helped so far, then the next step is to turn on debugging in WordPress. This will allow you to see what type of errors are being outputted.

Simply, add the following code into your wp-config.php file.

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', 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.

If you don’t see any errors, you may still want to check the debug log. Simply visit the wp-content folder on your website using an FTP client. There you will find a new debug.log file containing a log of all errors, notices, and warnings.

Debug log

Clear WordPress Cache

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

See our guide on how to clear cache in WordPress for detailed instructions.

Fixing Longer Articles

If you have a white screen of death only on a very long post or page, then this little trick might work.

This trick basically increases PHP’s text processing capability by increasing the recursion and backtrack limit. You can paste the following code in your wp-config.php file.

/** Trick for long posts */
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);

We understand that this is a very frustrating error, and we hope that one of the tricks above fixed the issue for you. You may also want to see our WordPress troubleshooting guide which teaches the steps you should take to catch and fix WordPress problems by yourself.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

578 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Revealed: Why Building an Email List is so Important Today (6 Reasons)

    Revealed: Why Building an Email List is so Important Today (6 Reasons)

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

279 Comments

Leave a Reply
  1. Dagoberto says:
    Aug 8, 2014 at 11:17 pm

    I need to downgrade 3.9.2 to 3.9.1.

    Reply
  2. Sylvester Lapisang says:
    Jul 26, 2014 at 11:58 am

    Thanks for the post, deactivated all the plugins and it worked, Zopim Chat was the problem

    Reply
  3. Robbie Davidson says:
    Jul 8, 2014 at 8:14 pm

    Deleting WP Super Cache Plugin solved the problem for me.

    Reply
  4. wohfab says:
    Jun 19, 2014 at 10:41 am

    It was a crashed functions.php for me (desptie I did not change anything o.o) – THANK YOU SO MUCH!

    Reply
  5. Aleksandar says:
    May 29, 2014 at 4:17 am

    Great tips. In my case (WP v.3.5.1) problem was plugin wp-super-cache. I just delete it and all works ok. I didn’t have time to update and upgrade instalation and plugins.. So maybe this helps.

    Reply
  6. Chris says:
    May 15, 2014 at 1:52 am

    Thanks, both removing plugins and changing themes to default worked for me. but my prob is i can’t activate my plugins. it’ll just open another white screen of death. all plugins.

    Reply
  7. Hans Haupt says:
    May 5, 2014 at 5:57 am

    Thank you so much for your post.

    I tried updating my theme and was met with the ‘White Screen of Death’.

    I took your advice to delete the problematic theme from the site cPanel and ‘presto’, I was able to log back into wordpress and change the theme to one that works.

    Reply
  8. Bryan Myers says:
    May 1, 2014 at 7:22 pm

    Here’s something else to look for- make sure you close out the php tag on the page information block (not sure of it’s real name) at the top of your template page. doh.

    Reply
  9. Kaveh says:
    Apr 29, 2014 at 10:57 am

    Thank you so much
    Your instruction helped me fix my problem :)
    tnx again

    Reply
  10. bashar says:
    Apr 14, 2014 at 2:25 am

    Thank you so much.. Problem is solve.
    Really loving wpbeginner.com

    Reply
  11. Tommy says:
    Apr 11, 2014 at 10:14 am

    Hey all I had this problem too and found a solution. It seemed to happen from updating from 3.71 to 3.72.

    Ok so I tried the following:

    rename plugin folder
    delete theme
    change memory in config file
    report errors in config file

    I then saw the error:

    Parse error: syntax error, unexpected $end in /home/public_html/wp-includes/cron.php on line 247

    I checked the cron.php and it looked like loads of the code was cut off because it endee with a comment. So I uploaded a new cron.php file from wordpress and it worked.

    I hope this may help others who have this issue.

    Thanks

    Reply
  12. vincent says:
    Mar 23, 2014 at 2:50 pm

    Hi, as simpler way is to manually disable all plugins via PhpMyAdmin http://perishablepress.com/quickly-disable-or-enable-all-wordpress-plugins-via-the-database/

    Reply
  13. Mike says:
    Mar 23, 2014 at 6:28 am

    It’s the first time I write here. In my case, everything is blank, I can’t even log in with
    It is still under construction, so I just uploaded a new theme and all went blank.

    I know I have to revert the theme to the “twenty twelve”, but how? If I can’t even log in.

    any help?! THANK YOU

    Reply
    • WPBeginner Support says:
      Mar 23, 2014 at 4:16 pm

      Connect to your website using an FTP client, go to /wp-content/themes/ directory and delete the theme you just uploaded. If your webhost offers cPanel, then you can use file manager in cPanel to delete the theme.

      Reply
  14. Jay Lawrence says:
    Mar 13, 2014 at 4:47 pm

    Here’s another way to get WSOD! My template, from Yoo Themes, generates a ‘cache’ directory. I accidentally filled the drive with this website causing a zero byte cache file.

    root@www:/var/www/wp-content/themes/yoo_vanilla_wp# ls -l cache/
    total 32
    -rw-r–r– 1 www-data root 25 Mar 13 16:41 index.php
    -rw-r–r– 1 www-data www-data 0 Mar 13 16:43 xml-9ae22c153220f9eda980e5ec3b598954.php

    Delete the “xml*.php” files in here after you’ve cleaned up your drive … back in business.

    That only took a couple hours of hunting – groan.

    Reply
    • Ope says:
      Apr 13, 2014 at 3:03 pm

      Sorry i deleted the xml.php file but it still came back the moment i refreshed the wp-admin page. yet WSOD persist. Any help. am using a yoo theme too

      Reply
  15. Michelle says:
    Mar 13, 2014 at 9:43 am

    I have this White Screen on my website, have tried EVERYTHING and nothing working. I cannot access my wordpress login or admin page. It is a new website, so I dont mind wiping it clean and starting again, but I have tried to upload a fresh install of wordpress 3 times and it keeps crashing dreamweaver. Is there any other way I can fix this?? Need help Please :(

    Reply
  16. Aamna says:
    Mar 9, 2014 at 4:12 pm

    I am a subscriber of your site and my client is also seeing the white screen of death
    I have used all the fixes but still no success
    What I fell is that I think my clients site’s wp-content has unnecessary folders like
    1- backups (files in this folder are ( .htaccess, .backup_running, database_arcproject_co_u.sql)
    2-cache
    3-uploads(it has many folders of images)
    Please tell me what should I do?
    Thanx

    Reply
    • WPBeginner Support says:
      Mar 9, 2014 at 10:22 pm

      First make sure that your client has a backup. If they don’t have a backup then you need to create one now before you make any further changes.

      After that you can start deleting the unnecessary files from wp-contents folder. Try deactivating all plugins by renaming the wp-content/plugins folder to wp-content/plugins.old.

      Reply
      • Aamna says:
        Mar 10, 2014 at 3:34 am

        I have tried disabling the plugins but it didn’t worked.
        Anyways how can i take a backup of the site?

        Reply
        • WPBeginner Support says:
          Mar 10, 2014 at 8:02 pm

          In case you don’t have access to the admin area, you would first need to make a database backup manually. After that you would need to download all the files from the website, using an FTP client.

  17. AJ says:
    Feb 25, 2014 at 1:06 pm

    One of the most common causes of whitescreen is white space at the beginning or end of a functions.php file or other php file. Often when cutting and pasting or simply editing code a line break gets in at the top or bottom and bam!!…

    Look before the tag at the bottom.

    Reply
  18. jd says:
    Feb 13, 2014 at 8:13 pm

    i did some testing and have uploaded a new theme to the server and have added no limit on the memory and reinstalled the wp to current one. and what i found out to be an issue is with the SQL data base.. when wp tells the SQL server that i have deleted or updated info it seems to keep everything even the deleted items.. NOw the big question what did i do to fix it. well i went to the data base and erased the whole thing and then renamed it back to the same one and went to my site and enter some basic info that showed up .. and BAMMM no white screen i went and turned on the theme and continued my adjustment and creation

    Reply
  19. Lea says:
    Feb 12, 2014 at 5:07 pm

    Hi,

    I took over a WP website for a client and I logged in once, updated the pluggins and since then, I can’t enter the Admin section of WP nor see the website. White screen of death indeed, for both.

    I have read in the comments part above that someone had the same issue, which you directed to the article “Locked out of WordPress admin area.” Unfortunately, in that article, you direct the person with a White screen of Death to the “How To fix the WorldPress White screen of death” article, which is this topic here.
    So… I am a beginner to WP and I am lost. + my client hasn’t had a website for the past 24 hours.
    I would really appreciate some help or re-direction to a tutorial/article that tell me how to actually access my admin page !

    Thanks a lot in advance.

    Lea

    Reply
    • Dum says:
      Jan 25, 2015 at 2:36 pm

      Renaming wp super cache plugin directory in “Plugins” folder resoved the issue

      Reply
  20. abdul aziz says:
    Feb 6, 2014 at 12:46 pm

    Brother !!!!!!!!!! Really Thank you, it was theme problem , can you suggest me how to fix this problem with same theme???

    Reply
  21. Abdul Azzi says:
    Feb 6, 2014 at 12:11 pm

    i have followed all steps……… but still having same error..

    please suggest me what i should have to do ???

    Reply
  22. Boby says:
    Feb 4, 2014 at 11:55 pm

    Hey, my WordPress page only can visit by me (admin), when i logout, the homepage is white screen. please help

    Reply
    • WPBeginner Support says:
      Feb 5, 2014 at 9:01 pm

      Try switching to a default theme like twenty thirteen or twenty fourteen. If this does not solve your problem, then disable all installed plugins. Also update your permalinks.

      Reply
  23. Darlo says:
    Jan 26, 2014 at 12:32 am

    Tried to update my blog today and had problems (was using WordPress app for android). Had considered it to be an app problem and reinstalled it before considering to actually check the site (something I should really have done in hindsight). As I have more than one blog hosted on the same site (the other being fine) I started to get panicky. After diving into a net-cafe I managed to find this trouble shooting guide and now I’m back online.

    Thank you.

    Reply
  24. Lark says:
    Jan 20, 2014 at 3:49 am

    I’m working with the Roots theme. Turned on the computer and had a white page. Had no memory of what I had done a few weeks before. Replacing the custom theme with the default theme and then undoing changes to scripts.php and widgets.php worked for me. Wow, simple solution, but sometimes it’s quite hard to see simple troubleshooting through the panic… Thanks so much!

    Reply
  25. Claudia says:
    Jan 17, 2014 at 3:13 pm

    Great help. 1000 Thanks
    My issue resolved.

    Reply
  26. Ian says:
    Jan 4, 2014 at 1:28 pm

    Thank you. I thought I’d lost everything.

    Reply
  27. Cesar Pietri says:
    Jan 1, 2014 at 3:33 pm

    Thanks,
    It was a great help
    In my case solve rename the plugins folder.

    Reply
  28. Lois Wakeman says:
    Jan 1, 2014 at 7:41 am

    Another cause that I just found (WSOD in site and backend) after upgrade.

    Manual upgrade via FTP was interrupted by a lost connection and somehow a file got missed.

    I used your helpful instructions to turn on debugging having ruled out themes and plugins as problems, which allowed me to trace the offending file and upload it. Voila!

    Reply
  29. soeb says:
    Dec 30, 2013 at 5:46 am

    Thanx it was a great help..!
    In my case it was functions.php file.

    Reply
  30. Rhodon says:
    Dec 29, 2013 at 5:50 am

    I had to activate the debug mode, and this is my error:
    Warning: require_once(ABSPATHwp-admin/includes/dashboard.php): failed to open stream: No such file or directory in /var/www/domains/rhodon.nl/www/wp-admin/index.php on line 13 Fatal error: require_once(): Failed opening required ‘ABSPATHwp-admin/includes/dashboard.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/domains/rhodon.nl/www/wp-admin/index.php on line 13
    How can I solve this?
    Rhodon

    Reply
  31. Junior says:
    Dec 18, 2013 at 7:50 pm

    I had to use the edit phpMyAdmin fix to finally get it to work. Editing the database is never fun but your clear instructions made it easy. THANKS!!!

    Reply
  32. Thomas says:
    Dec 12, 2013 at 6:01 pm

    It was the blank lines in functions.php

    Thanks so much!
    Finally read it in the comments.

    Reply
    • JohnLionFlow says:
      Dec 13, 2013 at 1:40 pm

      Same here! Removed the blank lines in my theme’s functions.php file and it worked.

      Reply
    • earthora says:
      May 7, 2014 at 11:24 pm

      I had the white screen on everything, front and backend, was starting to panic. I removed the last blank line in functions.php and I’m all back up and running. How would it get there? I’ve never opened it on this installation?

      Reply
  33. Christal says:
    Dec 8, 2013 at 10:19 am

    I was able to get out of the “white screen of death” by changing my file name from plugins to plugins-temp, but then my site had reverted back to the old theme, and when I reverted to my new theme (which was installed about a month ago), all of my plugins and widgets were gone! It’s a very basic theme with all of the customizations gone! How do I recover all of this??

    Reply
  34. Niné says:
    Nov 26, 2013 at 8:02 am

    THANKS A MILLION!!!!

    Reply
  35. Eric Gitonga says:
    Nov 5, 2013 at 2:25 pm

    I had to go into phpMyAdmin and into my MySQL database to drop all the wp-* tables created from a previous WordPress install before I could solve the White Screen of Death problem. It now works just fine.

    Reply
  36. Ilke says:
    Oct 31, 2013 at 3:49 pm

    Hi,
    I was very happy with your advice once about a year ago with a white screen on the entire front-page of a wp-website. Unfortunately, this time (and for another site) it doesn’t work so far.

    I extended the memory several times (I’m at 512M now) and changed the auto keys, that didn’t help. Now I renamed the plugins-folder to plugins.deactivated, and I get this error message:

    Fatal error: Cannot redeclare _1059195956() (previously declared in /public/sites/www.name.nl/wp-includes/version.php:9) in /public/sites/www.name.nl/wp-includes/version.php on line 9.

    Any idea what else I can try?
    Thanks for sharing all this useful information,
    Ilke

    Reply
    • WPBeginner Support says:
      Oct 31, 2013 at 5:04 pm

      Try renaming your theme’s folder as well. After that you need to download WordPress and upload a fresh copy of themes folder to your site. WordPress will now fall back to default twenty thirteen theme. Let us know if it worked for you.

      Reply
      • Ilke says:
        Nov 1, 2013 at 4:28 am

        I did rename the current themes folder and uploaded a fresh themes folder from a new wp 3.7 download. Unfortunately, that gives me a white screen altogether on the front as well as the back office and I still receive the same error-message.

        With debug set to true in wp-config I got
        Notice: WP_User->id was called with an argument that is deprecated since version 2.1
        and a few other deprecated notices as well as a notice that wp_enqueue_script and wp_enqueue_style was called incorrectly, which both refer to the functions.php

        This is really starting to worry me. Do you happen to have some other advice still?

        Best,
        Ilke

        Reply
      • Ilke says:
        Nov 1, 2013 at 4:44 am

        I also tried renaming the plugins-folder and uploading a fresh one. And I cleared the cache. Still I get the same error-message. Since (with debug set to true on wp-config) I get Notice: undifined index-messages concerning two plugins, should I delete those?

        Reply
  37. Puja singh says:
    Oct 31, 2013 at 2:59 pm

    Hi, I am facing the same blank page problem for my site . I tried most of the mention step
    Disable all plugin
    Activate the default theme.
    increase the memory limit to 128 MB.

    but no luck, any help will we appreciated.

    Reply
  38. suneel says:
    Oct 30, 2013 at 1:18 am

    Life saving tutorial…

    Thank u very much

    Reply
  39. Justin says:
    Oct 5, 2013 at 7:15 pm

    Thank you. I seem to get it when I’ve been making lots of updates to my site, then I get locked out and have to wait. A memory issue would make sense. Time to clean out a bunch of unused plugins.

    Reply
  40. Michael Lambertz says:
    Sep 20, 2013 at 7:46 am

    Another reason can be false permissions… I tried to copy a wordpress directore via unix command cp -R, and after that all copied files weren’t in the group www-data. chgrp www-data wordpress_dir/ -R did it for me ;-)

    Reply
  41. Jacob Worsøe says:
    Aug 22, 2013 at 5:21 pm

    I have periodically white screens on both frontend and backend. The white screens occur in a completely random pattern. Are the recommendations the same in my situation or do they only apply to more permanent issues?

    Reply
    • Editorial Staff says:
      Sep 11, 2013 at 4:13 am

      Yes. It seems like you’re site is running out of memory because of a process that’s being ran. So the process is the same.

      Reply
  42. Hossein says:
    Aug 10, 2013 at 3:21 pm

    thank you soooooooooo much, my problem solved, it was because of blank lines in my functions.php

    Reply
  43. LC says:
    Jun 21, 2013 at 5:19 pm

    I can’t even enter the Admin section of WP. I get the blank page. What should I do?

    Reply
    • Editorial Staff says:
      Jun 27, 2013 at 9:54 am

      Read the article.

      Reply
      • maria says:
        Oct 7, 2013 at 10:31 am

        it does not say how to get into your admin if you are blanked. out

        Reply
        • WPBeginner Support says:
          Oct 8, 2013 at 8:06 am

          We have a guide on what to do when you are locked out of WordPress admin area.

  44. Rosie says:
    May 2, 2013 at 6:59 am

    Thanks, this was useful. I had the white screen on the live site, but WP admin was fine. I use WP Super Cache and I cleared the cache with no effect, then deactivated all plugins, and when I’d tried everything else I suddenly thought of the expired cached pages.

    If you use WP Super Cache you have to delete the expired cache too. That worked right away. Then I set my garbage collection (on the Advanced tab) to hourly instead of daily, to try to prevent it happening again.

    Reply
    • Tom B. says:
      May 22, 2013 at 10:11 am

      Hello .. thought I might add 2cents,

      I’m using WP Super Cache too and often crashed to White Screen. Looked at the wp-config.php file and found they were putting their instructions above the SQL allocation in the script, so I moved them down and added the ‘default Memory Limit’ tweak and now my site http://webinardatabase.com/ smokes!

      REF:
      First save a unmodified copy of wp-config.php to your HD.

      Open your wp-config.php, which is located in the root WordPress directory.

      Locate the WP Super Cache code (their code is obvious –three lines- the fourth is a duplicate, but I left it), and move them down (I put mine above the SALTS).

      Then add the following line: define(‘WP_MEMORY_LIMIT’, ’64M’);
      Just BEFORE the super cache, seemed logical.

      And save, check performance.

      IDK, I think this is a bug. Made no sense to be allocating cache before opening the SQL database.

      Worked for me. Prost! — Thanks Wpbeginner.com

      PS: Just noticed the post below, WP Super Cache requires permalinks be set to post name, this error appeared on a fresh install. 2 more cents.

      Reply
      • Tom B. says:
        May 24, 2013 at 2:12 pm

        Follow-up.

        Had to kick WP Super Cache to the curb.. too buggy.. Gone with W3 Total Cache.

        Lone Watie: We thought about it for a long time, “Endeavor to persevere.” And when we had thought about it long enough, we declared war on the Union.

        Union = WP, really is this the answer?!

        Reply
        • Tom B. says:
          May 24, 2013 at 2:39 pm

          Ps: Once the plugin is deleted, return to wp-config and manually remove WPSC lines.

          Really, no, really!?!

      • Glenn "TheeMahn" Cady says:
        Dec 12, 2013 at 2:50 am

        Tom, I would like to personally extend a much deserved thanks.

        My wpconfig had define(‘WP_MEMORY_LIMIT’, ’64M’); after supercache, moving it above has closed my “White screen of death issue.” I had been refreshing for months. The site now seems fairly snappy.

        Thanks again Tom,

        TheeMahn

        Reply
  45. Jacobus says:
    Apr 18, 2013 at 8:01 pm

    Personally I haven’t had this problem, yet, I have the problem that I have to reset my permalinks all the time because of endless redirects. Drives me crazy. Every time I publish a new post on my blog I have to set the permalinks back to standard and then back to post name. Do you know if this is host related or plugin related?

    Reply
    • Editorial Staff says:
      Apr 19, 2013 at 7:03 am

      IT definitely sounds like a plugin issue.

      Reply
  46. Manish Anand says:
    Nov 24, 2012 at 3:15 pm

    Yep, turning on Debug option helped. It was incomplete uploading of query.php file.

    Thanks

    Reply
  47. Joel Andrew Glovier says:
    Nov 8, 2012 at 1:01 pm

    Here’s another suggestion when none of the above works, try flushing your rewrite rules cache.

    I had a single page on my site returning as a blank page, and tried almost every solution above, as well as some other things (like installing Debug Bar plugin, etc) to no avail.

    I was able to narrow it down to what I assumed to be a premalink issue, however, since the page had been working before, and stopped working; and also because even when I used a different page template it still was not working properly (I had prior to that assumed to had to do with my custom wp_query in that page template).

    So I started investigating the WordPress rewrite system, and came to find out WordPress keeps a cache of all the custom page slugs and rewrite rules. (more about that here: http://codex.wordpress.org/Rewrite_API/flush_rules and here: http://codex.wordpress.org/Function_Reference/WP_Rewrite)

    I also found that this method is used to flush the rewrite cache: $wp_rewrite->flush_rules();

    So I tried just adding it to the second line in my functions.php file, and after one page refresh the page contents showed up again.

    IMPORTANT: make sure to remove the method after using it once, as there are some costly performance hits associated with leaving that code in your file. You should only need to use it once to resolve the issue, however.

    Reply
    • Editorial Staff says:
      Nov 8, 2012 at 2:21 pm

      Saving the permalinks settings again will also flush the rewrite rules from our understanding. Thanks for the suggestion about this :)

      Reply
      • Joel Andrew Glovier says:
        Nov 8, 2012 at 6:43 pm

        Yeah, but that didn’t work in my case. In fact, normally you don’t even have to save the Permalink settings page, just visit it. But in my case that neither visiting, nor saving, nor chaning to another setting and changing back worked.

        But actually I discovered it was something much more obscure, and the flushing was only a temporary band-aid.

        Turns out I had a conflict between a page with the title/slug of “team” and a custom post-type with the rewrite slug of “team”. The custom post type ended up winning out, except when I put the rules flush in place, in which case it stopped it from winning out.

        But the real reason I was getting the white screen was because when the custom-post type slug was winning out, it was defaulting to rendering the page with the archive.php file, which I had created (as my theme is from scratch), but not put any markup in yet. The file was completely blank, hence my white screen.

        Womp womp womp wanhhhhh.

        Reply
        • Editorial Staff says:
          Nov 8, 2012 at 7:31 pm

          Yup that would do it. We learnt that the hard way by looking at one of our user’s themes.

    • Christian says:
      Feb 12, 2015 at 7:36 pm

      !!IF YOU TRIED EVERYTHING THIS WILL WORKS!!!

      Nothing else could even make a change in the BLANK PAGE.
      I put that code an recivied a error, after that I removed it and the website was online again!

      I was about to broke my laptop hahahha

      Reply
  48. Jonath Lee says:
    Sep 30, 2012 at 10:40 pm

    Whenever you’re testing themes or plugins, always leave a tab for “Themes”. In case of WSOD, you may still able to activate the default twenty eleven themes.

    Reply
    • Editorial Staff says:
      Oct 1, 2012 at 9:04 am

      That doesn’t work if your admin is also locked. The next screen will just return a white screen of death too.

      Reply
      • Jonath Lee says:
        Oct 1, 2012 at 10:52 pm

        It could? May be I haven’t reach the Admin Lock level so, I guess we should leave the tab for the phpmyadmin page instead +_+

        Reply
  49. Johnny says:
    Sep 28, 2012 at 12:16 pm

    Damn! Just seen the section in the article about the functions.php file – oops! Oh well it will teach me not to read so quickly!

    Reply
  50. Johnny says:
    Sep 28, 2012 at 12:13 pm

    Another ‘gotcha’ is whitespace below the closing ?> in your functions.php file. I got this once a while back and deleting the whitespace below it solved the problem. This can also cause a white screen after hitting the publish button as well.

    Reply
1 2 3 4 »

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
PushEngage
PushEngage
Increase your website traffic & revenue with push notifications. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
LiveChat logo
LiveChat Inc Coupon
Get a 30 day free trial and 30% OFF LiveChat, one of the best live chat service providers for WordPress users.
ConvertKit Coupon Code
ConvertKit Coupon
Get a 14-day no risk FREE trial with this powerful email marketing software.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.