Forums / Setup & design / Access denied You don't have permission

Access denied You don't have permission

Author Message

_ sai

Thursday 12 October 2006 12:34:35 am

Newbie, sorry if this is covered elsewhere but I searched with no result.

When I try to view any page I get an
"Error kernel (1)
Access denied
You don't have permission to access this area." error.

I can only view the pages properly if I login. This was not happening before so I must have messed something up while adding users and editors.

How do I allow all viewers to see the website?

sai

Claudia Kosny

Thursday 12 October 2006 5:02:42 am

Hello sai

Check the role set for the anonymous user - most likely you are missing an siteaccess or so here. Also check the site.ini and make sure that login is not required.
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/siteaccesssettings/requireuserlogin

If necessary post the role set for the anonymous user and for an logged in user here so we can have a look at it.

Greetings from Luxembourg

Claudia

ola adigun

Thursday 12 October 2006 11:51:32 am

Take a look in admin section under Setup TAB, ini settings. Select site ini, and appropriate site access. Now look for SiteAccessSettings on this page. Make sure RequireUserLogin is not set to true.

Hope that helps,

Ola

_ sai

Thursday 12 October 2006 11:07:49 pm

Ok great, found it

RequireUserLogin siteaccess false

Which is maybe not so great :-)

I change it to "True" and now it doesn't give me an error, but still wants me to login.

Change it back to "False" , 'clear all cache' and I am back to the same original error.

Any other ideas?

sai

Claudia Kosny

Thursday 12 October 2006 11:36:30 pm

Hello sai

Then please post the permission policies for the anonymous user. You can find them on the tab user accounts, menu link roles and policies. Click on the role Anonymous and you should see the roles listed there. Below that you should also see the users and user groups that use this role. Please post this list as well.

Greetings from Luxembourg

Claudia

_ sai

Saturday 14 October 2006 1:22:25 am

I have: (hope I've copied pasted the correct bits)

Policies [4]
Module Function Limitation
content read Section( Standard )
content pdf Section( Standard )
rss feed No limitations
user login SiteAccess( corporate_site )

Claudia Kosny

Sunday 15 October 2006 12:09:33 pm

Hmm, this looks good to me. Are you sure that this role is assigned to the anonymous user group? As I said in my previous post you should see that (under the heading Users and groups using the <Anonymous> role ) directly below the listing you just posted.

Could it be that you use sections for you content? If yes you have to allow the content read for all sections. To do that just click the edit button for this policy and add the other sections.

Also please note that requireuserlogin must be set to false in the site.ini if you want to allow anonymous users. You mentioned it a few posts ago and I am not sure which setting you have now.

If nothing helps please enable full debug output and clear the cache. When you now visit a page for the first time you should see a message in the debug output regarding mismatched policies (I don't know the exact wording). This should give some information about what permissions are missing. Please post this message here.

Claudia

_ sai

Monday 16 October 2006 2:40:12 am

Claudia, thanks a lot of helping me out like this!

Here is what I get in debugging mode:
======= start =============
Error: error/view.php Oct 16 2006 05:31:39

Error ocurred using URI: /cms/ez/index.php/

Notice: Oct 16 2006 05:31:39

eZTemplate: Loading template "user/login.tpl" with resource "design"

Warning: Insufficient permissions Oct 16 2006 05:31:39

Function required:
Module : user
Function : login
ClassID :
MainNodeID :
Policies that didn't match:
======= end =============

There are no policies that didn't match... but there are errors there.

I have just installed the corporate_site template. Is there a problem with that?

sai

Marko Žmak

Monday 16 October 2006 5:05:03 am

Try disabling role caching and clearing the eZ cache. Maybe this could give you some answers.

You can disable role cache by putting EnableCaching=false in [RoleSettings] in your site.ini override.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Claudia Kosny

Monday 16 October 2006 11:17:38 am

Hello sai

Hmm - I am not not sure what is happening.
The message about the required functions indicates that your anonymous user does not have permission to access the login page. This is pretty strange because
a) he should not be forced to login at all (if you have requireuserlogin set to false as mentioned in my previous post)
b) the policies you posted before indicate that your anonymous user has the permission to for user/login

So again make sure that the policies you posted are assigned to the anonymous user and that requireuserlogin is set to false for the public siteaccess. Also check whether you use the correct siteaccess. The policies you posted give permission to log into the siteaccess corporate_site. For testing purposes maybe edit this policy so it includes all siteaccesses and then try again. (Please note that this might be unsafe depending on your setup so limit the siteaccess again after the test, if necessary).

If you made any changes whatsoever clear the cache afterwards. To be on the safe side you should also close your browser and reopen it as some user info is stored in the session. Also follow Marko's advice to disable the rolecache for now.

Claudia

Konrad Mazurkiewicz

Monday 16 October 2006 5:13:55 pm

Hello Sai,

You say that "... something up while adding users and editors."

Yesterday i've got the same problem, and this looks like there's no anonymous user.
Maybe you delete anonymous user?
If i've right, create this user and set his id in site.ini

Reinier Kanis

Friday 20 October 2006 8:55:35 am

Greetings everyone here.

I was trying to track down what happened to mine also when I found this thread.

My site was running fine until recently, oddly I was not even using it when it started giving the same error. Worse yet it wont even allow me to log into admin, it wont take my username and password. I checked the sql database and it appears fine, my username and password are there.

Is this possibly a bug? In the previous version that is?

Andrey Astakhov

Wednesday 25 October 2006 2:38:37 pm

Hi Sai,
I had the same problem and it looks like i've solved it. I could try to help you if you are still interested.

Mingxing Chen

Thursday 26 October 2006 9:34:12 am

Hi, sai

Have you solved this problem? And hello to Andre, I'm interested in what you did.
Beacuse it seems that I meet the same error.

Thanks to everybody here.

----------------

mxchen

Shinetech is the leader in next generation global application outsourcing. Shinetech combines world class technical skills, recognized expertise in advanced development methodologies and industry experience to deliver results for global enterprises. Shinetech utilizes distributed Agile methods for rapid and precise systems development.
------------------------------------------------------------------------------------------
Blog: http://www.mingxing.me
Email: chenmx@shinetechchina.com