Forum OpenACS Q&A: "bad level" problem

Collapse
Posted by Ania D on
I'm getting such message when I try to display acs-templating page (this error sometimes appears, sometimes not)

ADP error:
bad level "#5"
    while executing
"upvar #5 __adp_global_properties __adp_global_properties"
    ("uplevel" body line 1)
    invoked from within
"uplevel 1 upvar \#$glevel $upvars"
    (procedure "template::adp_global" line 12)
    invoked from within
"template::adp_global __adp_global_properties"
    (procedure "template::adp_parse" line 11)
    invoked from within
(..)

I will appreciate if someone could help me.

Ann D.

Collapse
Posted by Don Baccus on
You're going to have to give us a solid example for us to be able to help.  This simply tells us that the nesting level for templates is being computed incorrectly, and without seeing some code I can't tell if it is because of something you're doing, or if you've found a bug in our code.