Wierd permission trouble

Author Message

Christian Johansen

Thursday 09 March 2006 1:41:25 am

I'm having some permission troubles that I don't understand. This is the error message:

Error: error/view.php  	Mar 09 2006 10:33:05

Error ocurred using URI: /articles

Warning: Insufficient permissions 	Mar 09 2006 10:33:05

Function required:
 Module : content
 Function : read
 ClassID : 1
 MainNodeID : 140
Policies that didn't match:
 PolicyID : p_344
  Limitation : Section
  Required : 1, 

However, for the anonymous user I have this set up:

content  	read   Section( Standard , Topics , Articles )
content 	pdf 	Section( Standard )
rss 	feed 	No limitations
user 	login 	SiteAccess( siteaccessName )

Pretty basic stuff with just two added sections, this is the way I always do it but now all the sudden it doesn't work. Debug doesn't provide any more interesting info - any ideas?

The logs only say this: Error ocurred using URI: /articles

Christian Johansen

Thursday 09 March 2006 5:33:47 am

It seems this error was caused by the admin referring to the wrong varDir in it's site.ini.append file. This again seemed to cause the whole page to not use siteaccess correctly which created trouble both with permissions and templates. I tracked down the one reference to the wrong dir, changed it and all my trouble went away :)

Betsy Gamrat

Friday 31 March 2006 6:29:28 am

I had the same problem.

I created a new siteaccess called <b>home</b>, and it wants the anonymous user to login.

Error log entries:

[ Mar 31 2006 08:10:39 ] [71.255.142.31] Timing Point: Module start 'content'
[ Mar 31 2006 08:10:39 ] [71.255.142.31] Error ocurred using URI: /~magazine/ez/
index.php/home/media_files

[ Mar 31 2006 08:05:51 ] [71.255.142.31] No translation for file(translation.ts) in context(lib/template): 'The maximum nesting level of 40 has been reached. The execution is stopped to avoid infinite recursion.' with comment()

The Anonymous role is set like this:

Policies [5]Module Function Limitation
content read Section( Standard )
content pdf Section( Standard )
shop buy No limitations
rss feed No limitations
user login No limitations

Things I tried:

Granting all privileges to the anonymous user (no effect)
Increasing MaxLevel in templates.ini (no effect)
Checked the patch listed for the "maximum nesting level" in eztemplate.php (it is there)
Clearing all the caches (many many times)

The siteaccess is running off the same database.

Any ideas would be most welcome.

Thank you,

Betsy Gamrat

<b>*******************************</b>

I tried creating an account - signing up under the <b>home</b> siteaccess. The email didn't get through yet (but my email is often delayed). eZ reported success and then ... it allowed me to access the pages through the <b>home</b> siteaccess. After closing the browser and going back to the page, it still worked.

So - I'm all set. I don't understand why, but the problem is solved.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.