New Language - EZ ask login to see content

Author Message

Lisa Pini

Wednesday 18 June 2008 8:10:11 am

Hi,

I have tried to add to my site a new lenguage (French)

When i try to see site contents in French (not in the administration page), I get this error:
<b>Access denied
You do not have permission to access this area</b>

Is it a policy problem?

I read this page from the technical manual:
http://ez.no/doc/ez_publish/technical_manual/4_0/features/multi_language/language_based_permissions
but the permission seems to be apply on <i>edit</i> or <i>create</i>, not on <i>read</i>

Thanks - Lisa

Laurent BOURREL

Wednesday 18 June 2008 8:57:50 am

Hi,

I think you should add the content/login(<yoursiteaccess>) policy to the anonymous role.

HTH...

Lisa Pini

Thursday 19 June 2008 1:45:54 am

Thanks,
now it works perfectly.

Lisa

A Fowler

Thursday 06 August 2009 7:10:55 pm

Thank you. This seemed so simple and yet non-obvious of a fix for my problem as well.

For anyone else who has this problem, here is what I saw. First, I needed to change the name of the site, because our company name changed. This involved changing the name of the siteaccess, the custom design folder, the database name, and much, much more. I even exported the database and used 'sed' to replace all occurrences of the old name with the new name. I thought that should take care of it. I made sure, with 'grep', that no occurrences of the old name existed anywhere in the filesystem, as well.

But then, the anonymous role could no longer access the site. I could still see the site if I logged in as Administrator, and I could see the back-end. But any other user, or anonymous (not logged in) would get an error on all pages. The error was "kernel(1)" (Access denied).

Finally after digging around, and finding this thread, I noticed that the Anonymous role had a suspicious policy: "user login SiteAccess( )" (that is, no site access was specified). I guess the old siteaccess name didn't get replaced in that policy for some reason. Adding the new siteaccess name brought everything back into harmony.

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

eZ debug

Timing: Jan 18 2025 19:09:14
Script start
Timing: Jan 18 2025 19:09:14
Module start 'layout'
Timing: Jan 18 2025 19:09:14
Module start 'content'
Timing: Jan 18 2025 19:09:14
Module end 'content'
Timing: Jan 18 2025 19:09:14
Script end

Main resources:

Total runtime0.0160 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.1797152.6406
Module start 'layout' 0.00630.0035 741.820339.4766
Module start 'content' 0.00980.0043 781.296989.2578
Module end 'content' 0.01410.0019 870.554734.3047
Script end 0.0160  904.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.7602140.0002
Check MTime0.00127.2008140.0001
Mysql Total
Database connection0.00106.321310.0010
Mysqli_queries0.003421.282430.0011
Looping result0.00000.081810.0000
Template Total0.00159.510.0015
Template load0.00095.572810.0009
Template processing0.00063.944910.0006
Override
Cache load0.00064.013310.0006
General
dbfile0.00021.351280.0000
String conversion0.00000.043240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs