Schema.pro

Drupal error: The website encountered an unexpected error. Please try again later.

25.12 2018|Drupal

How to: Drupal errors shown on screen.

If you can't see errors in dlog/watchdog or PHP, you can try to do this:
Go to /includes/error.inc line 254 or nearby and replace code:

print theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.')));

with

print theme('maintenance_page', array('content' => t('The website encountered an unexpected error. Please try again later.'.$fatal.' '.var_export($error,true))));

Then you will see not only message about error, but message with error.

Drupal error: The website encountered an unexpected error. Please try again later.
Programming, coding, system administration linux

  
  Comment
YouTube video
Add image
OK