----- Original Message ----- From: "Rob Dixon" <[email protected]>
To: <[email protected]>
Cc: "Mike Blezien" <[email protected]>
Sent: Monday, February 14, 2011 10:29 PM
Subject: Re: Unable to determine error source


On 14/02/2011 16:10, Mike Blezien wrote:

I have a script that has been generating a strange error that I can't
seem to find the source. In the script, at the top, we have the
following to help trouble shoot it if any errors:

#!/usr/bin/perl
BEGIN { open (STDERR, ">./scriptname_error.log"); }

In the error_log file it generates we keep seeing the following
error:

Invalid offset:

And that's it. Normally it will indicate the line#, date, detailed
error, etc., like in the apache error_log file. but this is all it
shows. This is a cron script also.

Any ideas or help with this error would be much appreciated.

Searching my own Perl libraries, I find that exactly this error would be
produced by a call to DateTime::TimeZone->new with an undefined value
for the 'name' parameter. My version validates the parameters to the
call and produces a more informative error message, but it is very
likely that you have an earlier version that doesn't do that.

HTH,

Rob

Rob,

yes that was exactly it. finally found it after some extensive digging throught the script.

Thx's

Mike

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to