TypeError: Drupal\depcalc\DependentEntityWrapper::__construct(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, bool given

Created on 8 August 2023, over 1 year ago

This is a bug found when used with https://www.drupal.org/project/acquia_contenthub .
After referencing a non-existing media uuid in node in the publisher, when trying to export, it will prompt:

TypeError: Drupal\depcalc\DependentEntityWrapper::__construct(): Argument #1 ($entity) must be of type Drupal\Core\Entity\EntityInterface, bool given, called in /var/www/html/docroot/modules/contrib/depcalc/src/EventSubscriber/DependencyCollector/DrupalMediaEmbedCollector.php on line 84 in Drupal\depcalc\DependentEntityWrapper->__construct() (line 92 of /var/www/html/docroot/modules/contrib/depcalc/src/DependentEntityWrapper.php).

Don't know if this field is universal, but it does have a fatal error.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024