Re: Print recent CGI error

2010-12-04 Thread Gnarlodious
After many curse words I figured it out. A two-stage filter was needed. The 5th line solves the problem of colliding domain cookies: NowCookie=http.cookies.SimpleCookie() # Instantiate a SimpleCookie object savedCookie=os.environ.get('HTTP_COOKIE') # get the cookie string if savedCookie: # Alread

Re: Print recent CGI error

2010-12-04 Thread MRAB
On 04/12/2010 21:13, Gnarlodious wrote: What you posted doesn't work, I don't know why. All I get is a blank page and no Apache error report. There are two problems with this. I am really trying to figure out how to trap an error on the server without exposing my innards to the world, which impo

Re: Print recent CGI error

2010-12-04 Thread Gnarlodious
What you posted doesn't work, I don't know why. All I get is a blank page and no Apache error report. There are two problems with this. I am really trying to figure out how to trap an error on the server without exposing my innards to the world, which import cgitb; cgitb.enable() does. The other p

Re: Print recent CGI error

2010-12-04 Thread MRAB
On 04/12/2010 18:33, Gnarlodious wrote: I have a serious error that causes the process to crash. Apache refuses to log the error and it only happens on the server, not on the dev machine. Problem is, I can't figure out how to get the most recent error. I can find all sorts of pages telling how to

Re: Print recent CGI error

2010-12-04 Thread Dan Stromberg
I've sometimes got similar situations in CGI, that turned out to be because of a syntax error that kept apache from being able to run the script. What if you just run the script at the command line? It should either error out due to lack of a CGI environment/arguments, but hopefully it'll give yo

Print recent CGI error

2010-12-04 Thread Gnarlodious
I have a serious error that causes the process to crash. Apache refuses to log the error and it only happens on the server, not on the dev machine. Problem is, I can't figure out how to get the most recent error. I can find all sorts of pages telling how to print a specific error, but how to get an