Andrew Fletcher published: 29 November 2022 1 minute read
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 |
Related articles
Andrew Fletcher
•
07 May 2024
Understanding and resolving a Drupal render array error
Dealing with errors in Drupal development is a common occurrence, and understanding how to interpret and resolve them is essential for smooth development workflows. In this article, we'll delve into a specific error message related to render arrays in Drupal and discuss steps to diagnose and fix the...
Andrew Fletcher
•
05 May 2024
Best practices for configuring Twig debug settings in Drupal 10
Alright, picture this: you're knee-deep in Drupal 10 development, churning out code like a pro. But hold up, what's this? Twig debug mode is still on in production? Cue the headaches. Suddenly, your beautifully crafted HTML is drowning in unnecessary output, and innocent contact form responses are...
Andrew Fletcher
•
04 May 2024
TypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string
I'm getting the following errorTypeError: Cannot assign null to property Drupal\views\Plugin\views\argument\ArgumentPluginBase::$operator of type string in Drupal\views\Plugin\views\argument\ArgumentPluginBase->unpackArgumentValue() (line 1302 of...