Module gives an error while installing after web profiler installed.

Created on 2 June 2022, about 2 years ago
Updated 9 May 2023, about 1 year ago

Problem/Motivation

Module gives an error while installation as TypeError: Argument 2 passed to Drupal\views_dynamic_entity_row\Plugin\Derivative\ViewsDynamicEntityRow::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /app/modules/contrib/views_dynamic_entity_row/src/Plugin/Derivative/ViewsDynamicEntityRow.php on line 52 in Drupal\views_dynamic_entity_row\Plugin\Derivative\ViewsDynamicEntityRow->__construct() (line 37 of modules/contrib/views_dynamic_entity_row/src/Plugin/Derivative/ViewsDynamicEntityRow.php).

This error occurs only when the web profiler module is installed previously.

Steps to reproduce

  • Install module webprofiler.
  • Then try to install Views Dynamic Entity Row.
  • Now it showing this error.

Proposed resolution

Don't use EntityTypeManager Insted use EntityTypeManagerInterfae

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇮🇳India Meeni_Dhobale

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.69.0 2024