After enabling webprofiler module i got this error:

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Drupal\elasticsearch_helper_content\Plugin\Normalizer\ElasticsearchContentNormalizer::__construct() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 301 and defined in /web/modules/contrib/elasticsearch_helper/modules/elasticsearch_helper_content/src/Plugin/Normalizer/ElasticsearchContentNormalizer.php:103
Stack trace:
#0 /web/core/lib/Drupal/Component/DependencyInjection/Container.php(301): Drupal\elasticsearch_helper_content\Plugin\Normalizer\ElasticsearchContentNormalizer->__construct(Object(Drupal\Core\Entity\EntityManager), Object(Drupal\webprofiler\Entity\EntityManagerWrapper), Object(Drupal\webprofiler\Config\ConfigFactoryWrapper), Obje in /web/modules/contrib/elasticsearch_helper/modules/elasticsearch_helper_content/src/Plugin/Normalizer/ElasticsearchContentNormalizer.php on line 103
CommentFileSizeAuthor
#2 3116938-2.patch3.13 KBmitrpaka

Comments

nickolaj created an issue. See original summary.

mitrpaka’s picture

Status: Active » Needs review
StatusFileSize
new3.13 KB

Thanks for reporting this. Was able to reproduce it.

Please find patch file attached for the fix.

  • 1443af5 committed on 8.x-6.x
    Issue #3116938 by nickolaj, mitrpaka: Fix uncaught TypeError in...
martins.bertins’s picture

Status: Needs review » Fixed

  • 4eeff99 committed on 8.x-7.x
    Issue #3116938 by nickolaj, mitrpaka: Fix uncaught TypeError in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.