- Issue created by @myLies
- Status changed to Needs review
10 months ago 4:31pm 5 February 2024 - Status changed to Fixed
10 months ago 7:36pm 5 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.
Whenever user attempts to save a content with suitable geofield and Geocoder Geofield sub-module enabled it gives a WSOD
- Enable Geocoder Geofield
- Provide geofield at node type
- Provide some value at the field and save a content
After investigation there been find out that at geocoder_field_entity_presave hook implementation script attempts to use a FieldItemList field instance as a string directly:
$default_values = $entity->get($field_name);
if (isset($geocoder['skip_not_empty_value']) && $geocoder['skip_not_empty_value'] && strlen($default_values) !== 0) {
Proposed solution is to use $default_values->getString()
Fixed
4.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.