Closed (outdated)
Project:
Drupal core
Version:
9.4.x-dev
Component:
database system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Oct 2008 at 00:50 UTC
Updated:
2 Mar 2022 at 22:20 UTC
Jump to comment: Most recent
Comments
Comment #1
arhak commentedmmm... found this one http://drupal.org/node/80775
since 2006 there are users asking how to do this and the answer still is "hacking the core"
Comment #2
arhak commentedmore recently http://drupal.org/node/219428
Comment #3
ambel commentedAbsolutely a necessity,
I am working for a corporation right now who has implemented Drupal as a back-end database system, and we had a failure the other day with our database server. Luckily, we put our hot-backup system online and resolved the issue in less than ten minutes, but it caused concern when the only thing showing all across our site was a big blue error with a massive Drupal icon and a message about the state of our internal database.
This kind of error can frighten existing clients and beat away new ones. Immediately, I was tasked with getting rid of it.
Hacking the core is no problem, but as stated, it shouldn't be necessary. I agree with making the stride in 7.x for a better solution for customizing ALL error pages; not just 404/403.
Ambel
Comment #4
idealista commented+1 on this :)
bill
Comment #5
EvanDonovan commentedAlso there was a patch to 5.7 that my co-worker made: #233579: Drupal 5.7 Error Handling Information Patch. Definitely would be glad to see more flexibility in how these error messages are displayed, although it probably won't make it into 7.x by now.
Comment #6
EvanDonovan commentedUntil a patch is made to Drupal core, the issue can be worked around in the following manner:
1) In settings.php, set the maintenance theme to a custom theme.
2) Copy modules/system/maintenance-page.tpl.php to your custom theme directory.
3) Add the following to the
<head>of that file:Now the MySQL error message will not show up, unless you view the source of the page.
Comment #7
Crell commentedUnless there's a security issue here, I think this is D8 material.
Comment #8
jhedstromThese functions and templates are long gone in D8...anything left to do here?
Comment #21
quietone commentedMore information about this issue was asked for in #8, 7 years ago. No additional information has been supplied, and as that comment points out the function and templates were removed. Therefor closing as outdated.
Thanks!