Forum Moderators: coopster & phranque

Message Too Old, No Replies

Premature end of script headers HELP!

I have error to run my site

         

MarceloPG

8:55 pm on Jan 7, 2005 (gmt 0)

10+ Year Member



Hi, I will appreciate some help with my site, when I try to run somes .cgi files it appear this error, I'm new in this, so please explain me in plain language.

Thanks!
Marcelo

[Fri Jan 7 14:42:31 2005] [error] [client 64.136.26.227] File does not exist: /home/rematemo/public_html/biddingstop.css
[Fri Jan 7 14:42:30 2005] [error] [client 64.136.26.227] Premature end of script headers: /home/rematemo/public_html/cgi-bin/auction/ssi-galleryhome.cgi
[Fri Jan 7 14:42:30 2005] [error] [client 64.136.26.227] Premature end of script headers: /home/rematemo/public_html/cgi-bin/auction/ssi-featured.cgi
[Fri Jan 7 14:42:30 2005] [error] [client 64.136.26.227] Premature end of script headers: /home/rematemo/public_html/cgi-bin/auction/stats.cgi
[Fri Jan 7 14:42:30 2005] [error] [client 64.136.26.227] Premature end of script headers: /home/rematemo/public_html/cgi-bin/auction/catlist.cgi

IanKelley

1:41 am on Jan 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Premature end of headers can mean a wide variety of things, especially with a perl script.

Your best bet is to contact the script vendor and have them install the scripts for you instead of trying to do it yourself.

rocknbil

3:35 am on Jan 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you can get to your error logs, you can run the script from the command line. Telnet/SSH in to your server, get in the directory of the script, type perl scriptname.cgi and watch what happens, it may give you a clue.

VectorJ

2:40 am on Jan 9, 2005 (gmt 0)

10+ Year Member



99% of the time, "premature end of script headers" means that the script is throwing an error and sending output before the client browser has gotten the "Content-type: text/html\n\n" header. Try running the cgi from the command line to see the errors, or just put the line

print "Content-type: text/html\n\n"

at the start of the script so that the errors will print out to the browser window.