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.
By tagesk on
I've installed 7.9.
No changes, no themes, no content added, nothing.
The admin user was set to admin.
In this pristine setting, http://localhost/?q=admin does not give me a login page, but rather "Access denied You are not authorized to access this page".
If I try some other name like ?q=foo I get The requested page "/?q=foo" could not be found.
Have I misread the documentation at http://drupal.org/node/13777
[TaSK]
Comments
title and body paths don't
title and body paths don't match, what does not work ?q=admin / ?q=user or both
btw; you shure you're logged in? ;)
Mechanism doesn't seem to work.
Obviously, I am NOT logged in.
(at least not in the browser where I am conducting this experiment).
I am trying to understand how to log in if I remove the "User login form" on the front page.
Thus, I have done a fresh install.
Now I try to log in as administrator without using the form on the front page.
I do so, even if I can use the form, in order to find out how I can log in if I remove the "User login form".
As per the documentation I should be able to obtain a login form by accessing /?q=admin (where admin is the name of the administrator account).
I only get "You are not authorized...".
To verify that the syntax is correct, I can substitute admin with foo.
Then, as there is no user foo in a fresh install, I get "page not found".
So the syntax seems to be correct.
I do this test because my previous install, after having customized quite a few things, I removed the "User login form". I was not able to log in again.
Therefore I have tested it on a fresh install.
To answer your question: ?q=user does work (that is, gives the correct error message) but ?q=admin does not work as I am not presented with a login form but rather "You are not authorized....".
If, that is, I have understood the documentation correct in that if the site has removed the login form, users can log in by accessing ?q=user.
[TaSK]
user, not 'user'
'?q=user' sent as shown, gets you the login page. You don't substitute the username in the call. Once on the login page, you then enter the username and password. ?q=admin is actually another way to call the administration form, which obviously is not available if you are not logged in.
David Rocks
argh
Thank you; I'm not pleased with myself at this point.
it seems that to be fool-proof (where fool=TasK) the documentation needs to say "...literally; that is, do not replace the string "user" with the user that would like to log in.".
Thank you again!
[TaSK]
another choice
It would be more intuitive if they used the longer ?q=user/login, which gets you to the same place
David Rocks