[wp-hackers] Personalizing db down WordPress errors
peter.westwood at ftwr.co.uk
Fri Aug 3 10:17:20 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Chetan Kunte wrote:
> I came across this yesterday:
> On self-hosted sites, this is a familiar sight, and it is a bit
> obvious to site owners. But not so for visitors, particularly when
> they see a WordPress error message on screen [as seen in the link
> Personalizing this "database-down" error message using the active
> Wordpress theme would be a better idea [and should be in the core].
> What do you'all think?
If the db is down then you don't know what the active theme is ( or for
that matter any other of the options values).
The best that can be done is providing a single plugin-in mechanism for
replacing the page e.g. is a file in wp-content called db-error.php
exists then include that rather than use the normal error output handler.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the wp-hackers