httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] strange things in errorlog, (apache 2.0, Perl CGI)
Date Tue, 06 May 2003 15:27:33 GMT
>-----Original Message-----
>From: paul POULAIN []
>[Fri May 02 17:04:40 2003] [error] [client] Premature end of 
>script headers:, referer: 

This means that the script failed to function as a "proper" CGI program.
That is, it did not output a CGI header before any other data. This
could be because:

- it is not programmed to do so (you need: print "Content-type:
- an error caused it to die or produce output before it got to the
header line.

>If I close the mozilla windows, after 3 or 4 more minuts, the log is 
>suddenly filled with dozens of :
>[Fri May 02 16:56:52 2003] [error] [client] Use of 
>uninitialized value in hash element at 
>/usr/lib/perl5/site_perl/5.8.0/MARC/ line 206., referer: 

You might like to look on line 206 of It will be a
statement in a loop (hence dozens of lines) which is trying to use an
uninitialised variable to lookup a hash. Test your variable with
"defined" before using it.

>Note it occurs only on a runtime error in the module. In case of a 
>compilation error, the error is reported immediatly as previously.
>It's a bug in Koha, but with my previous install (http1.3 from mdk90), 
>The errors where reported immediatly to the error log.
>At the moment, it's pretty unuseable for error tracking !

Well, CGI is not exactly a program debug environment... You're supposed
to get your code working before you put it on the webserver (e.g. from
the command-line). However, if you want to see more output, activate the
"ScriptLog". See the docs for details but one tip: the ScriptLog file
should be owned by the apache "User" and it should exist before you use
it (unlike the other log files which are owned by root and get created
if they don't exist).

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>What happend ?
>Listen 7777
>DocumentRoot /home/paul/
>ScriptAlias /cgi-bin/ /home/httpd/html/
>ErrorLog logs/koha_error.log
>SetEnv PERL5LIB /home/paul/
>Thanks for ideas/suggestions
>Consultant ind├ępendant en logiciels libres
>responsable francophone de koha (SIGB libre
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message