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

stella’s picture

have 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

mishhh’s picture

I 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:)

icj’s picture

Better would be not to allow you to switch users if the site is in maintenance mode.

spydmobile’s picture

I 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.....

Gurpartap Singh’s picture

Status: Active » Closed (duplicate)