Forums / Install & configuration / Cannot enable access without login to my site

Cannot enable access without login to my site

Author Message

Yves Benigot

Tuesday 08 March 2011 2:57:28 am

ezPublish 4.4 on mysql/apache CentOS

new to ezPublish

login is required on home page for siteaccess fre : every access to the home page will require login for accessing the site. I would like to have anonymous access instead.

I checked that RequiredLogin=false after reading posts on the forums

I checked that the anonymous groupe has read content access to "Standard"

I did set up the debug options and I get an interesting trace :

Debug: eZMySQLDB::query(0.000 ms) query number per page:0 Mar 08 2011 10:25:39
SET NAMES 'utf8'
Timing: Mar 08 2011 10:25:39
Module start 'content'
Error: error/view.php Mar 08 2011 10:25:39
Error ocurred using URI: /ezpublish/index.php/
Notice: Mar 08 2011 10:25:39
eZTemplate: Loading template "user/login.tpl" with resource "design"
Warning: Insufficient permissions Mar 08 2011 10:25:39
Function required:  Module : content  Function : read  ClassID : 23  MainNodeID : 2 Policies that didn't match:  PolicyID : p_328   Limitation : Section   Required : 1  PolicyID : p_334   Limitation : Class   Required : 29, 30, 32, 33, 34, 42

Any idea ?

Frédéric DAVID

Tuesday 08 March 2011 3:14:02 am

If you want Anonymous User read your content, you have two policies in your Anonymous Role :

- Anonymous User can login in your fre siteaccess

- Anonymous User can read your content ( Node 2 )

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Yves Benigot

Tuesday 08 March 2011 7:38:01 am

Solved, at least partially :

I deleted the user login in Policy of user anonymous, although I previously thought that the presence of user login enables anonymous access.

This time the warnings disappear, but the login is still required

My current policy is :

Anonymous   content read Section( Standard )
Anonymous   content pdf Section( Standard )
Anonymous   rss feed Pas de limitations
Anonymous   user login SiteAccess( ezwebin_site_clean )
Anonymous   content read Class( Flash , Image , Quicktime , Windows media , Real video , Banner ) , Section( Media )
Anonymous   content read Pas de limitations

Then I add :

user login Pas de limitations

and it works

although I suspect this is not the optimal solution

Frédéric DAVID

Tuesday 08 March 2011 8:37:56 am

Just a little confirmation

when you go on your website, are you sure about your default site ( siteaccess : ezwebin_site_clean ).

To find what siteaccess is taken, you can change siteaccess permission( try each siteaccess ).

If I can see your section SiteAccessSettings

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Yves Benigot

Wednesday 09 March 2011 7:46:19 am

I went to the directory : settings/override to determine the default siteaccess because I didn't find the way to alter the siteaccess rights in the admin section of the eZ 4.4 GUI.

Also at install I imported the corporate template.

I get :

[SiteSettings]

DefaultAccess=fre

SiteList[]=ezwebin_site_clean

SiteList[]=fre

SiteList[]=ezwebin_site_clean_admin

RootNodeDepth=1

SiteName=Ginerativ

MetaDataArray[author]=eZ Systems

MetaDataArray[copyright]=eZ Systems

MetaDataArray[description]=Content ManagementSystem

MetaDataArray[keywords]=cms, publish, e-commerce, content management, development frameworkSiteURL=notus.ginerativ.fr/ezpublish/index.php

eZ debug

Timing: Jan 18 2025 00:05:09
Script start
Timing: Jan 18 2025 00:05:09
Module start 'content'
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 00:05:10
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-c0a31fef795ad927ef08940ddf2d392f.php on line 147
Timing: Jan 18 2025 00:05:10
Module end 'content'
Timing: Jan 18 2025 00:05:10
Script end

Main resources:

Total runtime0.7894 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.0781180.8125
Module start 'content' 0.00620.6535 769.8906630.6719
Module end 'content' 0.65970.1296 1,400.5625341.5547
Script end 0.7893  1,742.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5158210.0002
Check MTime0.00150.1860210.0001
Mysql Total
Database connection0.00070.083210.0007
Mysqli_queries0.650982.46222000.0033
Looping result0.00220.28111980.0000
Template Total0.754895.620.3774
Template load0.00220.273920.0011
Template processing0.752795.350020.3763
Template load and register function0.00020.022310.0002
states
state_id_array0.00090.111710.0009
state_identifier_array0.00110.134720.0005
Override
Cache load0.00250.32161460.0000
Sytem overhead
Fetch class attribute can translate value0.00190.245430.0006
Fetch class attribute name0.00100.126160.0002
XML
Image XML parsing0.00090.107930.0003
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00400.5116270.0001
String conversion0.00000.001030.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
21content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
17content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
6content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
20content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
17content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
8content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 103
 Number of unique templates used: 11

Time used to render debug report: 0.0002 secs