Coldfront Labs

19/08/2009 - blog

Preventing PHP WSOD (White Screen of Death) in Drupal

As much as I love using Drupal, every once in a while something goes horribly, horribly wrong. Mind you, in most cases, I may have had a hand in the error (updated the wrong module, forgot a file or two, etc...) but the end result is the same; the dreaded WSOD (White Screen Of Death). These occur when PHP has some kind of error while processing your request. The problem with this is the user, unless they're technically inclined, has no idea why all they see is a big blank white screen (I'm assuming you've disabled the output of errors to the page in production. If you haven't, what are you waiting for!). Not only that, they'll just keep refreshing the page and potentially adding to your problems by having half executed PHP code running a muck on your data.

Syndicate content

Latest Tweets

  • #dcsf picture time! 19 weeks 4 days ago
  • What kind of team building stuff do you do remotely? (since not everyone is local) #magicteams 19 weeks 4 days ago
  • Really enjoying Drupalcon, learning so much! Need time to digest the info....and the awesome food! 19 weeks 5 days ago
  • Holy crap! http://tinyurl.com/yycqls6 Live NHL games on Boxee :-D #iamcanadian 19 weeks 6 days ago
  • Just getting to my second session at #dcsf and I've already lost my pen :-S 19 weeks 6 days ago

Poll

Do you plan on switching to Drupal 7 when it's released?:
Copyright © 2010