- Merge request !1Issue #3302062: Notice: "Undefined index: view_mode" & "Undefined variable: noTokenMessage" → (Closed) created by Amacado
Notice: Undefined index: view_mode in Drupal\mapbox_field\Plugin\Field\FieldWidget\MapboxWidget::create() (line 53 of modules\contrib\mapbox_field\src\Plugin\Field\FieldWidget\MapboxWidget.php).
Drupal\mapbox_field\Plugin\Field\FieldWidget\MapboxWidget::create(Object, Array, 'mapbox_widget', Array) (Line: 122)
Notice: Undefined variable: noTokenMessage in Drupal\mapbox_field\Plugin\Field\FieldWidget\MapboxWidget->formElement() (line 220 of modules\contrib\mapbox_field\src\Plugin\Field\FieldWidget\MapboxWidget.php).
Drupal\mapbox_field\Plugin\Field\FieldWidget\MapboxWidget->formElement(Object, 0, Array, Array, Object) (Line: 353)
1. Install and enable module
2. Create a field with type "Mapbox"
3. You'll see the notice on the "edit" page as well as on the data entry page where this field is used
Fix the undefined index notices.
Fixed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.