TypeError: Cannot access offset of type string on string in Drupal\geofield\Plugin\Field\FieldWidget\GeofieldLatLonWidget->massageFormValues()

Created on 27 September 2023, about 1 year ago
Updated 2 October 2023, about 1 year ago

Problem/Motivation

I have a node, with a geofield (latitude/longitude widget), where the saved value is not in a latitude/longitude format.
Which results in the following textarea with a message:

When I save the node, I get the following error:

TypeError: Cannot access offset of type string on string in Drupal\geofield\Plugin\Field\FieldWidget\GeofieldLatLonWidget->massageFormValues()

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium JeroenT 🇧🇪

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

Comments & Activities

Production build 0.71.5 2024