I am trying to import Users, and I have added a Location field in the profile, to be able to map and import locations field from the source (address, municipality, province ... ecc.).

No way ... I cannot see/choose any location field available for the target fields of the User.

I am working with:
Location 7.x-3.x-dev
Feeds 7.x-2.x-dev
Location Feeds 7.x-1.4

Any other experiencing this? any fix, patch or workaround?

Thanks for any support ...

Comments

xbery’s picture

Yep. I have solved this by visiting admin/config/people/accounts where I hit save. I assume that this is cause by this code:

else if ($entity_type == 'user') {
$settings = variable_get('location_settings_user', array());

// Only add fields when collecting locations
if (isset($settings['multiple']['max']) && $settings['multiple']['max'] > 0) {
_location_feeds_location($targets, $settings);
}
}

starting on line 43 of the location_feeds.module. I guess that the location_settings_user variable is not initialized during installation. Can someone correct me if I am wrong?