Too few arguments to function Drupal\commerce_shipping\Packer\DefaultPacker::__construct()

Created on 22 February 2025, 1 day ago

Problem/Motivation

When installing the module, a fatal error is thrown with the following:

The website encountered an unexpected error. Try again later.

ArgumentCountError: Too few arguments to function Drupal\commerce_shipping\Packer\DefaultPacker::__construct(), 1 passed in /var/www/html/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 and exactly 2 expected in Drupal\commerce_shipping\Packer\DefaultPacker->__construct() (line 38 of modules/contrib/commerce_shipping/src/Packer/DefaultPacker.php).
...
...

Steps to reproduce

Download version 3.0.x-dev: composer require 'drupal/commerce_auspost:3.0.x-dev'
From the UI, install the module - the error is seen right after.

Proposed resolution

Update the service definition.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇦🇺Australia yusufhm NSW, Australia

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