I have a problem accessing content with the anonymous user.
An example of the original URL for the content is /drupal/recruitment-overview and the anonymous user can see this page.
The content is actually being accessed via a View (unrestricted access) from the URL /drupal/taxmenu/menu-ol-hlp/node/58/26 where 26 is the node ID.
The admin user can see the content of /drupal/taxmenu/menu-ol-hlp/node/58/26 but the anonymous user gets You are not authorized to access this page.
The anonymous user has 'access content' and 'access all views permissions'. If I give the anonymous user 'administer content types' permissions I can see the content of /drupal/taxmenu/menu-ol-hlp/node/58/26 without logging in, but this means that anyone can create content, which is not what I want.
I don't think this is related to Views as if I rename the View the the administrator gets a blank page (I'm using taxonomy_treemenu where the View name is hard coded) where as the anonymous user continues to get You are not authorized to access this page.
The You are not authorized to access this page message is coming from index.php.
Does this mean that the system doesn't recognise the URL /drupal/taxmenu/menu-ol-hlp/node/58/26 when I'm not logged in as admin as is in essence telling me that the page is not found? Are permissions associated to URLs in this way?
I've tried using the Devel module to clear the cache and rebuild the treemenus.
Using the Devel module to Collect query info and Display query log doesn't give me anything on /drupal/taxmenu/menu-ol-hlp/node/58/26 (although it seems to work elsewhere on the site) so I thought that maybe there was a redirect to this page so I switched on Display redirection page which still doesn't give anything.
Looking at /drupal/recruitment-overview logged on as admin I get the Devel Access permissions by user box which shows Guest as view - yes update - no, delete - no, which is what I want. Looking at /drupal/taxmenu/menu-ol-hlp/node/58/26 I don't get the Access permissions by user box.
Any help would really be appreciated, thanks.
Comments
Check url aliases under site
Check url aliases under site building, see if the url alias is correctly linking to the node ID.
Then try to disable Views and just use the url alias, to determine if views is interfering or if its a url alias problem.
Not a Views problem but a taxonomy_treemenu problem?
Thanks very much for your reply.
Disabling Views still gives me You are not authorized to access this page when I'm not logged in and gives me what would have been the normal view when logged in as admin.
With regards to the aliases /drupal/taxmenu/menu-ol-hlp/node/58/26 does not exist in URL Aliases, but then the URL works when I'm logged in as admin, so I'm not sure whether this is relevant or not.
Is there a clue in the fact that giving the anonymous user 'administer nodes' permissions gives access to the URL when not logged in?
Disabling taxonomy_treemenu gives me
Safari can’t open the page /drupal/taxmenu/menu-ol-hlp/node/58/26 because the server unexpectedly dropped the connection.
when I'm not logged in so it's obviously doing something with that module.
The readme for taxonomy_treemenu says
Menu viewing is permitted by 'access content' (like Taxonomy).
Node viewing through 'taxmenu/%taxonomy_treemenu_ttid/node/%taxmenu_tid_trail2/%node' constructions are permitted with 'node_access', 'access arguments' => array('view', 4)' (like node/%).
Administration is permitted by 'administer menu'.
Note that, if rendering lists using the Views module, the default view permissions are set to 'none'. This is because the views are embeded, and not acessible to a user except through Treemenu, which does it's own checks.
I don't quite understand
Once again, thanks for your help.
Try not to use that taxonomy
Try not to use that taxonomy thing, or any taxonomy menu. If you don't have say 100s of categories in taxonomy, you're better off, generating a list of links through the module and then pasting the HTML output into a block or whatever. (It will reduce load too, one less module to load and less queries to see the same old taxonomy table once again; which never changed either).
Also try to use Path Auto and Path module, put it on auto and let THAT name your node instead of all this nonsense: /taxmenu/node/12/4121
Seems to me like a module you have is buggy.
A great solution that worked for me
Hi there
Many thanks to "Harry Slaughter". The solution proposed by him worked for me.
just thought it might also work for you.
Please check
http://devbee.com/you_are_not_authorized_to_access
http://devbee.com/node/54
Regards,
Gaurav Arya
Works on 6.16
I just updated the table names and this worked a treat, thanks for the pointer!
http://devbee.net/
It's actually .net and not .com
http://devbee.net/you_are_not_authorized_to_access
http://devbee.net/node/54