Forum OpenACS Development: ad_form request error

Collapse
Posted by Barry Books on
I installed 5.000b4 a couple of days ago and now I'm having trouble with ad_form. I get this request error on several forms, for example all the config parameters under site_map. I don't think it was doing this when I first installed. As usual I don't think I changed anything. I'm trying to find the code but the for loop looks generated to me. Any hints?
invalid command name "i"
    while executing
"i"
    ("for" body line 144)
    invoked from within
"for { set __d18_i 1 } { $__d18_i <= ${elements:rowcount}  } { incr __d18_i } {
    upvar 0 elements:$__d18_i elements
  
if {! ([template::util::is_ni..."
    ("uplevel" body line 11)
    invoked from within
"uplevel {
          set __adp_output ""
append __adp_output "<table cellspacing=\"2\" cellpadding=\"2\" border=\"0\">
  "


  if {[info exists elements]}..."
    (procedure "template::code::adp::/web/acs/packages/acs-templating/resour..." line 2)
    invoked from within
"template::code::adp::$file_stub"
    (procedure "template" line 46)
    invoked from within
"template $id $style"
    (procedure "template::form::generate" line 2)
    invoked from within
"template::form::generate parameters"
    ("eval" body line 1)
    invoked from within
"eval template::form::$command $args"
    (procedure "template::form" line 2)
    invoked from within
"template::form generate parameters "
    invoked from within
"if {"[ad_quotehtml ${counter}]" > "0"} {
set form:id "parameters"

    upvar 0 "parameters:properties" form_properties

      set form_properties(head..."
    ("uplevel" body line 8)
    invoked from within
"uplevel {
          set __adp_output ""

    set __adp_master [template::util::url_to_file "[ad_parameter -package_id [ad_conn subsite_id] DefaultMaster ..."
    (procedure "template::code::adp::/web/acs/packages/acs-subsite/www/share..." line 2)
    invoked from within
"template::code::${template_extension}::$__adp_stub"
    (procedure "template::adp_parse" line 68)
    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..."
Collapse
2: Re: ad_form request error (response to 1)
Posted by Jade Rubick on
See:

https://openacs.org/forums/message-view?message_id=133637

Have we got ad_form security right?

Collapse
3: Re: ad_form request error (response to 1)
Posted by Don Baccus on
This looks like a problem in the standard form template not ad_form per se ...
Collapse
4: Re: ad_form request error (response to 1)
Posted by Barry Books on
I did find the table tag in the standard template. I suspect that's what's doing it but it appears to work for some forms at least. I may reinstall and see if that fixes it.