Boy, do I feel dumb!

I was building my new site, and selected 'Offline' from the site access admin page. Problem is, I logged off, and now I can't get back in!

Is there any way I can circumvent this through the control panel, or do I basically have to re-do the entire site from scratch?

Also: can I embed objects through TinyMCE, such as my chatbot? Tried a few times, and it ain't working ...

Thank you!

Comments

jansky’s picture

I'm not 100% sure but you could try to change the file update.php where it says:

**
 * @file
 * Administrative page for handling updates from one Drupal version to another.
 *
 * Point your browser to "http://www.example.com/update.php" and follow the
 * instructions.
 *
 * If you are not logged in as administrator, you will need to modify the access
 * check statement below. Change the TRUE to a FALSE to disable the access
 * check. After finishing the upgrade, be sure to open this file and change the
 * FALSE back to a TRUE!
 */

// Enforce access checking?
$access_check = FALSE;

put a TRUE and go to your admin node directly. But I cannot say if it works, I wouldn't try it on my site to give you a green light, sorry!

rogerpfaff’s picture

www.example.com/user log in as admin and there you are. ;)

twentyfive8’s picture

That's the solution -- logging in at www.example.com/user. Muchas gracias!

volunteermama’s picture

I'm in the same pickle, but it didnt work....

I get

Error 500 - Internal server error

An internal server error has occured!
Please try again later.

when I go to www.blah.com/user

maybe my upgrade (from 5.1 to 5.2) went wrong ......

any ideas?

volunteermama’s picture

I tried the solution at:
http://drupal.org/node/137225

and found that commenting those lines and making a new php.ini file worked.... but why? (I use 1and1)

and does this mean I am gonna have other troubles? Should I not upgrade to 5.2?

BINAIRe’s picture

RGR that mate!

Thanks for the very useful info, much appreciated :)

twentyfive8’s picture

That's the solution -- logging in at www.example.com/user. Muchas gracias!

Conceptual Guerilla’s picture

elvisparsley’s picture

The method works with IE7, but not with Firefox.

Is there any reason for this?

Can I make it work with Firefox?

corcken’s picture

... but the right URL would be
www.example.com/?q=user
and NOT
www.example.com/q?=user

divrom’s picture

Maybe there needs to be a link to this FAQ in the install instructions: Troubleshooting FAQ: How to login once you have turned your site off-line for maintenance.

This question seems to come up quite regularly (e.g http://drupal.org/node/133910).

coreb’s picture

The ideal solution would be to document it where they switch the site to offline mode. But that solution would require the users to actually read the instructions. ;)

Serisouly, we should probably look at contributing a patch to the INSTALL file with (at least) the links to the common problems like this.

seadog’s picture

I also couldn't get back in using the "www.example.com/user" method. It's because I had clean URLs enabled, and had screwed up the .htaccess file on upload (Dreamweaver will do that to you). So, if the step above doesn't work, try "www.example.com/?q=user" next. Realize that you will need to manually insert "?q=" in every URL until you (1) fix your .htaccess file, or (2) disable clean URLs. it worked for me anyway.

kasperjames’s picture

this sucks...did you figure it out?

Thanks for your help and support:
www.kasperjames.com/

rajaiskandarshah’s picture

tried all of the above and unfortunately it's not working for me.

when i tried "www.example.com/?q=user" i get the following message:

Fatal error: Unsupported operand types in /home/norazila/public_html/eng/includes/form.inc on line 342

not seen this yet on the forum.

Raja Iskandar Shah
Consulting for Malaysian Business
www.norazilaco.biz

pnlnl’s picture

have you done some cleaning up lately, like deleting files using the file manager... i got a similar message once after doing some cleaning up, but I fixed it quickly by uploading the missing files, do you have a recent backup to your site?.. your problem could be smth completely different but just a suggestion...

SeedTreeLLC’s picture

I did this too! LOL. I love this community. Most every time I have an issue, someone has already asked about it and a solution has been offered. ;D

~ Mystical
Geared Design

boats’s picture

And I did this too, I'm still such a novice, but thanks for the solutions offered above here. Thanks again to all on this forum so I could 'fix' this problem in 'no time' :).
Boats (new user)
--By the way, my SEAMONKEY had no problems--

Shally87’s picture

Haha..setting it offline without knowing how to make online back.. it's not dumb anyway have turn site offline to construc the page..thanks to the advice.. www.mysite.tld/user did work..

anon100101001’s picture

If you have recently updated your site and you have setup clean urls, you might have to uncomment the line # RewriteBase / otherwise this will cause everything outside of of your www.example.com to create internal server errors.

solona’s picture

First, MySQL couldn't connect. So, I reinstalled MAMP and did killall -9 and that worked. Now, I'm getting the same error as above. Site off-line.

Nothing works. I don't seem to have a .htaccess file (is this a problem?). www.example.com/user OR www.example.com/?q=user don't work, (I'm assuming www.example translates to http://localhost/drupal....)?

Not sure how I got into this mess or how to get out of it.

solona’s picture

I'm such a dork. Of course it doesn't work! The answer is in the question. Or, rather, I answered my own question. *sigh*
I reinstalled MAMP, which means the drupal database was deleted. So, drupal@localhost doesn't exist...

Silly me.

soniasss’s picture

hi

my site has been showing the maintenance page for hours. i have tried the sql stuff and still cannot get any further. the /user and /?q=user brings the same page.

anything else i can try?... i just made this site and dont have any backup!

thanks