Occasionally my web site delivers the "Internal Server Error" web page rather than delivering the output of the appropriate Perl script. This tends to happen after the page has been reloaded a few times, but there doesn't seem to be much consistency in when it fails. When it does fail (ie. deliver the Internal Server Error message), then an entry like the following appears in Apache's error.log file:
[Fri Sep 3 02:08:02 2004] [error] Undefined subroutine &Apache::ROOT::index_2ecgi
::header called at /var/www/index.cgi line 6.\n
"index_2ecgi" presumable refers to "index.cgi", which is the page requested.
"header" is the name of a subroutine called on line 6 of index.cgi.
I have no idea why callilng the header subroutine is problematic sometimes and not others. Any suggestions as to how I can continue to debug this problem would be appreciated. If your willing to take a look at the web site, this is the address: http://metagloss.gotdns.com
. After clicking on a couple of links or reloading a few times the failure usually occurs.
Thanks for your help.