access denied when inserting comments

Author Message

ttkt ttkt

Monday 17 October 2005 8:14:07 pm

hi all,

i have an article whereby guests can view the comments and "Add new comment" button on the bottom of the page.

Guests have to login if he wants to give his comment.

the problem is, after the user logs in, there is an error message:

Access denied
You don't have permission to access this area.

Possible reasons for this is.

Your current user does not have the proper privileges to access this page.
You misspelled some parts of your URL, try changing it.

i have already set the roles to
content create Class( Comment ) , ParentClass( Article )
content read Class( Comment )

may i know if there is something i missed out? thanks.

Nabil Alimi

Tuesday 18 October 2005 2:00:28 am

Hi,

Try to had <b>content edit</b> rights too.

Creating a new object is a thing.

Being able to edit it (filling fields in fact) after creation is one other. :)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

ttkt ttkt

Wednesday 19 October 2005 5:13:36 am

hi, it has been solved, thanks guys.

Christian Johansen

Sunday 13 November 2005 11:41:00 pm

How do you go about to allow an article have comments?

Christian Johansen

Sunday 13 November 2005 11:48:52 pm

ttkt ttkt: I saw that you were asking in another thread how to add comments and now it seems you found out. I am wondering the same thing - did you find some text explaining how to do this?

Gurudutt Verma

Friday 18 November 2005 4:52:08 am

Hi Christian Johansen

If you are using standard eZ publish class then

IF you go to article object, try to edit the object
At the bottom you will see on check box to enable the comment for that object,

Just check that and re publish the object after that it must be possible to add comment to article.

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 19 2025 15:23:01
Script start
Timing: Jan 19 2025 15:23:01
Module start 'layout'
Timing: Jan 19 2025 15:23:01
Module start 'content'
Timing: Jan 19 2025 15:23:02
Module end 'content'
Timing: Jan 19 2025 15:23:02
Script end

Main resources:

Total runtime0.8113 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 589.2734152.6406
Module start 'layout' 0.00410.0022 741.914139.4766
Module start 'content' 0.00640.8037 781.3906640.4922
Module end 'content' 0.81010.0012 1,421.882812.1406
Script end 0.8113  1,434.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00280.3503160.0002
Check MTime0.00120.1475160.0001
Mysql Total
Database connection0.00050.063210.0005
Mysqli_queries0.761793.8818700.0109
Looping result0.00050.0662680.0000
Template Total0.787197.020.3936
Template load0.00170.215520.0009
Template processing0.785496.798620.3927
Template load and register function0.00020.018510.0002
states
state_id_array0.00060.079810.0006
state_identifier_array0.00080.101320.0004
Override
Cache load0.00150.1815350.0000
Sytem overhead
Fetch class attribute can translate value0.00080.098340.0002
Fetch class attribute name0.00090.109480.0001
XML
Image XML parsing0.00120.147740.0003
class_abstraction
Instantiating content class attribute0.00000.001680.0000
General
dbfile0.00190.2371220.0001
String conversion0.00000.000940.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs