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.
When an Ajax call is made on a page where the Google Maps dynamic formatter is used then I get the following javascript error:
TypeError: settings.geolocationGooglemaps is undefined
in geolocation_googlemaps/geolocation_googlemaps_dynamic_formatter.js
Specifically, I have an Image field on a page where an entity is rendered with the dynamic formatter. When I do the upload I get that error.
I don't know why it works on the initial page load, but the settings variable is supposed to be in Drupal.settings.
Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | javascript_settings-2485465-1.patch | 816 bytes | malberts |
Comments
Comment #1
malberts CreditAttribution: malberts commentedComment #2
malberts CreditAttribution: malberts commentedComment #4
derjochenmeyer CreditAttribution: derjochenmeyer commentedThanks!