How to View Detailed Errors in Drupal

How to View Detailed Errors in Drupal
 
If a Drupal site displays a blank page or vague error message like “The website encountered an unexpected error. Please try again later,” add the following line to your site's index.php file.
 
  1. Log into your Control Panel.
  2. Choose your domain's subscription.
  3. Click on the Websites & Domains tab.
  4. Click on File Manager.
  5. Navigate to the httpdocs folder.
  6. Click on the index.php file to add a new line at the beginning that says:
error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE);
 
Save the file, and hard refresh the page. You should now see some information that may help you troubleshoot the issue.
 
Additionally , the error_log file in the httpdocs folder may contain useful information.

Add Feedback