Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I got the following notice:
Notice: Undefined index: administrative_area in _addressfield_render_address() (line 252 of /profiles/commerce_kickstart/modules/contrib/addressfield/addressfield.module).
Notice: Undefined index: administrative_area in _addressfield_render_address() (line 253 of /profiles/commerce_kickstart/modules/contrib/addressfield/addressfield.module).
I tested these versions:
- 7.x-1.0-beta5
- 7.x-1.x-dev
Comment | File | Size | Author |
---|---|---|---|
#1 | addressfield-2199717-undefinated_index-1.patch | 650 bytes | segi |
Comments
Comment #1
segi CreditAttribution: segi commentedI attached the patch.
Comment #2
segi CreditAttribution: segi commentedComment #3
Perignon CreditAttribution: Perignon commentedPatch works.
Comment #4
xurizaemonMarking duplicate of #1997572: Undefined index in _addressfield_render_address() line 223 which also addresses this issue, and checks a couple of additional cases not handled by the patch above.