Bug #23094 See Comments

IP2Nation binary format broken?

Version: 3.5.2 Reporter: Jace Richardson

This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report

This is a fresh install of IP2Nation. The ip_range_low and ip_range_high columns are VARBINARY 16.

Updating the IP2Nation data from MaxMind appears to jumble the data. I have downloaded the data independently using the URLs the IP2Nation code reference and they appear to be correct and uncorrupted.

In /system/ee/EllisLab/Addons/ip_to_nation/models/ip_to_nation_data.php I commented out the $this->to_binary($data[0]) (and index 1) in favor of just the raw $data[0] (and index 1) on lines 160-161 and that seems to insert the data properly.

Here is a screenshot of regular (left) and hacked (right). You can also see there is a discrepancy in the number of rows that get saved.

https://www.dropbox.com/s/sd1mhn1tffcagrx/ip2nation.png?dl=0

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases