jcpunk has asked for the wisdom of the Perl Monks concerning the following question:

I have got an app using CGI::Carp, but lately (for about the last 10 minutes) it has been tacking the following onto the bottom of every script.

Software error:

For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.

[Wed Apr 21 16:36:08 2004] index.cgi
I am certian that the unknown error is comming from the library that the program uses, but with that much information I don't know where to start looking.

I know that it is the library as I was just working in there fixing things and the functional problems are gone now, but this remains.... the program runs just fine - no errors, but this gets placed on after every thing runs through.
where should I start looking to fix this (please don't recomend the code I was working on as I made about 200 or so changes and I am doing that as I await your insite in hopes that you will have a faster way of approaching this problem).


jcpunk
all code is tested, and doesn't work so there :p (varient on common PM sig for my own ammusment)

Replies are listed 'Best First'.
Re: CGI::Carp outputting error: no error?
by shemp (Deacon) on Apr 21, 2004 at 22:02 UTC
    Sometimes i like to add this line to the start of my CGI's to help track down weird things:
    *STDERR = *STDOUT;
    Which redirects STDERR to STDOUT.

    But, be careful that no STDERR gets written until you have sent a proper response header, i.e. CGI::header()
      THANKS! I was doing something stupid and passing scalars to a function in the wrong order. problem solved!

      jcpunk
      all code is tested, and doesn't work so there :p (varient on common PM sig for my own ammusment)
Re: CGI::Carp outputting error: no error?
by blue_cowdawg (Monsignor) on Apr 21, 2004 at 21:48 UTC

        I am certian that the unknown error is comming from the library that the program uses, but with that much information I don't know where to start looking.

    My instincts tell me that this is a problem where your CGI isn't even compiling and crashing. Check the server logs for complaints there.

Re: CGI::Carp outputting error: no error?
by ysth (Canon) on Apr 21, 2004 at 21:55 UTC
    Have you tried asking the site's webmaster? (Just kidding.)

    The bit about "giving this error message and the time and date" make me think whatever it is is trying to log more information somewhere; have a poke round for error logs.

    Perhaps there's some kind of warning trap triggered by one of your changes generating a warning where there was not one before?