Forum OpenACS Q&A: Re: feedreader

Collapse
7: Re: feedreader (response to 1)
Posted by Esti Alvarez on
From the logs, I get this message for subscription to new feeds:

 Notice: Error parsing RSS feed: invalid command name "na_get_elements"

I've tried copying the procedure from an older version, this is the source:

ad_proc -public na_get_elements {
     nodes
     match
 } {
     set matches [list]
     foreach node_id $nodes {
         if { [string equal $match [xml_node_get_name $node_id]] } {
             lappend matches $node_id
         } else {
             #set children [ns_xml node children $node_id]
             set children [xml_node_get_children $node_id]
             if { [llength $children] > 0 } {
                 set matches [concat $matches [na_get_elements $children $match]]
             }
         }
     }
     return $matches
}

But then I get:

invalid switch: "-no_format"
    while executing
"string_truncate__arg_parser"
    (procedure "string_truncate" line 1)
    invoked from within
"string_truncate -len 245 -no_format -- [lindex $channel 0]"
    (procedure "na_add_source" line 7)
    invoked from within
"na_add_source $feed_url $user_id $package_id :key"
...

I'm probably using an older version of acs-tcl package (string_truncate is defined in that package), but news-aggregator didn't ask me to upgrade when installing it. I think news-aggregator.info should have some information of what version of acs-tcl it requires.