Too few arguments to function Drupal\commerce_license\LicenseOrderProcessorMultiples

Created on 28 September 2022, about 2 years ago
Updated 25 October 2023, about 1 year ago

Problem/Motivation

After upgrade from Drupal 8.9 to 9.4, I get this error:

ArgumentCountError: Too few arguments to function Drupal\commerce_license\LicenseOrderProcessorMultiples::__construct(), 0 passed in /docroot/core/lib/Drupal/Component/DependencyInjection/Container.php on line 262 and exactly 1 expected in Drupal\commerce_license\LicenseOrderProcessorMultiples->__construct() (line 34 of modules/contrib/commerce_license/src/LicenseOrderProcessorMultiples.php).

Steps to reproduce

Upgrade via Composer a Drupal site from 8.9 to 9.4, run drush updb and etc

Proposed resolution

IDK

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States jghyde

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.

  • πŸ‡ΊπŸ‡ΈUnited States jghyde

    I get stuck again and again on this problem. New day, new site upgrade with commerce_license.

    Either:
    drush cr</drush> or <code>drush updb results in incomplete updb or the cr crashes with this error notice:

    ArgumentCountError: Too few arguments to function Drupal\commerce_license\LicenseOrderProcessorMultiples::__construct(), 0 passed and exactly 3 expected in Drupal\commerce_license\LicenseOrderProcessorMultiples->__construct() (line 64 of /var/www/web/stage/docroot/modules/contrib/commerce_license/src/LicenseOrderProcessorMultiples.php) #0 [internal function]: Drupal\commerce_license\LicenseOrderProcessorMultiples->__construct()
    

    I have also truncated cache_ tables trough PhpMyAdmin.

Production build 0.71.5 2024