Last update: 2008-03-01
If you think sex is a pain in the ass, you're doing it wrong
- Anonymous
:: ADDONS
AddonDoc2 1.1
ChangeDateNew 3.5.6
Chmod 0.2
CopyNews 0.4
CustomFields 1.0
EasyEdit 1.0.1
EmptyProfile 0.6.1
FieldIncluder 1.0
Filter By Field 2.1
Full Profile Build 1.0
IsNewValue 0.1
Link Validator 1.3
Maginot Columns 0.3
Maginot Line Build 17
Modify News : Missing Subject 0.1.2
Multipart 1.59
NewFiles 1.1
NewsCounter 0.4
NumericNewsID 0.2
Prisoner's Dilemma build 2
Profile Numeric Filter 0.1.2
QueryFetcher 0.2
Random News 1.2
Search And Replace 1.0
ShadowMail 2.2
Snipper 1.0.1
SortOrders 2.3
Style Debugger 0.2
Top Bottom News Fields 0.1
X Multisubmit 2.4.3
 
:: DOCUMENTS
Weberver & Perl Errors
 
:: SUPPORT ME
If you have found my guidance here or in the Coranto forums helpfull or is using one of my addons and liked it here is your chance to materially support and encourage me to spend time helping others and keep developing existing and future addons to Coranto. Please note that this is a donation and not payment, what I do with my free time is up to me!

:: SUPPORTERS
Eduardo Pedreño
Ken Edwards (mavmesa)
Audioholics.com
Jesse Walden
Michio Takagi
CORANTO // DOCUMENTATION
:. Premature end of script headers: /some/path/to/coranto.cgi 2004-07-17

In order for a webpage to be translated correctly by the browser it must supply a header stating what kind of document it is, usally it looks something like this in the script when that line is printed out:

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


And this line tend to be placed very early in scripts so if you get this error it often indicates that the script isn´t running at all. Some things to verify are correct is:

• The shebang line (the first line in the script) – Is the path to Perl correct?
In case of doubt, ask your host what the path should be.
• chmod setting – Make sure the webserver has the privilege to execute the script.
Some servers must have 700, others 755, ask your host in case of doubt.
• BIN/ASCII mode – If not uploaded correctly the script may not be executed.

If these things are correct and you still don´t get things to work, you can try and include this, on a line of its own, just after the shebang line

use CGI::Carp qw(fatalsToBrowser);


Depending on if your webserver allows this the real error message should now appear in your browser when directing it towards the script. But since it shows up for both you and everyone else, fix the problem it indicates and then remove (or comment out) this line again so you don´t give away server informations accidently.

If you still can´t figure out why you receive this message post a message in the forum, stating that you have read this document and explain what measures you have taken thus far to pinpoint the problem.

Tell a friend   Print article   Comment this one!   Parahead
1 visitor online Valid HTML 4.01!   Valid CSS! © copyright 2003 Henrik Ahlén
Design based on Stylish by MVS
Content powered by Coranto