Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: dirtworm - maaliskuu 07, 2005, 09:23:53 AP

Otsikko: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 09:23:53 AP
total n00b here, so bare with me.  yesterday, I installed a flashing message icon for new pm's, and also did the following, but didn't test it:
http://www.simplemachines.org/community/index.php?topic=11188.0


I just set the message, entered maintainance mode and came up with the following:
Lainaa
Maintenance Mode


Board Offline For Maintainance. Back online by 10am EST. Please visit soon!


so, I assumed it may have been the changing of the Login.template.php from the link above, but I changed it back, and still get the same message.  can anyone suggest what else the problem could be, and how to resolve it?  or at least get out of maintenance mode manually?



thanks
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: Elissen - maaliskuu 07, 2005, 09:33:29 AP
download your Settings.php and open it. Looking at the link it seems that $maintenance is probaly set to 2
$maintenance = 0 normal operation
$maintenance = 1, maintenance mode, only admins can log in
$maintenance = 2, untouchable/completely disabled.

I suggest you change it to 1 and upload it again. Then you can see if everything still works. If everything checks out you can use the admin panel (server settings) to turn off maintenance mode ($maintenance = 0)
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 09:42:29 AP
according to Settings.php, it's set to 1 already:

$maintenance = 1; # Set to 1 to enable Maintenance mode
$mtitle = 'Maintenance Mode'; # Subject for display
$mmessage = 'Board Offline For Maintainance.  Back online by 10am EST.  Please visit soon!'; # Message Description for display



can you direct me to which table that $maintenance is under? I didn't see it anywhere.
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: Elissen - maaliskuu 07, 2005, 10:00:50 AP
$maintenance isn't in a table, you can only find it in Settings.php
Is MySQL running? Is the connection information in Settings.php correct? Can you see in phpMyAdmin if the tables of SMF still exist?
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 10:07:35 AP
Lainaus käyttäjältä: Elissen - maaliskuu 07, 2005, 10:00:50 AP
Is MySQL running? Is the connection information in Settings.php correct? Can you see in phpMyAdmin if the tables of SMF still exist?


yes, MySQL is running, everything is correct in Settings, and the tables still exist for SMF in phpMyAdmin.  I'm just puzzled why there is no option for me to login to turn maintenance mode off.  every other time I've gone into maintenance mode, it never displayed just text, like it's doing now.  it always still showed the theme, and asked for login information.  the only thing I changed this time, is I entered custom text from the admin > server settings when I switched it over. 
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: Elissen - maaliskuu 07, 2005, 10:32:03 AP
If you change Settings.php and set $maintenance to 0, does it display an error then?
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 10:38:42 AP
changing $maintenance to 0 I get the following:


Warning: fopen(/usr/local/apache2/htdocs/dirtworm/bbs/Settings.php): failed to open stream: Permission denied in /usr/local/apache2/htdocs/dirtworm/bbs/Sources/Admin.php on line 1095

Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/dirtworm/bbs/Sources/Admin.php on line 1096

Warning: fopen(/usr/local/apache2/htdocs/dirtworm/bbs/Settings.php): failed to open stream: Permission denied in /usr/local/apache2/htdocs/dirtworm/bbs/Sources/Admin.php on line 1099

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/apache2/htdocs/dirtworm/bbs/Sources/Admin.php on line 1102

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





would this indicate that the host is having a problem with their MySQL server?  I'm sorry for the total n00b questions, trying to learn :)
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 11:00:44 AP
also wanted to note that Admin.php is chmod 777 and still giving the error above.

Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: Elissen - maaliskuu 07, 2005, 11:01:53 AP
SMF tries to write to the settings file that an error occured, but it doesn't have the permissions to change settings.php, that is where all the warnings come from. And your right, SMF isn't able to contact MySQL. It's probaly down/crashed. For this you'll need to contact your host.
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 11:06:15 AP
thanks for all the help.  I just chmod 666 to settings, so now it doesn't display the long list of errors.  just gives the problem connecting to database message.  I'll get in touch with my host to determine the problem.  thanks for all the help, I appreicate it.

Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: Elissen - maaliskuu 07, 2005, 01:44:41 IP
np, your welcome :)

I hope your host gets it sorted fast.
Otsikko: Re: Help, stuck in maintenance mode.
Kirjoitti: dirtworm - maaliskuu 07, 2005, 01:52:21 IP
must have been a burp in their servers, everything is sorted now.  thanks again for the help.