How to fix "Access Denied" for visitors?

Just 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:

http://drupal.org/node/134505

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 

Average: 4 (5 votes)

Trackback URL for this post:

http://www.drupalace.com/trackback/70

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><br><p>
  • You may quote other posts using [quote] tags.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
Sorry for the "captcha" spam-detector challenge; the spammers have been out in force. : (
keybo_rd: