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.
I've hit the "Switch to test user" link by mistake while configuring the site in "site maintainance" mode.
I cannot log back. I tried all the usual methods. What can I do? Change something into the database?
Pls help me:P
Comments
Comment #1
stella CreditAttribution: stella commentedhave you tried navigating directly to www.mydomain.com/user to login back in as the admin user? Or if you're still logged in, you could try www.mydomain.com/logout first perhaps? What else have you tried?
Cheers,
Stella
Comment #2
mishhh CreditAttribution: mishhh commentedI tried to login through www.mysite.com/?q=user but no chance
I didn't try logout but I've managed to resolve it by deleting the session for my admin user from database (sessions table). After this move, now www.mysite.com/?q=user works again...
Only after posting I saw another task request to put a "switch back" link in the "site offline" page. I guess it is a good idea, if it's not hard to implement such a feature.
Thank you anyway for your rapid response. I'm impressed:)
Comment #3
icj CreditAttribution: icj commentedBetter would be not to allow you to switch users if the site is in maintenance mode.
Comment #4
spydmobile CreditAttribution: spydmobile commentedI have had this probelm too, but I disagree with he previous comment to disable switching while in maintenance, this means I cannot masquerade as a test user and see my site maintenance message, rather provide an URL we can load to revert back to ourself.....in the mean time I will go and try to find the database entry that reverts back to normal online mode I guess.....
Comment #5
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedhttp://drupal.org/node/112107