1

I recently experienced issues with my hosting company and a few of my sites went down. All users could see was a standard Drupal PDO Exception page. Is there a way I can create/use a page to show a generic "we're having issues, please check back later" page instead of this if a major problem occurs?

enter image description here

0

Yes, it is quite simple. Just go to "admin/config/development/logging" and set "Error messages to display" to "none". You will then have only the error page with message "The website encountered an unexpected error. Please try again later.". The PDO exception will not be displayed.

2
  • Is that page themeable? Can I use my own copy/images? – nexus_6 Mar 14 '16 at 11:19
  • Yes, it is. You can override default maintenance-page.tpl.php template in your theme and put there your own content. See this example on drupal.org. – Juraj Nemec Mar 14 '16 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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