Recoverable fatal error

Created on 23 January 2017, over 8 years ago
Updated 19 August 2025, about 2 months ago

Hello,
When I try using the module, I receive following errors (beta3):

Entity browser 8.x-1.0-beta3
Recoverable fatal error: Argument 1 passed  to  Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal::displayEntityBrowser()  must be of the type array, none given, called in  /modules/entity_browser/src/Plugin/Field/FieldWidget/EntityReference.php  on line 341 and defined in Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal->displayEntityBrowser() (line 31 of /modules/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php).

Recoverable fatal error: Argument 2 passed to Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal::displayEntityBrowser() must implement interface Drupal\Core\Form\FormStateInterface, none given, called in /modules/entity_browser/src/Plugin/Field/FieldWidget/EntityReference.php on line 341 and defined in Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal->displayEntityBrowser() (line 31 of /modules/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php).

Recoverable fatal error: Argument 3 passed to Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal::displayEntityBrowser() must be of the type array, none given, called in /modules/entity_browser/src/Plugin/Field/FieldWidget/EntityReference.php on line 341 and defined in Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal->displayEntityBrowser() (line 31 of /modules/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php).

Notice: Undefined variable: element in Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal->displayEntityBrowser() (line 32 of //modules/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php).
Notice: Undefined variable: form_state in Drupal\entity_browser\Plugin\EntityBrowser\Display\Modal->displayEntityBrowser() (line 49 of /modules/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php).

on beta4, there is no error messages but it does not work at all:
1) I can not select an image
2) When using the field, I can not save the node

Regards.

💬 Support request
Status

Closed: outdated

Component

Miscellaneous

Created by

🇦🇪United Arab Emirates beautifulmind Dubai

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.

Production build 0.71.5 2024