English 中文(简体)
Drupal anonymous user permissions problem
原标题:

I have been wracking my brain on how to solve this issue for hours now, and I know I m not the first one to encounter it.

I am having trouble granting anonymous users access to node content in Drupal 6.15. I have tried everything, including inserts to MySQL, checking and double-checking every permissions setting available (yes, I have enabled "Access content"), rebuilding permissions, and clearing the cache. I have disabled custom modules in hopes of clearing out a conflict but still no luck. Anonymous users get the "Access Denied" page everywhere but on a custom calendar View page.

I have tried these queries, but they are just duplicates of what is already there:

INSERT INTO users (uid, name, mail) VALUES (0,   ,   );
INSERT INTO users_roles (uid, rid) VALUES (0, 1);
INSERT INTO node_access VALUES (0, 0,  all , 1, 0, 0);

My only glimmer of hope: the Devel Module s "Access Permissions by User" display indeed shows that user:Anonymous cannot view content (SEE IMAGE). It raises a baffling question: how is it that "All users may view all nodes" while user:Anonymous simultaneously has "NO:access content" ???

This is driving me nuts. If anyone can alert me as to what I am doing wrong, I will jump up and down in excitement, and buy you a beer if you are in Seattle.

THANKS!

alt text http://seethreeblog.com/images/devel.png

最佳回答

This is very typical of Drupal: permissions problems. While I m aware I ll probably be unable to offer the correct answer, maybe at least I ll trigger some revolutionary idea in you that will help you solve the problem.

While node access is a standard permission that should be on, there are others that might restrict the users. Do you have freelinking on? If so, check that the freelinking access is also on. You might want to make sure that access control modules (ACL and ones that rely on it, such as Forum Access) don t get in the way. Also, taxonomy access control can be a pain: I ve had problems with Taxonomy Access Control Lite (tac_lite). Try disabling it too if you have it.

I apologise for not being able to offer anything more specific than this, but Drupal is just like that. Solving permissions issues rarely requires hacking the code.

问题回答

Via Drupal: http://drupal.org/node/64114

This one did it for me: Did you try rebuilding permissions? Go to admin/content/node-settings and click "Rebuild permissions".

I ve had exactly the same problem since upgrading from 6.14 to 6.15. Tried only on 2 difference local OSX systems, so intrigued to find your server related problems... is PHP version related - I m running PHP5.2 on all installs.

Rebuilt permissions table and looked at every conceivable user permission, but anon users get the same Please Login to Continue . Looks like it s worth posting an issue in the Drupal issue queue.

Since I went to 6.15 I ve had problems with permissions left and right. The site wasn t 100% debugged in 6.14 so I can t say logically it definitely was 6.15 s fault, but my intuitions can and do say so.

I have a role I call content manager that has all the CRUD (create, read, update, delete) permissions on all content types.

To let the System Admin (user #1) edit stories I had to give it that role. Right now I m having problems letting that role edit stories. A user with that role assigned gets access denied errors.

The only other module I have that manipulates permissions is role delegation so certain end users can be given access to assigning roles, but not edit roles or to assigning permissions to roles. I still have to chase down this and the possibility of a corrupt permission table. But the possibility that 6.15 is the culprit still exists.





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签