cron error when create a billing schedule

Created on 25 June 2019, almost 6 years ago
Updated 23 January 2023, about 2 years ago

Hi,
Installed last version of commerce, commerce_recurring dev, advanced queue dev, using Drupal 8.6.16
After creating currency, store, payment gataway,
i have this error when i create a Billing Schedule (1 month, rolling interval)

TypeError: Argument 1 passed to Drupal\commerce_recurring\Cron::enqueueOrders() must implement interface Drupal\advancedqueue\Entity\QueueInterface, null given, called in C:\localhost\drupal\modules\contrib\commerce_recurring\src\Cron.php on line 60

Anyone can help please?

thanks in advance

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇮🇹Italy alternativo Rome

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.

  • 🇳🇱Netherlands chesterb

    I had the same issue and recreated the queue. The first error dissapeared but now I'm getting this error:
    ----------------------------------------
    PHP 8.0.27
    D9.5.0
    Commerce Recurring 8.x-1.0-rc1

    ----------------------------------------

    Error: Call to a member function getColumns() on bool in Drupal\Core\Entity\Query\Sql\Tables->addField() (regel 246 van /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php)
    #0 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php(58): Drupal\Core\Entity\Query\Sql\Tables->addField()
    #1 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(177): Drupal\Core\Entity\Query\Sql\Condition->compile()
    #2 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php(81): Drupal\Core\Entity\Query\Sql\Query->compile()
    #3 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/modules/contrib/commerce_recurring/src/Cron.php(78): Drupal\Core\Entity\Query\Sql\Query->execute()
    #4 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/modules/contrib/commerce_recurring/src/Cron.php(61): Drupal\commerce_recurring\Cron->enqueueOrders()
    #5 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/modules/contrib/commerce_recurring/commerce_recurring.module(33): Drupal\commerce_recurring\Cron->run()
    #6 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Cron.php(249): commerce_recurring_cron()
    #7 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(405): Drupal\Core\Cron->Drupal\Core\{closure}()
    #8 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Cron.php(257): Drupal\Core\Extension\ModuleHandler->invokeAllWith()
    #9 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/Cron.php(136): Drupal\Core\Cron->invokeCronHandlers()
    #10 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
    #11 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php(65): Drupal\Core\ProxyClass\Cron->run()
    #12 [internal function]: Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate()
    #13 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func()
    #14 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/vendor/symfony/http-kernel/HttpKernel.php(103): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
    #15 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/vendor/stack/builder/src/Stack/StackedHttpKernel.php(32): Symfony\Component\HttpKernel\HttpKernel->terminate()
    #16 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/core/lib/Drupal/Core/DrupalKernel.php(691): Stack\StackedHttpKernel->terminate()
    #17 /home/vkhw/domains/vakantiehuiswinkel.nl/public_html/crm-vhw/web/index.php(22): Drupal\Core\DrupalKernel->terminate()
    #18 {main}
    .

    And cron is still not working. I hope anyone has an idea because I'm a bit lost :-).

Production build 0.71.5 2024