Forum OpenACS Development: Error page messages

Collapse
Posted by Iuri Sampaio on
How do i recognize from what page the error comes from?

wrong # args: should be "set varName ?newValue?"
while compiling
"set url / #set url [subsite::get_element -element url]"
("if" then script line 2)
while compiling
"if { [ad_conn isconnected] } {
set url / #set url [subsite::get_element -element url]
} else {
set url /
}"
(compiling body of proc "ad_get_logout_url", line 3)
invoked from within
"ad_get_logout_url"
invoked from within
"if { $untrusted_user_id != 0 } {
set user_name [person::name -person_id $untrusted_user_id]
set pvt_home_url [ad_pvt_home]
set pvt_home_na..."
("uplevel" body line 140)
invoked from within
"uplevel {
# Expects properties:
# title
# focus
# header_stuff
# section

if { ![info exists section] } {
set section {}
}

if { ![info ex..."
(procedure "code::tcl::/home/yabt/yabt/www/site-master-yabt" 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 $__adp_master [concat [list __adp_slave $__adp_output] [array get __adp_properties]]"
(procedure "template::adp_parse" line 91)
invoked from within
"template::adp_parse $__adp_master [concat [list __adp_slave $__adp_output] [array get __adp_properties]]"
(procedure "template::adp_parse" line 91)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
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..."

Collapse
2: Re: Error page messages (response to 1)
Posted by Malte Sussdorff on
The error comes from the first "invoked from within"

invoked from within "ad_get_logout_url"

so look for your procedure ad_get_logout_url, if you modified it.

And the call to this seems to be in /home/yabt/yabt/www/site-master-yabt

Collapse
Posted by Iuri Sampaio on
thanks Malte,
you made me look at the proc
i went to api doc and search for it

it's on acs-tcl/tcl/security-procs.tcl
it's fixed and working fine

thanks a lot