Hi,

When I run this code to show a web page (or any code that shows a web page):

ns_log Notice "TEST"
set data "<html>                                                                
                                        
<head>                                                                          
                                        
<title>Server 14</title>                                                        
                                        
</head>                                                                         
                                        
<body>                                                                          
                                        
<h1>Server 14</h1>                                                              
                                        
</body>                                                                         
                                        
</html>                                                                         
                                        
"

ns_return 200 text/html "$data"



I get this error:

[22/Aug/2011:08:49:49][9181.3056597920][-conn:272-] Notice: TEST
[22/Aug/2011:08:49:49][9181.3056597920][-conn:272-] Error: Tcl exception:
can't read "errorPage": no such variable
   while executing
"if { $errorPage == "" } {
           return -code $code  -errorcode $errorCode -errorinfo $errorInfo 
$result
       } else {
           ## Custom error page -- unfortun..."
   (procedure "ns_sourceproc" line 28)
   invoked from within
"ns_sourceproc cns6144 {}"
[22/Aug/2011:08:51:49][9181.3056597920][-conn:272-] Notice: exiting: timeout 
waiting for connection


I am running AOLserver 4.5.0 with Tcl 8.4

Can anyone point me in the right direction on this?

Thanks,

Thorpe

Thorpe Mayes
tma...@ecognizant.com
405.514.9753


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to