When building Drupal 7 sites, developers need to be alerted to information about any and all errors. To display these important messages locally, simply insert this bit of code into your settings.php file:
1 2 3 4 |
error_reporting(-1); $conf['error_level'] = 2; ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE); |
These few lines of code will provide the developer detailed information about all errors and prevent the appearance of “the white screen of death.”