It is currently Tue Mar 19, 2024 7:44 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: PHPBB - SQL Error
PostPosted: Sun Nov 05, 2006 9:16 pm 
Newbie
Newbie

Joined: Thu Jul 20, 2006 10:05 pm
Posts: 17
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

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 07, 2006 9:03 pm 
Getting Started
Getting Started

Joined: Tue Sep 19, 2006 4:02 pm
Posts: 53
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.

_________________
Spiros


Top
 Profile  
 
 Post subject: Re: PHPBB - SQL Error
PostPosted: Mon Sep 12, 2011 9:39 pm 
Newbie
Newbie

Joined: Mon Sep 12, 2011 9:39 pm
Posts: 1
.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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011