Closed (fixed)
Project:
Drupal core
Version:
5.0-beta2
Component:
Garland theme
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Oct 2005 at 08:48 UTC
Updated:
10 Apr 2011 at 14:06 UTC
I'm thrilled to test out the cvs-version. The Offline feature seems handy, but I'm embarassed to admit that I can't seem to access my site after activating the feature. I supposed that it was possible to log in by tha login page. Maybe a helpfull hint could be given in the settings page?
Comments
Comment #1
kbahey commentedYou should be able to go to example.com/user/login (or example.com?q=user/login if you are not using clean URLs).
You can then log as an admin user.
Last I checked there was an unrelated bug that caused the page to not display the login fields. So, try using just "user" instead of "user/login". That should work.
Comment #2
dries commentedIt's still not working.
Comment #3
kbahey commentedJust to clarify: "/user" works fine, displays a login and accepts it if I am admin, and the site is offline.
"/user/login" still does not work.
I tested that with the latest CVS.
Comment #4
chx commentedI doubt that user/login _can_ be fixed the way user.module is right now. I do remember the author of site offline changing from user/login to user during form API update though can not remember the exact cause.
If user works then there is no problem, right? Maybe we should change the relevant tab to user and that's it?
Comment #5
kbahey commentedI suggested the same workaround to Dries: changing "user/login" to "user", but he had some reservation on this (seeing user info or user listing or something).
However, I do not see an issue, since the default maintenance themed page has no links to either (actually has no links at all!), so it may not be an issue?
Dries, would you reconsider this? I can patch it (exactly 5 characters removed!)
Comment #6
tangibre commentedI get the "Site offline"-page on http://example.com/user.
On the http://example.com/user/login I get an "Page not found" with three empty tabs (log in, register, request new password).
If I click on either I get "401 The web site is blocked by administrator"
Couldn't the "Site offline"-page have a subtle "Administrators go here"?
:-)
Comment #7
jvincher commentedI disagree with the assessment above that /user is working. As indicated by the last poster, /user gives the site offline page. Offline sites are at this point inaccessible.
Comment #8
kbahey commentedYou are right, the reason it works for me is that I have this line in includes/menu.inc, function _menu_site_is_offline() to be:
if (drupal_get_normal_path($_GET['q']) != 'user') {Instead of:
if (drupal_get_normal_path($_GET['q']) != 'user/login') {Dries, please apply this as an official patch.
Comment #9
dries commentedCommitted to HEAD.
Comment #10
jvincher commentedThis patch works but I run into another related problem.
When the site is offline and /user is selected and a non-admin user is loggin in, the site continues to respond offline. Selecting /user path generates /user/nonadminuser with the offline page displayed. I am unable to log the non-admin user off or, for that matter, log in as admin.
Comment #11
pegmonkey commentedPerhaps a note in the explanation under "administer/settings/site maintenance" that explains how to go about logging back in if the site admin inadvertantly logs out would be a good addition.
Comment #12
Popboard commentedhttp://drupalsite.com/?q=user should let you in.
Comment #13
pyewackett commentedThank you very much.....
I saved the maintance page to see how it would look I was unable to login to the admistration page after stuck to view the maintanence page.
But using http://www.mysite.com/?q=user
Let me login again, Thanks a lot saved me some hair as it had me pulling my hair out. :-)
Comment #14
scoutbaker commentedThe people posting with the issue appear to have it resolved, and it is covered in the handbooks at http://drupal.org/node/56995.
Comment #15
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #16
bahram3d commentedthanks man works for me