Hi all

Newbie here. First attempt at using Drupal to build a site. Great so far and managed to get it going but I do not know what I did but now, I am unable to log in to to administer the site.

It was working great before but I must have done something to break it. After going to http://mysite.com/admin to log in with my username and password (my login block only displays in admin/*), it just brings me to http://mysite.com/node.

I have also tried using http://mysite.com/user to login but the same happens. I just can't get to any admin pages. Even when I tried typing the url into my browser (e.g. mysite.com/admin/build/block etc), it'll go to a blank page with "You are not authorized to access this page".

My username & password is definitely correct because I checked it through mysql phpadmin and when I tried using a "wrong" password, it will tell me "unrecognized username or password".

And I'm using the "superuser" account!

Can anyone advise how to troubleshoot?

Thanks in advance!

Comments

cog.rusty’s picture

Can you login in the ?q=user page?
Have you modified the .htaccess file in any way? If you have, try renaming it and uploading a fresh one.
Have you modified any other Drupal file?

hoeyeepin’s picture

Hi!

Thks for the prompt response!

Yes, I already did try using ?q=user to login and it's the same. I get redirected to /node

I was doing a couple of things e.g. installing and configuring a new theme before leaving my desk for a while. When I returned and tried to login again, this issue happened.

But I was quite sure I was not playing around with .htaccess file directly but thanks for the headsup, I'll upload a fresh one and hope it works.

Thanks!

hoeyeepin’s picture

Hi! It didn't seem to work.. still unable to login to admin nodes. Any other ideas?

browlands’s picture

After login, not just admin but all roles, user isn't logged in and the page shown is /node. Help! All menus have disappeared also, except when browsing through the site (menu's disappear on the login page and on the redirection after login). Tried emptying caches, clearing cookies, repairing the sessions table, all to no avail. The watchdog table is showing the following: -

message: Session opened for %name.
variables: a:1:{s:5:"%name";s:5:"admin";}
severity: 5
location: http://localhost/mydomain/user?destination=node
referer: http://localhost/mydomain/user

sattyani’s picture

I am getting the same problem. after I try to login i keep getting a blank page. URL is: http://localhost/drupal/node?destination=node

what's going on, please advice

Samir

sattyani’s picture

I deleted all installed modules under \sites\all\modules

I have done this at the folder level, I had no other choice since I wasn't able to login. After the files were deleted everything magically worked fine.

I am really unsure if I should use Drupal 6 now, I have just started and getting such issues at an early stage is making me think it's too early to move into 6.

virme’s picture

my problem of generating blank page after login was fixed by removing echo "

" from some internal functions i was using.

i was using   echo '
'; print_r($array);   echo '

'; to have nice array overview.

however, it was causing a problem for php. I noticed this error message in watchdog table:
a:4:{s:6:"%error";s:7:"warning";s:8:"%message";s:150:"Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/out/sites/all/modules/twitter/twitter.inc:129)";s:5:"%file";s:49:"/Applications/MAMP/htdocs/out/includes/common.inc";s:5:"%line";i:328;}

header didn't like to see echo