Index: openacs-4/packages/new-portal/tcl/portal-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/new-portal/tcl/portal-procs.tcl,v diff -u -r1.193.2.6 -r1.193.2.7 --- openacs-4/packages/new-portal/tcl/portal-procs.tcl 6 Feb 2017 16:11:52 -0000 1.193.2.6 +++ openacs-4/packages/new-portal/tcl/portal-procs.tcl 13 Feb 2017 10:57:30 -0000 1.193.2.7 @@ -1678,25 +1678,27 @@ -datasource_name $element(ds_name) \ $element(datasource_id) \ "Show" \ - [list [array get config]] - ]\ - } \ - errmsg \ - ] \ - } { - ns_log error "*** portal::evaluate_element callback Error! ***\n\n $errmsg\n\n$::errorInfo\n\n url = '[ad_conn url]' \n config='[array get config]'\n" - # ad_return_complaint 1 "*** portal::render_element show callback Error! ***

$errmsg\n\n" - - set element(content) "You have found a bug in our code.

Please notify the webmaster and include the following text. Thank You.

*** portal::evaluate_element callback Error! ***\n\n $errmsg
\n\n" - + [list [array get config]]] + } errmsg ]} { + set errorCode $::errorCode + set errorInfo $::errorInfo + set element(content) "" + if {[ad_exception $errorCode] eq "ad_script_abort"} { + #ad_log notice "*** portal::evaluate_element callback ended with script_abort" + } else { + ad_log error "*** portal::evaluate_element callback Error! *** errormsg: $errmsg\n$errorInfo, config='[array get config]'\n" + append element(content) "You have found a bug in our code. " \ + "

Please notify the webmaster and include the following text. Thank You." \ + "

*** portal::evaluate_element callback Error! ***\n\n $errmsg
\n\n" + } } # trim the element's content set element(content) [string trim $element(content)] # We use the actual pretty name from the DB (ben) # FIXME: this is not as good as it should be - if {$element(ds_name) == $element(pretty_name)} { + if {$element(ds_name) eq $element(pretty_name)} { set element(name) \ [datasource_call \