Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Weird error log message

by Nik
on Jun 09, 2009 at 17:50 UTC ( #770028=note: print w/ replies, xml ) Need Help??


in reply to Re: Weird error log message
in thread Weird error log message

Thank you ikegami, now tis clear to me what the server error log mean and really i didnt knew up until now that iam supposed to specify custom error logs, i though server was setup in a way to provide fixed error messages.

As for the Carp module i'm already using it in all my perl files, including index.pl, so i dont have to log to cpanel every time to check the error log.

it seems to me though that the runtime of index.pl never reaches the stage of carp module. which is my 2nd line in row, because if it did i would get a proper perl error message. So i still dont see why iam gettign these error messages, which as you say are safe to ignore, and why my script dies instanly without some king of perl error message.

When something like this happened to me *locally* it was because i didnt had a proper shebang constructor, sicne iam on a vista machine, because i uplaod to a unix one. When i fixex that it worked and gave me perl error messages, but in this case the shebang constructo is correct, so then why it aint producing perl error messages? Does the script try to run at all? anf if yes why die instantly?


Comment on Re^2: Weird error log message
Re^3: Weird error log message
by ikegami (Pope) on Jun 09, 2009 at 18:41 UTC

    As for the Carp module i'm already using it in all my perl files, including index.pl, so i dont have to log to cpanel every time to check the error log.

    Carp is a different module. I'm assuming you mean CGI::Carp and more specifically, its fatalsToBrowser functionality.

    it seems to me though that the runtime of index.pl never reaches the stage of carp module.

    use statements are executed as soon as they are compiled, so the "runtime of index.pl" is moot.

    So i still dont see why iam gettign these error messages, which as you say are safe to ignore,

    Because the browser was told to look for those files and they don't exist.

    so then why it aint producing perl error messages? Does the script try to run at all?

    All I know is that your browser isn't logging everything it should. It should have logged an error message even if your script had died instantly (saying it couldn't find the CGI headers).

      All I know is that your browser isn't logging everything it should. It should have logged an error message even if your script had died instantly (saying it couldn't find the CGI headers).

      Yes with Carp(short) i mean CGI::Carp qw/FatalsToBrowser/
      Perl is up and running ok in remote host just checkes again so i cant think of anything on why it doesnt work by means of producing human perl error messages. error_log doesn't help and support aint also

      i tried the simplest test cgi script with just a print "hello world!"; t see if ti runs and still get the same page missing errors which leaves me clueless as to what the real problem is. Server as i said run Perl ok though as it states in up ad runnign services.

      So what now? what can i do? iam willing to give access credentials to any of you if you want to see something i dont. I must upload the web page to remote server, locally it does work.

        print "hello world!" is not a valid CGI script. Assuming the web server even knows that should be executed using perl (due to the absence of a shebang line), it does not generate output in the format required by CGI.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://770028]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-07-28 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (210 votes), past polls