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

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 02:54:43
Script start
Timing: Jan 18 2025 02:54:43
Module start 'layout'
Timing: Jan 18 2025 02:54:43
Module start 'content'
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Warning: PHP: E_DEPRECATED Jan 18 2025 02:54:44
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-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Timing: Jan 18 2025 02:54:44
Module end 'content'
Timing: Jan 18 2025 02:54:44
Script end

Main resources:

Total runtime0.7360 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1641152.6563
Module start 'layout' 0.00500.0029 740.820339.5156
Module start 'content' 0.00790.7264 780.3359625.5625
Module end 'content' 0.73430.0016 1,405.898420.3203
Script end 0.7359  1,426.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4830160.0002
Check MTime0.00160.2142160.0001
Mysql Total
Database connection0.00070.090910.0007
Mysqli_queries0.612983.2782630.0097
Looping result0.00110.1461610.0000
Template Total0.709396.420.3546
Template load0.00240.326520.0012
Template processing0.706896.040720.3534
Template load and register function0.00040.058010.0004
states
state_id_array0.00070.098510.0007
state_identifier_array0.00100.129120.0005
Override
Cache load0.00270.36221460.0000
Sytem overhead
Fetch class attribute can translate value0.00050.065020.0002
Fetch class attribute name0.00110.145560.0002
XML
Image XML parsing0.00180.238220.0009
class_abstraction
Instantiating content class attribute0.00000.002070.0000
General
dbfile0.00200.2743160.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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