Forum OpenACS Q&A: Re: tDOM-related startup error

Collapse
Posted by Bruno Mattarollo on

Just for the record, the exact error information is:

[10/Sep/2003:17:13:32][4262.1074082976][-main-] Notice: tcl: generating interp init script
[10/Sep/2003:17:13:32][4262.1074082976][-main-] Error: no value given for parameter "subcommand" to "info"
no value given for parameter "subcommand" to "info"
    while executing
"info vars"
    (in namespace eval "::dom::domNode" script line 4)
    invoked from within
"namespace eval $n {
        set n [namespace current]
        set script ""
        foreach v [info vars] {
            switch $v {
                n -
                v -
                import_procs -
                s..."
    (procedure "_ns_getnamespace" line 2)
    invoked from within
"_ns_getnamespace $ns"
    (procedure "_ns_getinit" line 7)
    invoked from within
"_ns_getinit"
[10/Sep/2003:17:13:32][4262.1074082976][-main-] Fatal: tclinit: failed to copy procs
and from there the whole AOLServer halts.

Collapse
Posted by Bruno Mattarollo on
Ok, for the record as well, I removed the tdom.tcl file from aolserver/modules/tcl/ ... and it works now ... The post from Baart was confusing in that sense. Installing now and we shall see.
Collapse
Posted by Bart Teeuwisse on
Bruno,

the error is the result of a namespace ambiguity. tDOM introduced
another 'info' command. The call to 'info' in tdom.tcl calls the
standard Tcl 'info' command, rather than the 'info' command in the
domNode or domDoc namespaces.

The solution is to amend the calls causing the error in tdom.tcl with
the domNode or domDoc namespace. E.g. info becomes domNode::info or
domDoc::info.

tdom.tcl is not required to use tDOM but does add several higher level
functions to the tdom API that could be of use. As far as I know, none
of these functions are currently used in OpenACS. But the might be
needed in the future.

/Bart