Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-04 00:34:23

moslib
Member
Registered: 2005-08-11
Posts: 39

dealing with 'database unavailable'

if mySQL server is down, would like to provide user with a friendly error screen – maybe with some links to alternative resources

something like IF database unavailable THEN load website_unavailable.html

is this possible with Textpattern? has anyone done it?

Offline

#2 2007-10-04 00:51:37

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: dealing with 'database unavailable'

i would imagine all you would have to do is edit the function db_down() in txplib_db.php around line 465. at the moment all it does is return a 503 status, along with a doctype and the “Database unavailable” text.

Last edited by iblastoff (2007-10-04 00:56:21)

Offline

Board footer

Powered by FluxBB