|
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.
|