Logmonster v3.01 and webalizer Use of uninitialized value

Started by David Pierron, February 13, 2007, 12:08:29 AM

Previous topic - Next topic

David Pierron

When using webalizer in "feed_the_machine" the cron email throws the following:

Use of uninitialized value in string eq at /usr/local/lib/perl5/site_perl/5.8.8/Apache/Logmonster.pm line 466.

I don't know perl.

Seems to me that the string it would be referring to is $interval and that's set on line 423 of feed_the_machine

Regardless of this error, seems everybody is doing their job.  But cron email shows errors only, not the normal hit counts and logmonster processing.

I am running on a machine with 2 vhosts and this error is in the email repeated 4 times.
David Pierron
http://www.icuhost.net" target="_blank">http://www.icuhost.net


Oh pooh, and I should have read this before releasing v3.02. Here's a diff for you that fixes it:

$ svn diff lib/Apache/Logmonster.pm
Index: lib/Apache/Logmonster.pm
--- lib/Apache/Logmonster.pm    (revision 539)
+++ lib/Apache/Logmonster.pm    (working copy)
@@ -422,7 +422,7 @@
     my $debug       = $self->{'debug'};
     my $conf        = $self->{'conf'};
     my $REPORT      = $self->{'report'};
-    my $interval    = $self->{'rotational_interval'};
+    my $interval    = $self->{'rotation_interval'};

        my ($cmd, $r);