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

CommentFileSizeAuthor
#2 GeoportailMapWidget.patch1.09 KBjigish.addweb

Comments

meshlu created an issue. See original summary.

jigish.addweb’s picture

Status: Active » Needs review
StatusFileSize
new1.09 KB

@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

sznorbee’s picture

Status: Needs review » Fixed
Issue tags: +Quick fix

Thanks @jigish.addweb.

sznorbee’s picture

Status: Fixed » Closed (fixed)