Skip to main content

Working in Drupal admin, going to a content type > manage form display and I'm seeing the following error

Fatal error: Declaration of Drupal\entity_reference_views\Plugin\Field\FieldWidget\Select2ViewsWidget::defaultSettings() must be compatible with Drupal\select2\Plugin\Field\FieldWidget\Select2EntityReferenceWidget::defaultSettings(): array in /app/web/modules/contrib/entity_reference_views/src/Plugin/Field/FieldWidget/Select2ViewsWidget.php on line 28

This error relates to two specific contrib modules:

Entity Reference Views - https://www.drupal.org/project/entity_reference_views

Select2 - https://www.drupal.org/project/select2

 

Versions

Module Version Release Date
Entity Reference Views    
Select2 8.x-1.14 22nd November 2022
  8.x-1.13 1st March 2021