[error] TypeError: Drupal\commerce_recurring\Cron::enqueueOrders(): Argument #1 ($recurring_queue)

Created on 26 July 2023, over 1 year ago
Updated 26 November 2023, about 1 year ago

Problem/Motivation

Error when running drush cron
Config

Drupal version : 10.1.1
Site URI : https://drupal10.ddev.site
DB driver : mysql
DB hostname : db
DB port : 3306
DB username : db
DB name : db
Database : Connected
Drupal bootstrap : Successful
Admin theme : claro
PHP binary : /usr/bin/php8.1
PHP config : /etc/php/8.1/cli/php.ini
PHP OS : Linux
PHP version : 8.1.16
Drush script : /var/www/html/vendor/bin/drush
Drush version : 12.1.2.0
Drush temp : /tmp
Drush configs : /var/www/html/vendor/drush/drush/drush.yml
Install profile : standard
Drupal root : /var/www/html/web
Site path : sites/default
Files, Public : sites/default/files
Files, Private : /var/www/html/web/../private
Files, Temp : /tmp

 [error]  TypeError: Drupal\commerce_recurring\Cron::enqueueOrders(): Argument #1 ($recurring_queue) must be of type Drupal\advancedqueue\Entity\QueueInterface, null given, called in /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php on line 61 in Drupal\commerce_recurring\Cron->enqueueOrders() (line 71 of /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php) #0 /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php(61): Drupal\commerce_recurring\Cron->enqueueOrders(NULL)
#1 /var/www/html/web/modules/contrib/commerce_recurring/commerce_recurring.module(33): Drupal\commerce_recurring\Cron->run()
#2 /var/www/html/web/core/lib/Drupal/Core/Cron.php(335): commerce_recurring_cron()
#3 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Cron->Drupal\Core\{closure}(Object(Closure), 'commerce_recurr...')
#4 /var/www/html/web/core/lib/Drupal/Core/Cron.php(343): Drupal\Core\Extension\ModuleHandler->invokeAllWith('cron', Object(Closure))
#5 /var/www/html/web/core/lib/Drupal/Core/Cron.php(159): Drupal\Core\Cron->invokeCronHandlers()
#6 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#7 /var/www/html/vendor/drush/drush/src/Commands/core/DrupalCommands.php(63): Drupal\Core\ProxyClass\Cron->run()
#8 [internal function]: Drush\Commands\core\DrupalCommands->cron(Array)
#9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#10 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#20 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#21 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#22 {main}.
TypeError: Drupal\commerce_recurring\Cron::enqueueOrders(): Argument #1 ($recurring_queue) must be of type Drupal\advancedqueue\Entity\QueueInterface, null given, called in /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php on line 61 in /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php on line 71 #0 /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php(61): Drupal\commerce_recurring\Cron->enqueueOrders(NULL)
#1 /var/www/html/web/modules/contrib/commerce_recurring/commerce_recurring.module(33): Drupal\commerce_recurring\Cron->run()
#2 /var/www/html/web/core/lib/Drupal/Core/Cron.php(335): commerce_recurring_cron()
#3 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(388): Drupal\Core\Cron->Drupal\Core\{closure}(Object(Closure), 'commerce_recurr...')
#4 /var/www/html/web/core/lib/Drupal/Core/Cron.php(343): Drupal\Core\Extension\ModuleHandler->invokeAllWith('cron', Object(Closure))
#5 /var/www/html/web/core/lib/Drupal/Core/Cron.php(159): Drupal\Core\Cron->invokeCronHandlers()
#6 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#7 /var/www/html/vendor/drush/drush/src/Commands/core/DrupalCommands.php(63): Drupal\Core\ProxyClass\Cron->run()
#8 [internal function]: Drush\Commands\core\DrupalCommands->cron(Array)
#9 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(276): call_user_func_array(Array, Array)
#10 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#11 /var/www/html/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#12 /var/www/html/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(391): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#13 /var/www/html/vendor/symfony/console/Command/Command.php(326): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /var/www/html/vendor/symfony/console/Application.php(1081): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /var/www/html/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /var/www/html/vendor/symfony/console/Application.php(174): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(110): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#18 /var/www/html/vendor/drush/drush/src/Runtime/Runtime.php(40): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#19 /var/www/html/vendor/drush/drush/drush.php(139): Drush\Runtime\Runtime->run(Array)
#20 /var/www/html/vendor/drush/drush/drush(4): require('/var/www/html/v...')
#21 /var/www/html/vendor/bin/drush(120): include('/var/www/html/v...')
#22 {main}
TypeError: Drupal\commerce_recurring\Cron::enqueueOrders(): Argument #1 ($recurring_queue) must be of type Drupal\advancedqueue\Entity\QueueInterface, null given, called in /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php on line 61 in Drupal\commerce_recurring\Cron->enqueueOrders() (line 71 of /var/www/html/web/modules/contrib/commerce_recurring/src/Cron.php).
 [warning] Drush command terminated abnormally.

Steps to reproduce

Install Commerce Recurring Framework and run cron

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Component

Code

Created by

🇺🇸United States docans

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

Comments & Activities

Production build 0.71.5 2024