Problem/Motivation
Not sure if this is a one off problem to my setup, or if this is a fix needed globally. I have the payment module installed and working fine... but after installing the ECA module and the ECA model interface BPMN.IO, I received the below error when trying adding a new ECA model.
ArgumentCountError: Too few arguments to function Drupal\payment\Plugin\Action\UnsetLineItem::__construct(), 3 passed in /web/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php on line 25 and exactly 4 expected in Drupal\payment\Plugin\Action\UnsetLineItem->__construct() (line 37 of /web/modules/contrib/payment/src/Plugin/Action/UnsetLineItem.php)
Comment | File | Size | Author |
---|---|---|---|
#2 | 3330142-1.patch | 753 bytes | chucksimply |
Comments
Comment #2
chucksimply CreditAttribution: chucksimply commentedThe attached patch fixes this on my end. Please review. Curious if these lines needs to be applied to other files as well?
Comment #3
chucksimply CreditAttribution: chucksimply commentedComment #4
boby_ui CreditAttribution: boby_ui as a volunteer commented+1 confirmed that it fixed the ECA with payment issues!!
Comment #5
mxhPatch of #2 makes sense. Currently there is an implementation as follows within
Drupal\payment\Plugin\Action\UnsetLineItem
:but the plugin currently does not implement the according interface, which prevents other components from properly recognizing the instantiation method, leading to the problem reported here.
Comment #6
jurgenhaasConfirmed, and setting to RTBC.