FreeHostia Forums
https://forum.freehostia.com/

PHPBB - SQL Error
https://forum.freehostia.com/viewtopic.php?f=9&t=768
Page 1 of 1

Author:  .locke2007 [ Sun Nov 05, 2006 9:16 pm ]
Post subject:  PHPBB - SQL Error

Anyone know how i can change the error message that PHPBB displays when the SQL database is down ?? the message it displays normally breaks my site layout up and i just wanted to replace all the error message with something like "SQL Database down for maintenence please check back soon".

Any ideas will be apreciated :D

Author:  Spiros [ Tue Nov 07, 2006 9:03 pm ]
Post subject: 

I don't recommend it. Anyway, if you want to do it so badly, just do that:

Open:
Code:
<root>/includes/db.php

Find:
Code:
{
   message_die(CRITICAL_ERROR, "Could not connect to the database");
}

Replace With:
Code:
{
   die("HTML");
}


Replace "HTML" with what you want to show :)
PS: Not tested if it works, you take the risk.

Author:  zlatan24 [ Mon Sep 12, 2011 9:39 pm ]
Post subject:  Re: PHPBB - SQL Error

.locke2007 wrote:
Anyone know how i can change the error message that PHPBB displays when the SQL database is down ?? the message it displays normally breaks my site layout up and i just wanted to replace all the error message with something like "SQL Database down for maintenence please check back soon".



Any ideas will be apreciated :D


In this unpleasant situation you may try sql repair. It can solve out troubles with sql files up to 16TB. The utility doesn't modify source data during recovering. It starts under low system requirements.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/