0

White screen of death happens when the interpreter finds a fatal error and its not configured to output errors. How to debug a PHP white screen of death without touching the config.ini?

Eduardo Oliveira
  • 676
  • 8
  • 25

1 Answers1

2

It is possible to register an hook to make the last error or warning visible.

function shutdown(){
  var_dump(error_get_last());
}

register_shutdown_function('shutdown');

adding this code to the beginning of you index.php will help you debug the problems.

Eduardo Oliveira
  • 676
  • 8
  • 25