ArgumentCountError: Too few arguments to function Drupal\embed\EmbedType\EmbedTypeBase

Problem:

ArgumentCountError: Too few arguments to function Drupal\embed\EmbedType\EmbedTypeBase::__construct(), 3 passed in web/modules/contrib/entity_embed/src/Plugin/EmbedType/Entity.php on line 56 and exactly 4 expected in Drupal\embed\EmbedType\EmbedTypeBase->__construct() (Zeile 29 in web/modules/contrib/embed/src/EmbedType/EmbedTypeBase.php).

 

Lösung:

File: web/modules/contrib/entity_embed/src/Plugin/EmbedType/Entity.php 

Line 53:

-    $instance = new static($configuration, $plugin_id, $plugin_definition);
+    $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition);

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare