Advertisement:

Author Topic: Maintenance Lock Out  (Read 441 times)

Offline Oldwood

  • Semi-Newbie
  • *
  • Posts: 16
Maintenance Lock Out
« on: January 12, 2021, 06:07:37 PM »
Have recently upgraded a forum which I heavily customised 10 years ago.  I think I eventually let it drift in the ether after 1.1.19 - still live but not showing any signs of activity.  Decided to bring it up to date.  I sucessfully upgraded to 2.0.17 but lost all the customizations and the link to Gallery 2.  OK I can deal with this but I've fallen at the first hurdle.  Put the forum into maintenance mode without problems but then found I can't even get in with admin rights.  Now I may be able to take it out of maintenance through the code but can anyone help identify what might be preventing a straight admin sign in?

Thanks

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,066
  • Gender: Male
    • Kindred-999 on GitHub
Re: Maintenance Lock Out
« Reply #1 on: January 12, 2021, 06:11:32 PM »
depends which variation of maintenance mode you used.   Just set the mode to 0 in Settings.php
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Illori

  • Lead Support Specialist
  • SMF Legend
  • *
  • Posts: 52,802
Re: Maintenance Lock Out
« Reply #2 on: January 12, 2021, 07:55:51 PM »
you can also use What is repair_settings.php? to take your forum out of maintenance mode.

Offline Oldwood

  • Semi-Newbie
  • *
  • Posts: 16
Re: Maintenance Lock Out
« Reply #3 on: January 14, 2021, 09:25:53 AM »
depends which variation of maintenance mode you used.   Just set the mode to 0 in Settings.php

Thanks for this Kindred - it solved the problem of getting back into the forum (mode was set = 1) but not the one I'm trying to solve.  In maintenance mode (mode set = 0) I should be able to access the forum by logging on as administrator but, for whatever reason, I cannot log on.  Its either everyone can log on or nobody can log on just as if the mode was set = 4.

Online Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 19,583
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • My Daily Dose Of Blasphemy
Re: Maintenance Lock Out
« Reply #4 on: January 14, 2021, 09:30:30 AM »
What theme is in use? Does the login give any errors when you try?
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline Oldwood

  • Semi-Newbie
  • *
  • Posts: 16
Re: Maintenance Lock Out
« Reply #5 on: January 14, 2021, 09:40:16 AM »
Don't know what the issue was - now seems to have cleared itself and can login as admin but not as user - could have been a server delay I guess.  Thanks to all for your suggestions - much appreciated

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,066
  • Gender: Male
    • Kindred-999 on GitHub
Re: Maintenance Lock Out
« Reply #6 on: January 14, 2021, 10:17:15 AM »
I don't know what 4 is...


if $maintenance = 0; -- then the forum is running normally
# Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."