By deadpan on
This is not the same problem that every newbie asks about, I promise.
I have checked and unchecked and rechecked the access content permission for anonymous users several times, checked the database to make sure it's taking effect, etc., and still I always get "Page not found" for anonymous users.
I originally installed 4.4.0-rc and have recently upgraded to 4.4.1, but no change. The only files I've messed with are user.module (just added another block) and some stuff in xtemplate. The site is at maa.openflows.org
any ideas what might be wrong?
Comments
Re: "access content" *is* checked for anonymous user...
Check your MySQL database and make sure you have an entry with a UID of 0. The anonymous user needs this entry to function properly. From MySQL, you can use this command:
mysql> SELECT * FROM drupal.users WHERE uid=0;If the query returns an empty set, you'll need to insert a row. Use the following command:
mysql> INSERT INTO drupal.users (uid, rid) VALUES (0,1);Note: This assumes that your database name is drupal. Change it as necessary.
it worked
thanks!
This almost answers the
This almost answers the problem I raised in http://drupal.org/node/20447 yesterday.
But, when I do the select, I get the following message:
1 row in set
If I check the users table in phpmyadmin, I can see 0 in the uid value
Do I still need to run the command (mysql> INSERT INTO drupal.users (uid, rid) VALUES (0,1);) to get anonymous users to view content? I am confused because the row already exists.
I would appreciate some help with this.
anonymous user access disappeared, used to work fine
never mind - i figured it out.
how did you fix there error?
how did you fix the error?
Adding the UID 0 into user table works
David is right, I solved the same issue by telling mySQL to INSERT INTO drupal.users (uid) VALUES (0);
If anonymous cannot post successfully [ user 0 missing ]
Just to be more specific for newer Drupal users :
If only anonymous cannot post, this means that in the table called users, you are missing a row with UID 0 (you will see UID 1 and more, but check if there is a UID 0).
Do not get confused with tables : role, users_roles, etc.
--
For exemple, I had copied a database for a multisite (i.e. using the same core Drupal, you create many sites using different domain names; quite nifty). In my database transfer, for some reason my UID 0 (anonymous users) somehow was transformed in a new UID. So anonymous could never post anything successfully.
Michael Lessard
webmaster of Quebec City "democracy in action" media