I have encountered what I consider a fairly serious problem, but I am not sure if the error is in my settings, or something in the 4.6.2 upgrade I just installed (or perhaps mis-installed).

Currently, unless I allow the anonymous user to have 'administer nodes' permissions in access control, the anonymous user cannot see ANY content on the site. The only things visible are my categories page, but the content categorized is not visible. Nor is "/node" visible. The anonymous user gets the initial 'welcome to your new Drupal site' page. You can look for yourself at: "http://stnina.org/test/node"

I am running 4.6.2, just updated. I didn't have this problem on 4.6.0, nor (I think) 4.6.1. I did try to backtrack on the node.module to 4.6.1, but that did not fix the problem.

What I have done:
I have updated every setting for every module that I use to make sure that things were properly registered.
I granted full permission to the anonymous user for everything, and then removed permissions one-by-one. This is how I discovered that the problem is with the node.module administer node access control setting.

What I did not do:
Change permissions between upgrades. I did modify profiles, and I added and since deleted the taxonomy_access module (thinking this was the problem).

For a variety of reasons, I do not want anonymous (or even most members) to be able to modify the content of nodes. Any help on this?

Note: I did find this forum topic, which seems to have the same problem, but I wanted to raise it to the level of an issue rather than a 'how do I' since it seems fairly serious to me: http://drupal.org/node/23763

Thanks,
Maria

Comments

syscrusher’s picture

I think this problem relates to the SQL SELECT statement to retrieve eligible nodes, rather than to the permissions settings. I logged into the site using the privileged account you created for me during our image_import.module testing, and looked at your permission settings. All is well there.

I've seen a problem a little like this in upgrades from Drupal 4.5 to 4.6.x, where one of the access or counter tables doesn't have a required row to match the row in {node}.

Question: Did you run the update script after installing 4.6.2, to upgrade the database structures from 4.6.1 to 4.6.2?

Scott

mariagwyn’s picture

Scott,

I did run the update script, both from 4.5 to 4.6.1, and 4.6.1 to 4.6.2. Any ideas as to which database?

Maria

mdrlmg’s picture

Maria are your roles called "anonymous user", "authenticated user", and "administrator"? They must be in lower case. I ask b/c after searching high and low (in the db tables, and everywhere in between) I learned drupal has some funcitons which look for certain users names. if you wish to create limitations on the "anonymous user" role, create a role and call it the later. Make sure its in lower case. Once you edit the role's permissions, you should be good to go.

I know this sounds simple, but its exactly what solve the problem for me. I started out thinking it was a complex problem. In fact, it couldn't have been a more obvious fix.

mariagwyn’s picture

Priority: Normal » Critical

Yes, all my roles are lower-case. Actually, I haven't changed the default roles, only added an additional role. Things were working up until the 4.6.2 upgrade (I started with 4.5). Did you actually create an additional role called 'authenticated' and 'anonymous'? I already had them as defaults. In my admin panel, they are "locked."

I am upping the problem to critical, as it is creating some major problems for my site. Any other ideas out there?

Thanks,
Maria

mariagwyn’s picture

I am at a complete loss as to how, but the problem is resolved. I finally decided to turn off all my modules, and turn them on again. All of a sudden the persmissions are fine. I did check my database for odd capitalizations of 'anonymous' and 'authenticated,' all was clean. I updated to some of the most recent CVS of the core, and that created all sorts of other problems (at one point, drupal was producing two pages in one view...), backtracked to the regular 4.6.2, and things seem to be fine.

Whatever. I wish I understood it, but at least it works.

Maria

mariagwyn’s picture

Status: Active » Closed (fixed)

oops...changed to closed. I will reopen if it comes up again.
m

njehlen’s picture

Title: anonymous user ccess Permission in administer node problem » anonymous user access permission in administer node problem
Status: Closed (fixed) » Active

I'm having this same problem - but I've tried the above fix and had no success. I've also turned off all modules except node and tried turning on and off all access for all roles. Neither of these seem to have had any affect. For now, the site (www.HomeFromIraqNow.org) is generally working, but anyone who's not logged in can edit any post on the forums they like - not quite what I was hoping for. Is anyone else having this issue? Any other solutions to try? Any other info I can provide to help troubleshoot?

thanks!
nick

njehlen’s picture

Status: Active » Closed (fixed)

This seems to have done the trick:

http://drupal.org/node/12757