The ISO-3166 country code file has moved. Its new address is http://www.iso.org/iso/list-en1-semic-3.txt.

This needs to be changed in the first line of ad_geoip_update_iso3166. If you don't, the next time the module decides that your country codes are too old, it tries to read the old file, fails to detect that it's in the wrong format, and deletes the contents of your country code table.

By the way, a more robust detection of a file in the proper format would be a really good idea!

Comments

jeremy’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

codeelegance’s picture

Title: Country list disappears due to move of the ISO-3166 country code file » Country list no longer available
Version: 5.x-1.1 » 6.x-2.0-rc2
Issue summary: View changes
Status: Closed (fixed) » Active
Issue tags: +iso code

I hate to drag this one up again, but it seems like the ISO organization is no longer providing the ISO lists for free. Regardless of how moronic that decision seems, I guess everyone who relies on that file has to come up with a new source.
Maxmind supplies one here:
http://dev.maxmind.com/static/csv/codes/iso3166.csv

But it's comma separated instead of semicolon. Not sure how much work it would be to switch over, or even if this source will be stable enough to use.
Is it just me, or does this seem like a seriously big deal? Not just for one small Drupal module, but ALL the code out there that relies on that file?

jp.stacey’s picture

@codeelegance it doesn't fix the underlying problem (that ISO have, crazily, removed this text file from their own servers, and therefore nullified the usefulness of it as a standard) but I did find a copy on someone's random github repository: https://raw.githubusercontent.com/vandrijevik/iso3166/master/lib/iso3166... .

I'd recommend that, for the purposes of keeping this D6 module going for the foreseeable future, that the ISO list be hardwired in it.