Sunday, July 21, 2013

php white screen of death blank page

php white screen of death blank page

Try:
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

Try:
PHP Fatal error: Call-time pass-by-reference has been removed

// correct way
function myFunc(&$arg) { do something... }

myFunc($var); //Call myFunc

// wrong way
function myFunc($arg) { do something... }

myFunc(&$arg); //Call myFunc

Try:
cmd> php scriptName.php

Try:

Try to comment out set_error_handler() function, which can make PHP to behave like this (white screen of death).

It can't handle fatal errors because they make the script stop immediatly.

Try:
Are you using output buffering? sometimes php will not flush the buffer in case of an error and you only get a white screen

https://drupal.org/node/158043
http://stackoverflow.com/questions/2914127/white-screen-of-death
http://stackoverflow.com/questions/1475297/phps-white-screen-of-death

No comments: