Reputation: 688
I have a drupal site configured and running in my local host which working perfectly.
But when it's uploaded to a remote host I get a whitescreen of death when trying to access modules and structure in the admin menu.
Any idea of what is wrong?
Upvotes: 4
Views: 1268
Reputation: 688
After some time i've learned about this
function shutdown(){
var_dump(error_get_last());
}
register_shutdown_function('shutdown');
it always shows the last error before the process ends
Upvotes: 2
Reputation: 16680
Enable error logging by putting 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 might give you some better error information to work from.
EDIT: As noted by Clive in the comments, you should add this to the top of index.php
so that these error reporting options will be used for any errors that take place even before settings.php
is loaded.
Upvotes: 3