But they're now fixed ;)
Problem was that the imported file had countries with no geonameid. The new postal_load_countries checks for that.

Comments

barraponto’s picture

StatusFileSize
new3.02 KB

wrote a buggy patch, now it works properly.

wylbur’s picture

Title: Installation throws lots of errors » import states/provinces generates errors

Applied the patch and tested an import of sates/provinces. Using Drupal 6.20 and Postal 6.x-1.0.

Import of US states added all US states to postal database as entries.
Import of Denmark states added 5 states, Capital Region, Central Jutland, North Jutland, South Denmark, Zealand.
Import of Antartica failed:
warning: Invalid argument supplied for foreach() in C:\sites\lupino\drupal\sites\lupino.us\modules\postal\includes\postal.admin.inc on line 136.
Import of Austrian states added 9 entries
Import of Australia generated error:
warning: Invalid argument supplied for foreach() in C:\sites\lupino\drupal\sites\lupino.us\modules\postal\includes\postal.admin.inc on line 136.

barraponto’s picture

Title: import states/provinces generates errors » import countries generates errors

The issues on install happened while the countries were imported. These errors are now fixed. Importing states and provinces will need further debugging, and I need to take a look at it to make Brazilian states work.

bochenn’s picture

Hi @barraponto, I don't know how to use the patch file, can you publish an updated version of the module with the issues fixed?

Thanks

barraponto’s picture

@bochenn: http://drupal.org/patch/apply explains the whole patching process.
i have posted a patched version of the module here https://github.com/barraponto/postal (but it is still bugged)