Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: JoMinx - kesäkuu 14, 2011, 02:09:56 AP

Otsikko: Stuck in Maintenance Mode
Kirjoitti: JoMinx - kesäkuu 14, 2011, 02:09:56 AP
Hi Folks

I've been upgrading my forum of recent days and after installing ADK Portal, I got the dreaded white maintenance mode screen and no ability to log in.  I have followed the advice in this post:

http://www.simplemachines.org/community/index.php?topic=287318.0

and this one:

http://www.simplemachines.org/community/index.php?topic=262562.0

Changing my settings.php maintenance to 0 changes the error message to the "Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later." one

I've read in the posts above that this is common but I can't seem to find what to do now with this error.

Any help greatly appreciated. 
yours in newbie/idiot frustration

Jo
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: Dzonny - kesäkuu 14, 2011, 05:42:27 AP
Hello there and welcome to smf community.

Are you sure that your database settings are correct? Please upload repair_settings.php file and see if there is something that isnt correct. What is repair_settings.php? (http://docs.simplemachines.org/index.php?topic=663.0)

If settings if fine i would suggest to contact your host and see if there could be some problem with high load or something that can couse this database issue.

Regards.
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: JoMinx - kesäkuu 14, 2011, 06:33:08 AP
Hey Dzonny

I just had a go at repair_settings and get this warning:

Some settings are not being shown because the MySQL connection information is incorrect.

And in Paths & URL's there is only
Forum URL
Forum Directory
Forum Sources

Obviously something amiss, but I am way too stoopid with php to figure it out.  *Blinks eyelashes and smiles nicely*  Any ideas?
regards
Jo
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: Illori - kesäkuu 14, 2011, 06:35:56 AP
do you still have your settings_bac.php file? if so copy it and rename the copy settings.php and delete the old settings.php file.
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: JoMinx - kesäkuu 14, 2011, 06:55:56 AP
I'm afraid I tried that but no luck.  Still get the white maintenance mode no log in screen. :(
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: Illori - kesäkuu 14, 2011, 06:59:30 AP
does repair_settings.php still say that the database can not be connected to? can you find out the correct login information for the database and put it in the repair_settings.php file and save it?
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: Dzonny - kesäkuu 14, 2011, 07:00:04 AP
Please run repair_settings.php again and see if there is still the same error:
"Some settings are not being shown because the MySQL connection information is incorrect. "
If not you should just edit settings.php and change value for mainteanance from 1 to 0 (line 27) and see if it helps.

However if there is error in repair_settings.php you should correct your information and try again.

Edit:
Illori, sorry about "inbreaks" these days :)
Otsikko: Re: Stuck in Maintenance Mode
Kirjoitti: JoMinx - kesäkuu 14, 2011, 07:24:21 AP
Hey Illori and Dzonny,

Thanks for the help guys.  I have managed to fix it.  For some reason my settings.php had the wrong password.  Instead of capitalisation of the first letter, it had dropped it to lowercase.  I've looked at it 100 times and not noticed.  Changed that, and voila - I have access again.

Once again thanks so much for helping out.  You guys rock

hugs
Jo