After a user logs via /user/login then the next page states "Access denied You are not authorized to access this page." at the URL /user/admin and the admin menu doesn't appear.

This started after the upgrade to 5.1 from 5.0. Luckily I was logged during the upgrade but any further attempts to login fail.

Any information would be helpful.

Thanks!

The log states the following:

Type Date Message User Operations
access denied 01/31/2007 - 11:40 user/l Guest
user 01/31/2007 - 11:40 Session opened for admin. admin

System Info:
Drupal 5.1
MySQL 5.0.27
php 5.1.6
Apache 2.2.3

Modules:
ldapauth
ldapgroups
Category
Contact
Help
Menu
Path
Search
Taxonomy
Upload
Event
Image
Image Attach
Image Gallery
FCKeditor
IMCE
Panels
Pathauto
Views

Comments

kcolwell’s picture

To follow up with this problem it only seems to be a problem for Firefox on the Macintosh. Safari and the Mac and Firefox on windows can login fine.

Any ideas anyone?

thanks!

ezra-g@drupal.org’s picture

I'm observing the same behavior on Mac OS X 10.4.8 with Firefox 2.0.0.1 . I'm able to login with Safari.

vm’s picture

install the 5.x-dev tarball. Many issues with logins have been patched and awaiting release of Drupal 5.2. It can be found here and was rolled on February 14th (at time of this post).

zbricoleur’s picture

I just get "Access denied. You are not authorized to access this page." No login form. I tried deleting the cookie; had no effect. Any help appreciated.

gaijinu’s picture

I get "Access denied" only with IE 6 on XP, FF2 works fine. Anyone got a fix?
Cheers.

EDIT: Fixed. My test server's name was test_server as soon as I changed it to testserver worked fine... Dunno why.

Muay Thai Singapore
Singapore Sailing

sobi3ch’s picture

In my case I couldn't log in under IE7 and safari for win on FF3 works fine. I've changed www_cerealsevent_co_uk.xxx.xxxxxx.xxx to wwwcerealseventcouk.xxx.xxxxxx.xxx inside my httpd.conf, I restart my apache (I'm using LAMP [ http://en.wikipedia.org/wiki/LAMP_(software_bundle) ] stack) and everything start works again :). I'm running under Drupal 5.12 so it's seems this is some browser/www-server/DNS issue. I really don't understand how can it happening?

adrienf’s picture

I've got same problem with fresh install of Drupal 5.1 under:
XP Pro ; easyphp 1.8 : apache 1.3.33 - php 4.3.10 - mysql 4.1.9 - phpmyadmin 2.6.1 ; FF2 or IE6

skorch’s picture

I've got four sites running under the same codebase and only one of them has this problem. I've removed all 3rd party modules from sites/mysite/modules, thinking that perhaps it was an old module that was causing problems. Still having this problem. If I request a new password, and I click on the link the subsequent email, I can log on, change the password and stay logged on. The second I log out and try logging back in again, it fails.

skorch’s picture

One more thing. In my logs, it shows the session being opened, but then immediately after that, it says:

Access denied 2007-02-16 11:08 node Anonymous
user 2007-02-16 11:08 Session opened for Skorch. Skorch

Could this be some sort of cookie issue?

wdrout’s picture

So is this going to get fixed for 5.1? I have thishappening on a 5.1 system that I want to put into production. If not does anyone have a release date for 5.2?

wdrout’s picture

I found the solution at:

http://drupal.org/node/114194

I went ahead and manually specified the domain, and it appears to work fine.

skorch’s picture

That also worked for me.

I have two drupal sites working off the same domain. The default site runs off of www and the one that was having the problem was a subsite on the domain (othersite.mysite.com). Must be something fishy with the script in the settings.php conflicting with the default site.

lukathonic’s picture

Uncommented out those lines as suggested... it will work now on all my mac browsers. Solution here - http://drupal.org/node/114194

newms’s picture

Try this http://drupal.org/node/114194. If that doesn't work then uncomment out the base_url settings in your settings.php file (and fill it in with the correct settings).

newms