From: Derek M. <de...@ti...> - 2001-02-23 18:30:13
|
I thought that this was fixed with a patch to version 3.2. I think you can fix this in the lib/counter.tcl file by by making sure you initialise cgihits. From my counter.tcl file # These are simple counters about each kind of connection event foreach c {accepts sockets connections urlreply keepalive connclose http1.0 http1.1 cgihits} { counter::init $c } Derek > -----Original Message----- > From: tcl...@li... > [mailto:tcl...@li...]On Behalf Of dlb > Sent: Friday, February 23, 2001 11:14 AM > To: tcl...@li... > Subject: [Tclhttpd-users] ?? cgi error > > > I've just set up tclhttpd3.2 from the most recent > distribution available on > sourceforge and , when testing the CGI examples provided, I'm > running into the > following errors. > This is on a win98 , the standard library (tcllib 0.7) is installed. > > for instance when attempting to 'dump the environment' I get. > > Tcl-Webserver/3.2.0 October 12, 2000 > Tcl version 8.3.0 > error info = > can't use empty string as operand of "+" > while executing > "expr {$counter(total) + $delta}" > (procedure "counter::count" line 3) > invoked from within > "counter::count $what $delta" > (procedure "Count" line 5) > invoked from within > "Count cgihits" > (procedure "CgiSpawn" line 26) > invoked from within > "CgiSpawn $sock $path" > . > .etc.. > . > > the error is the same for all of the tests I've done. > Any advice ? > > thanks > David > > > > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > http://lists.sourceforge.net/lists/listinfo/tclhttpd-users |