Hi,

I'm on a fresh installation of 6.2 and I got a message of "Access denied: You are not authorized to access this page." when I try to log on to the Admin (id 1) account. The only related information I could find on this was for Drupal versions of 4.7.x-5.x; which the discussion lead me to believe that this error is related to the cookie cache. I tried various fixes and script rewrites that people suggested, but they were outdated and the script that it had me replace is completely different (which I assume is a fix in drupal 6.x). Yet I still get the error. I threw out the drupal tables in my database and did a fresh install over them. I've had no problem logging in with the admin account, until now. As previous people before me have pointed out, the problem seems to be corrlated without the amount of time your are inactive and the discrepencancies of the timestamp on the cookie. Any information, thoughts, or links, on this would be much appreciated. Thanks.

Comments

rj.seward’s picture

See http://drupal.org/node/228587 for discussion on this. I found it of note that each time the Access Denied problem shows, a log entry is generated similar to the ones below:

warning access denied 05/09/2008 - 12:52 logout anonymous (not verified)
warning access denied 05/09/2008 - 12:51 admin/content/types anonymous (not verified)
warning access denied 05/09/2008 - 10:57 admin/user/user anonymous (not verified)

This shows that access is being denied to anonymous, even though I was logged in as super user and not as anonymous. This looks like a case of mistaken identity. Is this a uid problem?

Here is a similar record from the watchdog table in the drupal database:

48 0 access denied admin/user/user N; 4 http://mysite.com/drupal6/admin/user/user http://mysite.com/drupal6/user/login?destination=comment/reply/2%2523com... 177.17.7.177 1209574790

The 0 here indicates that user 0, anonymous, was detected despite my being user 1.

Jonathan.D’s picture

Tried the various fixes found on that link, rj. Editing settings.php with the register function and running update.php was not even a temporary fix. I tried yet another fresh install on a completely different server that has never had drupal before. Same error. This has effectively broken drupal for me, and I hope some dev a lot smarter than I can figure this out, otherwise drupal is dead in my eyes.

xtfer’s picture

There are a number of potential solutions, the one which worked for me was clearing the node access permissions, just hit this link with your browser:

http://www.yoursite.com/admin/content/node-settings/rebuild

Other potential solutions are listed on the link at #1

sotiris’s picture

Same problem... with 6.2 suddenly i can't log in. I tried both solutions, http://drupal.org/node/228587 and #3 neither worked for me. I think this is a critical bug...

damien tournoud’s picture

Assigned: Jonathan.D » Unassigned
Status: Active » Postponed (maintainer needs more info)

Please verify that you {users} table is sane: it should have an anonymous user with uid = 0 and an admin user with uid = 1.

sotiris’s picture

Fortunately i've got a backup yesterday and helped me to figure out that my problem was related with the upload engine of the FCK Editor. I had change the $cookie_domain variable in settings.php
So it wasn't a drupal core bug in my occasion.
I am sorry for the inconvenience.

gpk’s picture

Category: bug » support
Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Fixed

Glad you got it sorted. Changing status accordingly.

fletchgqc’s picture

Thanks! After using the site with many users successfully for about 1 month we suddenly encountered this problem. We are using FCKeditor but so far it didn't cause any issues.

Solution #3 fixed the problem.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

llolla25’s picture

same for me, did you get it fixed?