Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After Switching to Offline mode and switching to test user.
I cannot return as Admin.
Solution
Make Switch back Link in Offline page.
Comments
Comment #1
NikLP CreditAttribution: NikLP commentedFurther to this, is there any way that Masquerade could bypass this site maintenance situation?
I have site I'm having to develop live, and I don't want to open it up yet.
Comment #2
LeeHunter CreditAttribution: LeeHunter commentedA second part of this issue is that the help text on the Site Maintenance page is presented in a way that is completely misleading.
In 5.x it reads "Authorized users can log in during "Off-line" mode directly via the user login page."
The problem (for me anyway) is that the words "user login" are presented only as a live link. When I click on it, I don't see http://mysite/user because it takes me to http://mysite/users/MyLoginName.
Logically this would lead anyone to think that you would have to log in again using http://mysite/users/MyLoginName because there's nothing visible on the page that indicates http://mysite/user. It took me a lot of needless flailing around before I realized what the problem was.
The fix is to just show the URL and not make it a clickable link.
Comment #3
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedMasquerading is now only possible, when the user to masquerade as has the permission to access site in off-line mode. Fixed! Thanks!
Comment #4
DynV CreditAttribution: DynV commentedIs there a way to switch back is the user doesn't have masquerade permission ? Perhaps through a specific path ? masquerade/unswitch won't work without permissions.
Comment #5
DynV CreditAttribution: DynV commentedCrap ! Can't change issue settings through edit. :|
Comment #6
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedThat should have gone into another issue. However, for recovering from that kind of problem, you can clear your sessions and masquerade table in the sql database. And then login again as you would normally. Would recommend you to update your version of masquerade module to the latest from development branch; so that this situation doesn't happen again.
Comment #7
DynV CreditAttribution: DynV commentedSorry for hijacking, Gurpartap I sent a reply at #217893: Switch back without permissions
Comment #8
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.