When showing the node add form with a geoportail widget, I get this PHP error:
Error: Unsupported operand types in Drupal\geoportail_map\Plugin\Field\FieldWidget\GeoportailMapWidget->formElement() (line 93 of /is/htdocs/wp10974929_EH1FDL10HV/mesh.lu/www/modules/geofield_geoportailmap/src/Plugin/Field/FieldWidget/GeoportailMapWidget.php) #0 /is/htdocs/wp10974929_EH1FDL10HV/mesh.lu/www/core/lib/Drupal/Core/Field/WidgetBase.php(335): Drupal\geoportail_map\Plugin\Field\FieldWidget\GeoportailMapWidget->formElement(Object(Drupal\Core\Field\FieldItemList), 0, Array, Array, Object(Drupal\Core\Form\FormState)) #1
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | GeoportailMapWidget.patch | 1.09 KB | jigish.addweb |
Comments
Comment #2
jigish.addweb commented@meshlu, I got the same error because of "Unsupported operand types error given in formElement function in GeoportailMapWidget.php".
To resolve I've updated element array in formElement function in GeoportailMapWidget.php.
Kindly review it & Let me know if you are facing any further issues.
Thanks
Comment #3
sznorbee commentedThanks @jigish.addweb.
Comment #4
sznorbee commented