Hello Lourdes Martinez,
Apparently, template::query[1] is being executed somewhere, but not getting the parameters it needs.
1. https://openacs.org/api-doc/proc-view?proc=template%3a%3aquery
Can you provide more information about the error? What page were you accessing to get the error? What steps did you take prior to the error? What were you intending to do or expecting instead of the error?