Closed (won't fix)
Project:
Node import
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2008 at 16:00 UTC
Updated:
25 Mar 2011 at 17:42 UTC
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
Comment #1
cangeceiro commentedI 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) {
Comment #2
emlomar1 commentedSame problem here but your solution is not working for me... :(
Comment #3
Robrecht Jacques commented5.x is no longer supported. If you have the same issue with the 6.x branch please reopen.
Comment #4
chien_fu commentedI'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.