#815 Can't locate object method "get_ip_address"


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. ;-)


  • Martin

    Martin - 2010-06-26

    Changed priority to 9 because this is a show stopper. ;)

  • Sven

    Sven - 2010-07-05

    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... ;-)

  • Chris Larsen

    Chris Larsen - 2010-07-06

    Hi Ya'll, could you tell me what version of the geoip CITY and regular Geo IP databases you are using? Thanks!

  • Martin

    Martin - 2010-07-06

    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.

  • Laurent Destailleur (Eldy)

    Do you knwo wich version of geoip runtime you use ?

  • Laurent Destailleur (Eldy)

    Added/Fixed in CVS tree. Will be available in next version.

  • Laurent Destailleur (Eldy)

  • Laurent Destailleur (Eldy)

    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
  • Laurent Destailleur (Eldy)

    • status: open --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks