Doesn't support entity_browser v2.6

Created on 3 September 2021, almost 3 years ago
Updated 3 January 2024, 6 months ago

Problem/Motivation

Error appears if used with entity_browser module.
Too few arguments to function Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget::__construct(), 5 passed in /var/www/html/docroot/modules/contrib/widget_engine/modules/widget_engine_entity_form/src/Plugin/Field/FieldWidget/WidgetEngineEntityReferenceBrowserWidget.php on line 55 and exactly 10 expected in Drupal\entity_browser\Plugin\Field\FieldWidget\EntityReferenceBrowserWidget->__construct()

Steps to reproduce

Enable entity_browser widget v^2.5
Enable widget_engine.

Proposed resolution

Added lost dependencies.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Detal

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡·πŸ‡΄Romania zoltanb

    Now we have a similar issue due to the dependency logic changes in entity_browser v2.10:

    The website encountered an unexpected error. Please try again later.
    Error: Call to a member function getStorage() on null in Drupal\widget_engine_entity_form\Plugin\Field\FieldWidget\WidgetEngineEntityReferenceBrowserWidget->formElementEntities() (line 571 of modules/contrib/widget_engine/modules/widget_engine_entity_form/src/Plugin/Field/FieldWidget/WidgetEngineEntityReferenceBrowserWidget.php).

    Checked on:
    entity_browser: 2.10
    widget_engine: 1.5

    Projects extending the same class had this problem, like https://git.drupalcode.org/project/crop_image/-/commit/9e45ae6621bd45552...

    I've attached a patch.

Production build 0.69.0 2024