Hi. I have a question that's been bothering me for quite a while. I'm running the app Bugzilla on an Apache server. If you're not familiar with Bugzilla, it's a web based tool that lets you track bugs in a software application (using Perl/CGI and the mySQL database). When my users try to search the bugs using the Perl/CGI interface, they select their search parameters and press submit. The query either goes through cleanly with no problems at all, or they are given a 500 Internal Server Error. If they just press Refresh, the page will generate correctly 99% of the time with the correct query results. The other 1% they have to press Refresh one or two more times, but it will always come back with the correct results. I've had them clear their cache numerous times and am at my wit's end. I don't know what could be causing the Internal Server Error, and why it works by just refreshing the page. This has been most frustrating for them, and moreso for me since I can't explain it.
Here are the errors that I see in the error log when I get the 500 Internal Server Error:
[Mon Oct 21 08:04:14 2002] [error] [client 172.26.21.54] Premature end
+ of script headers: /usr/local/bugzilla-2.14.1/buglist.cgi
[Mon Oct 21 08:04:17 2002] [error] [client 172.26.21.54] Premature end
+ of script headers: /usr/local/bugzilla-2.14.1/buglist.cgi
As you can tell, Refresh was pressed twice for this one. :) I'm familiar with the "Premature end of script headers" error, and I've looked at the code to make sure it's always printing out the "Content-type: text/html" header with two line breaks afterwards. This is done before any printing to the screen is done. And like I said, if I refresh it usually comes back ok.
Any ideas?
Thanks,
Trent
2002-10-28 Edit by Corion : Added code tags