[wp-hackers] Personalizing db down WordPress errors
Peter Westwood
peter.westwood at ftwr.co.uk
Fri Aug 3 10:17:20 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chetan Kunte wrote:
> I came across this yesterday:
>
> http://bitworking.org/news/224/One-of-these-things-is-not-like-the-other
>
> 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
> above].
>
> 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.
westi
- --
Peter Westwood
http://blog.ftwr.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGswCwVPRdzag0AcURAlS3AKDOC4tOsCdscZwDhWYH+LJO5YVgrwCgucl2
QgzM1zZ47BjETSJ06IrEJdM=
=Lo0c
-----END PGP SIGNATURE-----
More information about the wp-hackers
mailing list