tags 512373 patch thanks Simple WA is just comment out "use warnings" in /usr/share/perl5/Geo/IPfree.pm ;-)
It looks, the problem is in handling arguments of the new() method in IPfree.pm. Try attached patch. On Tue, Mar 03, 2009 at 09:58:40AM +0100, Enrique Garcia wrote: > With libgeo-ipfree-perl version 0.5-1 everything is still the same. > Is there any workaround to solve this bug? Cron sends a report almost every > time. > > Subject: Cron <www-d...@machine> [ -x /usr/lib/cgi-bin/awstats.pl -a -f > /etc/awstats/awstats.conf -a -r /var/log/apache2/access.log ] && > /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null > > Message: Use of uninitialized value $_[0] in pattern match (m//) at > /usr/share/perl5/Geo/IPfree.pm line 81.
--- /usr/share/awstats/plugins/geoipfree.pm 2009-03-03 14:59:31.000000000 +0300 +++ geoipfree.pm 2009-03-03 14:52:57.000000000 +0300 @@ -51,7 +51,7 @@ # ENTER HERE CODE TO DO INIT PLUGIN ACTIONS debug(" Plugin geoipfree: InitParams=$InitParams",1); %TmpDomainLookup=(); - $gi = Geo::IPfree::new(); + $gi = Geo::IPfree->new(); # $gi->Faster; # Do not enable Faster as the Memoize module is rarely available # ----->