Entity Embed fails to install after Embed module update

Created on 7 August 2024, 3 months ago
Updated 11 September 2024, 2 months ago

Problem/Motivation

In our CI Pipeline we run composer updates and after the recent release of the Embed module version 8.x-1.8, the Entity Embed module no longer installs. Here is the error message.

Error: ] ArgumentCountError: Too few arguments to function Drupal\embed\EmbedType\EmbedTypeBase::__construct(), 3 passed in /var/www/html/web/modules/contrib/entity_embed/src/Plugin/EmbedType/Entity.php on line 56 and exactly 4 expected in Drupal\embed\EmbedType\EmbedTypeBase->__construct() (line 29 of /var/www/html/web/modules/contrib/embed/src/EmbedType/EmbedTypeBase.php) #0 /var/www/html/web/modules/contrib/entity_embed/src/Plugin/EmbedType/Entity.php(56): Drupal\embed\EmbedType\EmbedTypeBase->__construct(Array, 'entity', Array)

Steps to reproduce

Update the Embed module to latest release then attempt to install Entity Embed.

Proposed resolution

Identify the new fourth parameter needed to construct the EmbedTypeBase class at `Drupal\embed\EmbedType\EmbedTypeBase::__construct()`. Then update the file `entity_embed/src/Plugin/EmbedType/Entity.php` on line 56 with the correct parameters.

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States matthand Riverdale Park, Maryland

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

Comments & Activities

Production build 0.71.5 2024