I was showing my boss Drupal this morning and I set the site to offline. I then logged myself out. When I tried to log back in to the site just the “offline” notice appears with no option to login. Can someone instruct me on how to get logged back in?

Comments

spjsche’s picture

Have you tired logging in as the first created user, this will give you the administrator access, and you can then bring the site back on-line.

purnellbp’s picture

I don't even see a form field to login with. No matter what part of my site i try and go to all i get is the same OFFLINE message.

drupalzack’s picture

try

yoursite.com/admin or yoursite.com?q=admin

purnellbp’s picture

It's messed up that the login screen doesnt even come up when you try yoursite.com/admin or yoursite.com?q=admin

Any other suggestions? I jsut need to get to the admin page to put the page back online.

paul-c’s picture

try yoursite.com?q=user - that should give you the login page

purnellbp’s picture

Thanks paul-c, you da man. That was the simple answer i was looking for.

paul-c’s picture

You're welcome. That ?q=admin link never works for me for some reason...

spjsche’s picture

If you have access to PHPMyadmin, then go to the "variable" table and look for the "site_offline" attribute.

Yours will read (s:1:"1";)

Set it to (s:1:"0";)

This should hopefully switch the site back to on-line.

purnellbp’s picture

Switched the variable value to what you said and it didnt work. So i switched it back. I looked around the other variables and im really not sure what there all for but is there another one i can change to try and get a login field on the offline message page.

dasfljsdfasdf’s picture

I don't know if you already have solved the problem but I will tell you how any ways.
:After changing the site to off line inorder for you to bring up the login window you must use the link
http://www.yoursite.com/?q=user/
Ethan Neuen

purnellbp’s picture

went to http://mysite.com/?q=user while site was offline. Able to login there.

sepeck’s picture

The handbook contains a Troubleshooting FAQ that answers this and several other common questions.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide