I am trying to use this module with location module as per README.txt. But when ever I am creative node, I am getting 4 errors & then when I check my vocab, I am finding empty terms created.

Notice: Undefined index: province in location_taxonomize_make_longname() (line 318 of /home/$BASE_FOLDER/sites/all/modules/location_taxonomize/location_taxonomize.module).
Notice: Trying to get property of non-object in _find_term() (line 250 of /home/$BASE_FOLDER/sites/all/modules/location_taxonomize/location_taxonomize.module).
Notice: Undefined index: province in location_taxonomize_make_longname() (line 318 of /home/$BASE_FOLDER/sites/all/modules/location_taxonomize/location_taxonomize.module).
Notice: Undefined index: city in location_taxonomize_make_longname() (line 324 of /home/$BASE_FOLDER/sites/all/modules/location_taxonomize/location_taxonomize.module).
CommentFileSizeAuthor
#1 property_non_object-2144313-1.patch7.21 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Created a patch for integration with addressfield, and attempt to prevent instances of the error happening (with the old code), as well as updating _find_term() to do some checking so it won't raise errors.

ptmkenny’s picture

Status: Active » Needs review
Related issues: +#1496496: Notice: "Trying to get property of non-object"