Forum OpenACS Q&A: General Comments Create Link Problems

Collapse
Posted by Roger To on
Hi All,

I've been trying to use the general comments package to create a link in order to attach comments to some of my items. However i've come across an error that i have no idea about.

The following is the error message that has been outputted

no value given for parameter "key" to "_"
    while executing
"_ general-comments.Add_a_comment_to"
    invoked from within
"set page_title "[_ general-comments.Add_a_comment_to]: $object_name""
    ("uplevel" body line 41)
    invoked from within
"uplevel {
          # /packages/general-comments/www/comment-add.tcl

ad_page_contract {
    Displays a form for adding a commment to a page

    @author..."
    (procedure "code::tcl::/web/netlondon/packages/general-comments/www/comm..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

I've also tried to use the link provided in the news package to create a comment and i have received the same error.

I have used the following lines to create the variable to display in the adp page

    set comment_link [general_comments_create_link $entry_id "[ad_conn package_url]reference-view?entry_id=$entry_id&category_id=$category_id"]

    set comments [general_comments_get_comments -print_content_p 1 -print_attachments_p 1 \
        $entry_id "[ad_conn package_url]reference-view?entry_id=$entry_id&category_id=$category_id"]

however i believe that i may be missing a component or have not installed something required by the general comments package but am not sure as to what.

Could anyone help with this problem?

Cheers