Forum OpenACS Q&A: how to restore templatting defaults

Collapse
Posted by Ben Koot on
I tried to add spell checking to oacs5 by changing the defaults to 1. End result is that the sytem freezes. Even to an extend that I can't restore to the original setting. Any idea how get things working again? Here's the error message:

Thanks
Ben

________________________________________________________

Request Error
list must have an even number of elements
    while executing
"array set widget_info [string trim [parameter::get_from_package_key  -package_key acs-templating  -parameter SpellcheckFormWidgets  -default ""]]"
    (procedure "template::util::spellcheck::spellcheck_properties" line 20)
    invoked from within
"template::util::spellcheck::spellcheck_properties -element_ref element"
    (procedure "querygetall" line 20)
    invoked from within
"querygetall element"
    (procedure "validate" line 8)
    invoked from within
"validate $form_id $element_id"
    (procedure "template::element::create" line 58)
    invoked from within
"template::element::create parameters __confirmed_p -datatype integer -widget hidden -value 0"
    ("eval" body line 1)
    invoked from within
"eval template::element::$command $form_id $element_id $args"
    (procedure "template::element" line 2)
    invoked from within
"template::element create $form_name __confirmed_p -datatype integer -widget hidden -value 0"
    (procedure "ad_form" line 223)
    invoked from within
"ad_form -name parameters -export {section} -cancel_url $return_url -form {
    {return_url:text(hidden),optional}
    {package_id:integer(hidden),opti..."
    ("uplevel" body line 37)
    invoked from within
"uplevel {
          ad_page_contract {
    Parameters page.

    @author Lars Pind (mailto:lars@collaboraid.biz)
    @creation-date 2003-06-13
    @cvs-id $..."
    (procedure "code::tcl::/var/lib/aolserver/service0/packages/acs-subsite/..." 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 {

    if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
                $handler
            } ad_script_abort val {
                # do nothing
            }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    rp_serve_abstract_file "$root/$path"
    set tcl_url2file([ad_conn url]) [ad_conn file]
    set tcl_url2path_info([ad_conn url]) [ad_conn path_inf..."

--------------------------------------------------------------------------------

mailto:ben@timedesk.nl
AOLserver/4.0 on http://eturbo.blogdns.com

Collapse
Posted by Jade Rubick on
I think you entered something incorrect in the parameters section.
Collapse
Posted by James Harris on
If Jade is correct, then you will need to use manually update values in the  apm_parameter_values table.
Collapse
Posted by Randy O'Meara on
If it's a bum parameter causing your problem, you can override the parameter(s) with the an "override" file like the one discussed in https://openacs.org/forums/message-view?message_id=138725.

This is definitely a little known (at least not well advertised) capability that can save you in a situation like this.