Pecl GeoIP and archive.php error

Piwik is designed to work w/ the GeoIP PECL module located here: http://pecl.php.net/package/geoip[/url], not the one at [url=https://github.com/Zakay/geoip]https://github.com/Zakay/geoip. That one seems to add some missing functions that Piwik is not aware of.

This doesn’t mean you can’t use it, though. In geoip.inc, you can surround the geoip_country_code_by_addr function with the following code:


if (!function_exists('geoip_country_code_by_addr')) {
...
}

and the error will go away. You may have to do this for more than one function depending on exactly what GitHub - Zakay/geoip: A more complete fork of PECL MaxMind geoip extension adds.