Drupal pages sometimes come up blank!
Posted on: 01 May 2008
OK - pretty weird problem today. My local dev Drupal site was acting a bit strange. Most page requests worked fine, but some (e.g. /logout) brought back a completely blank page. "View source" on the page showed that the source was completely blank too. No errors in the apache error log, and nothing in the Drupal watchdog table.
I eventually tracked it down to one of my custom forms, which handles responses to invitations for an event. (Those of you with plenty of PHP battle scars will probably see where this is going round about now...). Unfortunately, I'd chosen to use a variable called $response as my database query object, which was playing all kinds of havoc with the page response. A quick find and replace to $invitee_response seems to have sorted it all out.