Drupal\smart_date_recur\Plugin\QueueWorker\RecurRuleUpdate::__construct(): Argument #1 ($entityTypeManager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, array given

Created on 28 April 2024, 8 months ago
Updated 12 May 2024, 7 months ago

Problem/Motivation

Looks like the constructor of RecurRuleUpdate is broken, it throws this exception when initialized:

TypeError: Drupal\smart_date_recur\Plugin\QueueWorker\RecurRuleUpdate::__construct(): Argument #1 ($entityTypeManager) must be of type Drupal\Core\Entity\EntityTypeManagerInterface, array given, called in /var/www/html/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php on line 25 in Drupal\smart_date_recur\Plugin\QueueWorker\RecurRuleUpdate->__construct() (Zeile 34 in /var/www/html/web/modules/contrib/smart_date/modules/smart_date_recur/src/Plugin/QueueWorker/RecurRuleUpdate.php)

#0 /var/www/html/web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php(25): Drupal\smart_date_recur\Plugin\QueueWorker\RecurRuleUpdate->__construct()
#1 /var/www/html/web/core/lib/Drupal/Component/Plugin/PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance()
#2 /var/www/html/web/core/lib/Drupal/Core/Queue/QueueWorkerManager.php(63): Drupal\Component\Plugin\PluginManagerBase->createInstance()
#3 /var/www/html/web/core/lib/Drupal/Core/Cron.php(206): Drupal\Core\Queue\QueueWorkerManager->createInstance()
#4 /var/www/html/web/core/lib/Drupal/Core/Cron.php(162): Drupal\Core\Cron->processQueues()
#5 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#6 /var/www/html/vendor/drush/drush/src/Commands/core/DrupalCommands.php(63): Drupal\Core\ProxyClass\Cron->run()
#7 [internal function]: Drush\Commands\core\DrupalCommands->cron()
#8 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array()
#9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback()
#10 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter()
#11 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process()
#12 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute()
#13 /var/www/html/vendor/symfony/console/Application.php(1096): Symfony\Component\Console\Command\Command->run()
#14 /var/www/html/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#15 /var/www/html/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#16 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run()
#17 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun()
#18 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run()
#19 /var/www/html/vendor/drush/drush/drush(4): require('...')
#20 /var/www/html/vendor/bin/drush(119): include('...')
#21 {main}
🐛 Bug report
Status

Fixed

Version

4.1

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024