Forum OpenACS Q&A: Re: Project Manager Package problem

Collapse
Posted by Odelon Miranda on
thanks jade, below are the errors the i got when editing a task.

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

can't set "column_value": variable is array
    while executing
"set column_value [ns_set value $selection $i]"
    ("while" body line 12)
    invoked from within
"while { [db_getrow $db $selection] } {
            incr counter
            if { [info exists array_val] } {
                unset array_val
        ..."
    ("uplevel" body line 5)
    invoked from within
"uplevel 1 $code_block "
    invoked from within
"db_with_handle -dbn $dbn db {
        set selection [db_exec select $db $full_statement_name $sql]

        set counter 0
        while { [db_getrow $..."
    (procedure "db_foreach" line 36)
    invoked from within
"db_foreach get_old_tasks { } {

        set task_title_arr($i)          $task_title
        set description_arr($i)        $description
        set e..."
    invoked from within
"if {![ad_form_new_p -key task_id]} {

    set i 1

    db_foreach get_old_tasks { } {

        set task_title_arr($i)          $task_title
        set..."
    ("uplevel" body line 246)
    invoked from within
"uplevel {
          set debug 0

if {[string equal $debug 1]} {
    ns_log notice task add edit page
    set mypage [ns_getform]
    if {[string equal ""..."
    (procedure "code::tcl::/var/lib/aolserver/nmi/packages/project-manager/w..." 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..."