Drupal white screen of death on modules and structure

I have a drupal site configured and running on my localhost that works fine.

But when it boots to a remote host, I get a white screen when I try to access the modules and structure in the admin menu.

Any idea what is wrong?

+4
source share
2 answers

After a while I found out about it

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

it always shows the last error before the end of the process

+2
source

Enable error logging by placing this in your settings.php :

 error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE); 

This may give you the best error information you can work with.

EDIT: As Clive noted in the comments, you should add this to the beginning of index.php so that these error report options are used for any errors that occur even before settings.php .

+3
source

Source: https://habr.com/ru/post/1391422/


All Articles