Conflict with webprofiler

Created on 25 February 2020, over 4 years ago
Updated 16 February 2023, almost 2 years ago

Problem

Conflict with Devel Webprofiler:

TypeError: Argument 1 passed to Drupal\flat_taxonomy\Flattener::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /var/www/html/sites/symbios/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 269 in Drupal\flat_taxonomy\Flattener->__construct() (line 36 of modules/contrib/flat_taxonomy/src/Flattener.php).

Proposed solution

In Flattener.php: use Drupal\Core\Entity\EntityTypeManagerInterface instead of Drupal\Core\Entity\EntityTypeManager.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium GlarDup

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