1

Right now I'm running into an error "Call to undefined function geoip_open()" on one of the lines of my files.

The line is

$geoip = geoip_open(Mage::getBaseDir('lib').DS.'MaxMind/GeoIP/data/'.Mage::getStoreConfig('onepagecheckout/geo_ip/city_file'),GEOIP_STANDARD);

So I have the file inside of lib/MaxMind/GeoIP/data and it throws this error. Is this because it's not finding the file? Or some other issue with GeoIP?

1
  • 4
    This question appears to be off-topic because it is about MaxMind GeoIP. Commented Nov 12, 2014 at 7:56

1 Answer 1

1

geoip_open is not a core php function therefore it must be define/included before you can call/use it.

Take a look at Fatal error call to undefined function geoip_open()

include("include/geoip.inc");

$gi = geoip_open("include/GeoIP.dat", GEOIP_STANDARD);

Not the answer you're looking for? Browse other questions tagged or ask your own question.