I added a geofield to exisiting user accounts next to the adress filed with exisitng data. While trying to fill the geofield with geocode data from adresse field i just tried to edit and save one account. The geofield is still empty and this error vode was given after saving the user account:

Notice: Undefined index: value in geocoder_widget_get_field_concat() (Zeile 322 von /var/www/vhosts/famjam.org/httpdocs/sites/all/modules/geocoder/geocoder.widget.inc).

Anybody has an idea?

I use the latest drupal 7 and the latest recommenden geofield and geocoder module.

CommentFileSizeAuthor
#4 geocoder-1815142-4-fix_notice.patch513 bytessimon georges

Comments

jday’s picture

I'm getting the same error, the field used to work....I'm geocoding from an address field

Drupal 7.16
Address Field 7.x-1.0-beta3
Geocoder 7.x-1.2
Geofield 7.x-1.1
geoPHP 7.x-1.6+2-dev (2012-Sep-05)

GeoPHP 1.1 library installed at sites/all/modules/geophp/geoPHP/geoPHP.inc

Breakerandi’s picture

Anybody can help please?!?

mmittelman’s picture

I have fixed the problem by surrounding the offending line with an if statement so it looks like:

if(isset($item['value'])){
    	$concat .= trim($item['value']) . ', ';
}
simon georges’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new513 bytes

Patch provided. Credit goes to mmittelman.

ptmkenny’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm that the patch posted in #4 fixes the error when geocoding from an addressfield. Thanks Simon Georges and mmittelman!

ptmkenny’s picture

EDIT: Ignore duplicate post.

simon georges’s picture

Assigned: Breakerandi » Unassigned
Issue summary: View changes

Unassigning.

simon georges’s picture

Status: Reviewed & tested by the community » Fixed

Damn it, first commit, bad message (wrong issue number).
Anyway, fixed!

Status: Fixed » Closed (fixed)

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