Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: blindarkman on April 24, 2009, 05:04:45 AM

Title: mySQL Error Message question
Post by: blindarkman on April 24, 2009, 05:04:45 AM
I am currently getting this error

QuoteConnection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

I know the reason this is happening, my real question is, in what file, can I change this error.

I have checked in Sources/Errors.php and was unable to locate it.

I used the forum search and it just comes up with people asking why they getting it, not how they can change it.

Oops, would help if I told you I was running SMF v1.1.8 :P sorry.
Title: Re: mySQL Error Message question
Post by: JBlaze on April 24, 2009, 05:07:32 AM
What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663)
Use that to restore connection to your database.
Title: Re: mySQL Error Message question
Post by: blindarkman on April 24, 2009, 05:08:16 AM
Quote from: JBlaze on April 24, 2009, 05:07:32 AM
What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663)
Use that to restore connection to your database.

As stated in the FIRST line, I know why this is happening, I just was woundering WHERE I can CHANGE the ERROR message.

Like instead of it saying:

QuoteSorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

I would like to edit it to say:

QuoteWe are currently experiencing technical problems, should be back up shortly
Title: Re: mySQL Error Message question
Post by: Dragooon on April 24, 2009, 05:20:50 AM
The message is hardcoded in Subs-Auth.php in show_db_error.
Title: Re: mySQL Error Message question
Post by: blindarkman on April 24, 2009, 05:29:08 AM
Quote from: Dragooon on April 24, 2009, 05:20:50 AM
The message is hardcoded in Subs-Auth.php in show_db_error.

Thank you sir, :)