Missing parameters fatal error

Created on 3 December 2021, about 3 years ago
Updated 17 October 2023, over 1 year ago

Problem/Motivation

Module causes fatal error in Drupal 9 context.

PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function Drupal\Core\Entity\EntityRepository::__construct(), 2 passed in /app/patchmodules/light_saml_idp/src/Entity/ServiceProviderRepository.php on line 29 and exactly 3 expected in /app/htdocs/core/lib/Drupal/Core/Entity/EntityRepository.php:47
Stack trace:
#0 /app/patchmodules/light_saml_idp/src/Entity/ServiceProviderRepository.php(29): Drupal\Core\Entity\EntityRepository->__construct(Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\language\ConfigurableLanguageManager))
#1 /app/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(262): Drupal\light_saml_idp\Entity\ServiceProviderRepository->__construct(Object(Drupal\Core\Entity\EntityTypeManager), Object(Drupal\language\ConfigurableLanguageManager))
#2 /app/htdocs/core/lib/Drupal/Component/DependencyInjection/Container.php(176): Drupal\Component\DependencyInjection\Container->createService(Array, 'entity.service_...')
#3 /app/htdocs/core/lib/Drupal/Component/DependencyInjection/Co in /app/htdocs/core/lib/Drupal/Core/Entity/EntityRepository.php on line 47

Steps to reproduce

Install module.

Proposed resolution

Inject necessary services.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇳🇱Netherlands johankleene Helmond

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