New to drupal & collaborating on a project. Error message reads "Error ; The website encountered an unexpected error. Please try again later." I've been getting that error message for 4 days in a row. Wondering if there is actually a site issue (with Drupal) or if there's something I can do to fix this.

  • 2
    Yes that's not normal or right theres is likely a PHP error somewhere. Have a look in "Reports > recent log messages" from the admin menu and see what errors are showing, that will help you to start debugging the issue
    – Leigh
    Jun 25, 2018 at 12:28

2 Answers 2


Just add this code to your index.php file just after the php opening tag.

ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);

Then try to reproduce the scenario. You will see the exact error on web page and if you clear about error then definitely you can solve it.


This behavior isn't normal. I think you should go to admin/config/development/logging and choose All messages, with backtrace information. You will be able to see the errors and find the problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.