problem with my new section

Author Message

justin kazadi

Tuesday 08 April 2008 1:21:26 am

Hello all,

I have add a new section on my ez publish installation its id is 8. I had assigned it to a subtree ( whicth contains subitems ) but when a do :

- fetch(content,list,hash(parent_node_id,node_id)) to display all subitems nothing are displayed .

-on click on a bond of subitems (who belong to that subtree ) i have an error like access denied (i must log into to see the content of this node).
i don't anderstand this behavior bacause i don't assign to my subtree a restricted section.

thanks in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Carlos Revillo

Tuesday 08 April 2008 2:45:19 am

Hi. By default, eZpublish restrict access to new sections you create. So if you have assigned this sections to a subtree, this could be the reason of that access denied error.

I would try to give anomymous role access to the section you have created.
I think this will solve your problem.

justin kazadi

Tuesday 08 April 2008 3:59:12 am

Thanks Carlos Revillo ,

I have anderstand what you said but i don't know how to give anomymous role

access to the section .

Can you explain me how to do this .

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Xavier Gouley

Tuesday 08 April 2008 5:09:20 am

Hi again,

I forgot this detail.

Go to the Admin interface, "Setup" tab, and then "Role and policies" on the left menu.
For anonymous role, on the same line, you have a small pen on the right: click on it to edit role.

Now, you may see a line with "Content" and "Read" policy : edit it (with the pen on the right).
You will have a select list : with CTRL key pressed, add your section.

Click "Ok" twice to validate your change. You may clear cache also...

Good luck !

Xavier Gouley
http://www.gxapplications.com/eng_blog/GX-Admin-s-Blog/

justin kazadi

Wednesday 09 April 2008 6:30:40 am

hi ,

thanks ,

but i don't see the add section button ( i have seen just add node and add subtree). for this i have select my section and click ok. Now the subitems of the node on witch i assign my section are displayed correctly .

by

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

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 20 2025 20:08:25
Script start
Timing: Jan 20 2025 20:08:25
Module start 'layout'
Timing: Jan 20 2025 20:08:25
Module start 'content'
Timing: Jan 20 2025 20:08:25
Module end 'content'
Timing: Jan 20 2025 20:08:25
Script end

Main resources:

Total runtime0.0152 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.0048 589.8125151.2109
Module start 'layout' 0.00480.0028 741.023436.6484
Module start 'content' 0.00770.0059 777.671994.1406
Module end 'content' 0.01360.0015 871.812537.9922
Script end 0.0151  909.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.5117140.0002
Check MTime0.00106.6045140.0001
Mysql Total
Database connection0.00074.668110.0007
Mysqli_queries0.002717.753030.0009
Looping result0.00000.091210.0000
Template Total0.00127.710.0012
Template load0.00096.210010.0009
Template processing0.00021.417710.0002
Override
Cache load0.00074.416610.0007
General
dbfile0.00106.551180.0001
String conversion0.00000.051940.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