Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CakePHP White Screen of Death

Tags:

cakephp

I was just merrily working on a CakePHP site and suddenly... white screen of death. No debug information, nothing whatsoever generated by visiting the site.

Previously when this has happened there's been an error in core.php, or something else in the config folder. But the only hazardous thing I had open at the time was core.php, and there's definitely nothing wrong with it now.

A reboot of the computer did nothing to resolve the issue.

Anyone got any ideas why else a Cake site would suddenly white-screen like this?

like image 230
thesunneversets Avatar asked Jun 30 '10 19:06

thesunneversets


3 Answers

Never mind, worked it out: I'd somehow managed to drag the cake folder completely out of the application and onto my desktop. That would do it, eh...

like image 109
thesunneversets Avatar answered Nov 13 '22 12:11

thesunneversets


I had white screen when debug was 0. The handling was to clean cache folders and set debug to 1. When debug is 0 Cakephp suppresses any errors and warnings and displays nothing when an application error occurs.

  • Check that debug > 0
  • Clear app/tmp/cache/persistent/*
  • Check local vhost error log
  • Check global httpd-error log
  • Restart apache, (stop, start), restart cache services (memcached ect.)
  • Enter the world of die(’stop’); from app/webroot/index.php and downward in your application
like image 37
bancer Avatar answered Nov 13 '22 12:11

bancer


I spent five hours trying to solve this very problem. Nothing associated with one of my controllers would display. In the end, there were two blank lines at the bottom of my controller that caused nothing to be rendered for some reason. I removed them and everything worked again.

like image 31
boardlemur Avatar answered Nov 13 '22 11:11

boardlemur