PDA

View Full Version : Customizing error messages


Erik
Sat 4th Nov '00, 2:47pm
I figured I'd drop by here in an effort to save my lazy self some work. Does anyone know where the:

Warning: MySQL: Unable to save result set in admin/db_mysql.php on line 69

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


and similar messages are generated in vBulletin. This is the sort of thing I'd like to customize, but I'm not having an easy time finding it.

Mike Sullivan
Sat 4th Nov '00, 3:39pm
The "Warning:" is a PHP error - you need to recompile PHP to change that.

The other is located in admin/db_mysql.php if you really need to change it.

Erik
Sun 5th Nov '00, 8:54am
What I've noticed is that if the database is messed up enough to give such an error it also usually is incapable of retrieving the tech address and so no email gets sent.

If it's a corrupt table the mail will still get sent...I figure I'm going to encourage anyone reading that message to send in email a bit more strongly.

Freddie Bingham
Sun 5th Nov '00, 1:10pm
Actually most of the time the tech address is retrieveable but I do agree that the address needs to be put in the config.php and not in the database. DOH!