How to fix "Access Denied" for visitors?
Posted January 4th, 2008 by DrupalaceJust as I earlier had a problem with admins unable to access a Drupal site, I had a problem with visitors unable to access a new site. That is, I could see everything fine as admin, but checking from another (non-logged-in) browser, only the default "Welcome to Drupal" content would show up. (Blocks were visible, but links to nodes in those blocks wouldn't reveal anything. In short, visitors could not access any node.)
The immediate suspect, if you have this problem, is acess control: make sure that, in admin/user/access , you grant permission to "access content" under "node module".
But in my case, I had made sure from the start that this permission was granted. What could be the problem?
Question answer
Once again, the forums to the rescue. Here's the thread that helped:
And the comment with the solution that worked for me:
http://drupal.org/node/134505#comment-219661
I went to phpMyAdmin, called up my site database, and ran the indicated SQL query. Shazam, things worked!
I'll have to leave explanation to the pros; this is the kind of wizardry that still rings esoteric to my ears. But it did the trick, and I am grateful to solution poster briandelicata, as well as everyone posting in the thread. Great stuff!
(Oh, and one note: Before playing with your database per this solution, be sure to BACK UP THE DATABASE!)
More notes
Here's a claim that the taxonomy_access module can cause the problem too: http://drupal.org/node/239951












