I clicked maintenance mode and then couldn't log on.
The home page only shows a large red exclamation mark and no login screen.
Deleting the file .maintenance in the admin directory returned the regular log on screen.
Is there info on how to display a specific message to users during maintenance?
Thanks.
5.51 Maintenance Mode Locked out Admin
-
- AppGini Super Hero
- Posts: 336
- Joined: 2015-12-23 16:52
Re: 5.51 Maintenance Mode Locked out Admin
I have to agree, there seems to be a bug.
If I stay in admin mode, I get the notification at the top of each page.
If I logout, then all i get is a notification message box with the ! icon, but no text, and I cannot log back in as admin.
As mentioned by the OP, deleting the admin/.maintenance file restores normal operations.
If I stay in admin mode, I get the notification at the top of each page.
If I logout, then all i get is a notification message box with the ! icon, but no text, and I cannot log back in as admin.
As mentioned by the OP, deleting the admin/.maintenance file restores normal operations.
-
- AppGini Super Hero
- Posts: 336
- Joined: 2015-12-23 16:52
Re: 5.51 Maintenance Mode Locked out Admin
apirnar, with regard to where to set a message for the users, look at the admin settings page. The last item there is a new textarea for defining a message.
This is why I (and probably you) was seeing the empty alert box. Put some text in that field and it will show up. (So that much isn't a bug, just not immediately clear as to what's being done.)
Still not sure why admin can't log back in, though. That's still in the bug category I think.
This is why I (and probably you) was seeing the empty alert box. Put some text in that field and it will show up. (So that much isn't a bug, just not immediately clear as to what's being done.)
Still not sure why admin can't log back in, though. That's still in the bug category I think.
-
- AppGini Super Hero
- Posts: 336
- Joined: 2015-12-23 16:52
Re: 5.51 Maintenance Mode Locked out Admin
The source of the problem is in admin/incFunctions.php -> handle_maintenance_mode()
There's no provision for admin to login again if not already logged in via session data.
As currently written, if you log out of admin (or the session data is lost due to cookie deletion etc), then the only recourse is to remove the admin/.maintenance file.
Maybe this is a suggestion for a version 5.52? Allow admin to login during maintenance mode.
There's no provision for admin to login again if not already logged in via session data.
As currently written, if you log out of admin (or the session data is lost due to cookie deletion etc), then the only recourse is to remove the admin/.maintenance file.
Maybe this is a suggestion for a version 5.52? Allow admin to login during maintenance mode.
-
- Moderator
- Posts: 82
- Joined: 2013-11-11 19:21
Re: 5.51 Maintenance Mode Locked out Admin
To turn off that mode if admin gets locked out, you should delete the file named ".maintenence".
-
- AppGini Super Hero
- Posts: 336
- Joined: 2015-12-23 16:52
Re: 5.51 Maintenance Mode Locked out Admin
What if you're dealing with a site where the admin is a bit challenged in file management?
In my view, the ability of admin to log back in would be a better solution.
In my view, the ability of admin to log back in would be a better solution.