View Full Version : Premature Header


Jonathan
05-04-2004, 08:16 PM
I am getting this:

[Tue May 4 19:12:34 2004] [error] [client] File does not exist: /home/freedom/public_html/500.shtml
[Tue May 4 19:12:34 2004] [error] [client] Premature end of script headers: /home/freedom/public_html/cgi-bin/messenger/messenger.cgi


Ideas?

Jafo
05-04-2004, 08:43 PM
It could be a million different things.

Could be you uploaded in Binary or Auto mode.

Could be you did not set the permissions correctly.

Do you have access to your server logs?

You may get a better error message if you add this line right after the path to perl in messenger.cgi:


use CGI::Carp qw(fatalsToBrowser);

Jonathan
05-04-2004, 09:42 PM
Wow, thanks... I got the software working, but now it is giving me this:

Software error:
syntax error at messenger.cgi line 2451, near "if ($form{'ORIG_SCHED'} ne ""
Execution of messenger.cgi aborted due to compilation errors.

Jafo
05-04-2004, 11:27 PM
You need to reupload a fresh copy of messenger.cgi, it would seem either your upload was corrupted or uploaded in Auto or Binary mode.

Jafo
05-05-2004, 04:51 PM
Jonathan, Any luck?

Jonathan
05-05-2004, 07:03 PM
sorry, still not working... same error

Jafo
05-05-2004, 09:09 PM
What FTP program are you using? And what text editor are you using?

Jonathan
05-05-2004, 10:19 PM
I have tried it with WSFTP_LE, FileZilla, CoreFTP, and my webserver FTP manager.

Jafo
05-06-2004, 02:37 PM
What are you using for a text editor?

Jonathan
05-06-2004, 03:03 PM
sorry about that, I am using ConTEXT

Jafo
05-06-2004, 03:06 PM
Ok, let me recommend this text editor:

http://liquidninja.com/metapad/

Use a fresh copy of messenger.cgi and upload in ASCII mode using Ws_FTP. I cannot stress any higher that if you use Auto or Binary mode with your FTP program, you WILL get errors.

Jonathan
05-08-2004, 05:17 PM
Exellent, that made my day, I got to download something and you helpted me get it working... Thanks!