I just transferred my site to a new server. Now I am getting the following error:
Fatal error: error traversing database - perhaps it is corrupt? in /home/scmsport/public_html/wwwroot/epcstore/includes/geoip.inc on line 416
I downloaded the GeoIP.dat file from the external site and made sure I transferred in Binary. I tried using the old GeoIP.dat file and a new one.
Then I accidentally uploaded the dat file to the old site (which was still working) and now I am getting the same error on that site too.
This is what I have in the geoip.inc file around line 416:
}
if ($ipnum & (1 << $depth)) {
if ($x[1] >= $gi->databaseSegments) {
return $x[1];
}
$offset = $x[1];
} else {
if ($x[0] >= $gi->databaseSegments) {
return $x[0];
}
$offset = $x[0];
}
} trigger_error("error traversing database - perhaps it is corrupt?", E_USER_ERROR);
return false;
}