5.51 Maintenance Mode Locked out Admin

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
apirnar
Veteran Member
Posts: 40
Joined: 2013-04-15 17:06

5.51 Maintenance Mode Locked out Admin

Post by apirnar » 2016-06-30 16:06

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.

grimblefritz
AppGini Super Hero
AppGini Super Hero
Posts: 336
Joined: 2015-12-23 16:52

Re: 5.51 Maintenance Mode Locked out Admin

Post by grimblefritz » 2016-06-30 16:26

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.

grimblefritz
AppGini Super Hero
AppGini Super Hero
Posts: 336
Joined: 2015-12-23 16:52

Re: 5.51 Maintenance Mode Locked out Admin

Post by grimblefritz » 2016-06-30 16:33

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.

grimblefritz
AppGini Super Hero
AppGini Super Hero
Posts: 336
Joined: 2015-12-23 16:52

Re: 5.51 Maintenance Mode Locked out Admin

Post by grimblefritz » 2016-06-30 16:48

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.

Noha Eshra
Moderator
Posts: 82
Joined: 2013-11-11 19:21

Re: 5.51 Maintenance Mode Locked out Admin

Post by Noha Eshra » 2016-07-01 01:35

To turn off that mode if admin gets locked out, you should delete the file named ".maintenence".

grimblefritz
AppGini Super Hero
AppGini Super Hero
Posts: 336
Joined: 2015-12-23 16:52

Re: 5.51 Maintenance Mode Locked out Admin

Post by grimblefritz » 2016-07-01 11:38

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.

Post Reply