InvalidArgumentException: Invalid values given. Values must be represented as an associative array.

Created on 13 June 2024, 7 months ago
Updated 15 September 2024, 3 months ago

Problem/Motivation

Getting the following error:
InvalidArgumentException: Invalid values given. Values must be represented as an associative array. in Drupal\Core\TypedData\Plugin\DataType\Map->setValue() (line 80 of core/lib/Drupal/Core/TypedData/Plugin/DataType/Map.php).

Steps to reproduce

- Create a new content type for any photo/image file.
- Enable Geolocation 8.x.3.13
- Use Leaflet/OpenStreetMaps as provider.
- On the content type Display view modes, Enable Full Content.
- Under the Geolocation field, select Display Formatter Map
- Fill in as the Marker Title and Market fields tokens values i.e [node:title] - [geolocation_current_item:lat], [geolocation_current_item:lng]
- Save changes.
- Go to the node page. The error triggers.
- Deleting the tokens from the Marker fields allows the node to be displayed.

Testing on a fresh Drupal 10.2.7 + Geolocation 8.x.1.3 (installed via Composer). See screenshots for more reference.

🐛 Bug report
Status

Postponed: needs info

Version

3.13

Component

Leaflet API

Created by

🇪🇨Ecuador andres.torres

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024