I was initially having issues with location fields not showing up which has been reported here in several threads. I have since resolved this. and now I can import, but after mapping my address and zip fields, neither came thru in the final import. I am also getting this error after submitting the field mappings, which i believe is related. "warning: Invalid argument supplied for foreach() in /var/www/www2/drupal/modules/location/location.module on line 1701." And I am using Location 5.x-3.0-rc1"

Comments

cangeceiro’s picture

Status: Active » Needs review

I have found the bug in this problem. Edit location.inc and on line 73 comment out:
$workflow = variable_get('location_'. $field .'_'. $node->type, $field == 'country' ? 1 : 0);
and add
$workflow = 1;

so you should end up with
foreach ((array)location_field_names() as $field => $fieldname) {
#$workflow = variable_get('location_'. $field .'_'. $node->type, $field == 'country' ? 1 : 0);
$workflow = 1;
switch ($workflow) {

emlomar1’s picture

Same problem here but your solution is not working for me... :(

Robrecht Jacques’s picture

Status: Needs review » Closed (won't fix)

5.x is no longer supported. If you have the same issue with the 6.x branch please reopen.

chien_fu’s picture

Version: 5.x-1.x-dev » 6.x-1.1

I'm having this issue with d6.20. I get to the preview page and it looks to bring in the street, city and postal code field, but drops the state field.