Anonymous Users Cannot Access Drupal Content


I quickly decided to repost this because the same thing happened with the recent upgrade. I made a post several hours ago before we left to take the kids over to their grandmother and aunt’s house then to the movies. I was logged out of the Drupal administration on this computer, went to missnexus.com and I could not see the post.

I actually still had this page: http://drupal.org/node/64114 opened in my browser.

If you have the problem on your Drupal site where anonymous users cannot access your content then here is the fix:

Open phpMyAdmin, go to the Drupal database, click on query and execute the following queries:

TRUNCATE node_access;

and

INSERT INTO node_access (nid, gid, realm, grant_view, grant_update, grant_delete) VALUES (0, 0, ‘all’, 1, 0, 0);

I originally posted this earlier in the week, but this is one of two posts that I lost in the upgrade. I ran the queries just now for a second time and the problem was fixed without any further issues. *whew*

Sphere: Related Content

Technorati Tags:

Related Posts:
How to Remove the RSS Icon From Drupal Theme
Resizable TextArea Fix For Drupal Blog in IE 6
Google Adsense Video Units are Up and Running
How To Add TextLinkAds To Drupal Blog
Lightbox Drupal Module


Print This Post Print This Post
RSS 2.0 · Trackback · Comment ·

2 Responses to “Anonymous Users Cannot Access Drupal Content”


  1. You are my saviour.. I've been searching through the Drupal forums for 2 months (on and off, cos I kept giving up in despair!) .. this is the thing that fixed my problem. *hail you*.
    Penny xx


  2. I originally posted this earlier in the week, but this is one of two posts that I lost in the upgrade. I ran the queries just now for a second time and the problem was fixed without any further issues. *whew*

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>