I get this error in Apache error.log when trying to watch the statistics in the browser. The statistics page is not fully shown, the output breaks at the IP list.
Here's what in error.log:
[Sat Jun 26 15:04:53 2010] [error] [client x.x.x.x] Can't locate object method "get_ip_address" via package "Geo::IP" at plugins/geoip.pm line 250., referer: http://www.domain.tld/awstats/awstats.pl?config=www.domain.tld
[Sat Jun 26 15:16:25 2010] [error] [client x.x.x.x] Can't locate object method "get_ip_address" via package "Geo::IP" at plugins/geoip_city_maxmind.pm line 4927., referer: http://www.domain.tld/awstats/awstats.pl?config=www.domain.tld
I replaced geoip.pm and geoip_city_maxmind.pm with the old versions from AWStats 6.95, but this for sure cannot be the solution. ;-)
Changed priority to 9 because this is a show stopper. ;)
Confirmed - same issue here on Debian Lenny - exact same lines as Martin sees.
Exchanging files helped - thanks for the idea, did not have it on my own... ;-)
Hi Ya'll, could you tell me what version of the geoip CITY and regular Geo IP databases you are using? Thanks!
Program version:
C-API: GeoIP-1.4.6
Perl: Geo-IP-1.38
DB:
Monthly updated from:
http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
http://geolite.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
Currently active:
me@myserver:/usr/local/share/GeoIP# strings GeoIP.dat | grep MaxMind
GEO-106FREE 20090201 Build 1 Copyright (c) 2007 MaxMind LLC All Rights Reserved
me@myserver:/usr/local/share/GeoIP# strings GeoIPASNum.dat | grep MaxMind
GEO-117 20100601 Build 1 Copyright (c) 2010 MaxMind Inc All Rights Reserved
me@myserver:/usr/local/share/GeoIP# strings GeoLiteCity.dat | grep MaxMind
GEO-533LITE 20100601 Build 1 Copyright (c) 2010 MaxMind Inc All Rights Reserved
geoip is version 1.4.7~beta5+dfsg-1 (Debian). Perl geoip is 1.38-1, Perl geoipfree is 1.101650-1. GeoIP.dat and GeoLiteCity.dat are dated June/02/2010.
Do you knwo wich version of geoip runtime you use ?
Added/Fixed in CVS tree. Will be available in next version.
I can't find anywhere into awstats code usage of function get_ip_address with 7.0 version. So i think this is fixed.
Fixed for 7.1
Last edit: Laurent Destailleur (Eldy) 2012-10-17