Forums / Developer / New Language - EZ ask login to see content

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.

eZ debug

Timing: Jan 18 2025 16:00:45
Script start
Timing: Jan 18 2025 16:00:45
Module start 'content'
Timing: Jan 18 2025 16:00:46
Module end 'content'
Timing: Jan 18 2025 16:00:46
Script end

Main resources:

Total runtime0.7825 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.9609180.8125
Module start 'content' 0.00760.6453 769.7734519.1563
Module end 'content' 0.65290.1295 1,288.9297334.0938
Script end 0.7825  1,623.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5532210.0002
Check MTime0.00160.2101210.0001
Mysql Total
Database connection0.00060.078510.0006
Mysqli_queries0.717491.67691990.0036
Looping result0.00190.23761970.0000
Template Total0.749995.820.3750
Template load0.00230.289420.0011
Template processing0.747795.544620.3738
Template load and register function0.00010.011910.0001
states
state_id_array0.00120.150510.0012
state_identifier_array0.00130.170520.0007
Override
Cache load0.00190.2461260.0001
Sytem overhead
Fetch class attribute can translate value0.00220.277040.0005
Fetch class attribute name0.00080.102940.0002
XML
Image XML parsing0.00070.087740.0002
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00350.4468210.0002
String conversion0.00000.001430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs