Problem/Motivation
Not sure, is this a common issue or just in my environment, but I got the following error:
[18-May-2021 10:48:34 America/New_York] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Drupal\bibcite_entity\Normalizer\ReferenceNormalizerBase::__construct(), 2 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 and exactly 4 expected in /var/www/html/web/modules/contrib/bibcite/modules/bibcite_entity/src/Normalizer/ReferenceNormalizerBase.php:126
Stack trace:
#0 /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php(259): Drupal\bibcite_entity\Normalizer\ReferenceNormalizerBase->__construct(Object(Drupal\Core\Entity\EntityManager), Object(Drupal\Core\Config\ConfigFactory))
Running on Drupal core 8.9.14
Steps to reproduce
Updated from 8.x-1.0-alpha10+43-dev to 8.x-1.0-alpha10+59-dev and do a cache rebuild
Proposed resolution
Remove unwanted (and probably will deprecated in D9) arguments
Remaining tasks
-
User interface changes
-
API changes
-
Data model changes
-
Comments
Comment #2
bsztreha commentedComment #4
hxdef commentedHi @bsztreha , thanks for your help
This is probably a problem that is related to your particular environment. The mentioned updates were added for D9 within this issue #3122519: Get an error when trying to install Bibliography & Citation - Entity module on Drupal 9.
Also, as you may notice the patch failed tests for D9.1.3.
Thanks!