Anonymous users showing access denied for all page.
iweb - November 25, 2008 - 15:11
Hi all,
I'm just in the middle of my first drupal6 install and I can't get anonymous users to access any content.
I've checked that 'access content' is ticked for anonymous users, but yet when I try and access my front page which works fine if I'm logged in, I get 'access denied'.
I've disabled all but the core modules but previously I had gallery, cck, views, gmap installed and working for logged in users.
Any help would be appreciated - I'd love to use 6, but this is a bit of a stopper.
Simon

Just as an update, I've done
Just as an update, I've done a new install and am still getting this fresh out of the box.
Basically I installed using the 6.6 code from the front page, setup an admin user then created a page and promoted it to the front page. I checked that anonymous has 'access content' ticked, logged out and get an 'Access Denied' error.
Having the same problem on a developing site.
Anonymous users are now getting an Access Denied error on ALL of the content. Permissions haven't changed. I've turned Access Content on and off to check. Trying to figure this out
It is a damn poor day when you don't learn something!
_
Are you using any access control modules? Have you tried clearing the cache?
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Thank you for responding so
Thank you for responding so quickly @WorldFallz,
I did updates last week to the system.
The system has always had a problem (even on 6.9) with the system becoming corrupt (either due to cron.php timing out or something unknown) which I usually just clear the cache and everything was ok. This time all content showed up as being Unpublished even though in the Admin->Content section all content shows as being Published. So I was reading and applying module updates as I use dev modules to correct issues.
While trying to fix that issue, I had a custom module that I turned on in preparation for a meeting. After the meeting, I applied updates cleared caches again got out of maintenance mode and the site had a slew of new errors related to the views module. The custom module doesn't even use views (custom form right now) so I started turning off modules and the custom module. Cleared the caches several times and now the pages do not show as unpublished but as 403 Access Denied (ie. http://ww2.cattco.org/faq/what-winter-storm-safety-tips-do-you-offer )
Cleared the cache and the Views cache
URLs set for admin/settings/error-reporting (ie. http://ww2.cattco.org/content/403-access-denied ) but of course that is content and brings up the 403 error.
Drupal 6.9
Modules:
- Content Permissions is ON !!! going to turn this off and see what happens
Now, that the modules are listed ... going to look for a module that would list them out automatically for me to copy & paste. That is a chore to copy, paste then remove the extra details. OR can create a module for the community to do this.
Themes:
Zen
Many custom Zen-based themes for different areas of the site
While getting the list of modules I got the following error
* warning: array_map() [function.array-map]: Argument #2 should be an array in /path/modules/system/system.module on line 966.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /path/includes/theme.inc on line 1760.
* warning: Invalid argument supplied for foreach() in /path/includes/theme.inc on line 1760.
Going to see what this deals with too.
---
It is a damn poor day when you don't learn something!
_
Thanks for the detailed description-- this is the kind of post people should write when they need help, lol.
I would be bothered by the repeated failure of cron before making the changes-- even though clearing the cache ostensibly 'fixes' the problem, the fact that cron doesn't complete successfully means there's probably one or more tasks not being completed.
If it were me, the first thing I would do is disable all contributed modules and see if cron completes successfully. If it does, then add them back one by one until you find the culprit that is killing cron. Make sure you test all contribs--it could be more than one causing the problem. In other words, when you find one that kills cron, disable it and continue testing the others. Don't stop at the first one you find.
If disabling contribs doesn't fix the cron problem, i would start with a fresh download of all drupal core as well as checking and repairing the db. I wouldn't go any further until you can get cron running to completion properly with just core. One infamous core module you might try disabling right off the bat is the "update status" (update.module) module.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
@WorldFallz: One infamous
Infamous ... that module is MORE than famous! (Movie: The Three Amigos)
Thank you I will try that now.
---
It is a damn poor day when you don't learn something!
Access Denied on all pages for anonymous users
Apparently SOME MODULE had deleted a very important record from the table node_access
In your database, check table node_access for any records.
You should have a record with the following values:
nid = 0gid = 0
realm = all
grant_view = 1
grant_update = 0
grant_delete = 0
If do not see a record with those values then add it to the node_access table.
Test your site as an anonymous user. In my Drupal 6 installation, the site was working!
However, if you are still getting the Access Denied it is recommended to do the following:
For more information, see http://drupal.org/node/124137#comment-656542
---
It is a damn poor day when you don't learn something!
For Drupal 5.x users...
I found that the control was done in the Admin -> User Settings. Select the role of anonymous and then you will see a list of modules they can access. Fixed my problem
_
I'm not sure what you mean, there's no list of modules or roles at admin/user/settings, but users don't get access to modules they get access to features and functions.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
acces denied for google cse
when you get acces denied for google cse:
in drupal 6.x: make sure the anonymous user has permission to search content under the "search module" permissions in the permissions panel on /admin/user/permissions