When address field integration is enabled in geolocation field widget settings on form display settings page, the following error is thrown:
Notice: Trying to access array offset on value of type null in geolocation_address_field_widget_third_party_settings_form() (line 138 of modules/contrib/geolocation/modules/geolocation_address/geolocation_address.module).

This seems to be an issue in PHP 7.4+. Earlier versions should not be affected as PHP 7.4 is a bit more strict here.

The patch attached solves the issue for me.

CommentFileSizeAuthor
geofield_adressfield_php74.patch900 bytesextect

Comments

extect created an issue. See original summary.

christianadamski’s picture

I don't know why tests would fail on this. I assume there are similar problems in code somewhere, but testing with PHP 7.4 locally, I found none.

Well, we'll see.

  • extect authored 4a0c2b2 on 8.x-3.x
    Issue #3128046 by extect: Address field integration: Trying to access...
christianadamski’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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