"The website encountered an unexpected error. Please try again later." I get this error with Drupal 7.


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


How can I get more information about this error? Is there any report or log to understand what happened? The PHP log doesn't report errors.
How can I disable that message and have a more useful one for debugging purpose?
This error comes from an uncaught PHP exception. Drupal catches exceptions so no ugly PHP error message is displayed to user. You can find the exception info in the 'Recent log messages' link on Reports (or try this path: /admin/reports/dblog). Make sure 'Database logging' module is enabled because this module provides this report.

You will see all the internal messages that have been generated. Filter by type 'PHP' and Severity 'error' and you'll probably find a message about an uncaught exception. This is causing your problem. Now you have more information so you may be able to fix it.