Hello,

An error breaks the payment gateways admin page (admin/commerce/config/payment-gateways)

The website encountered an unexpected error. Please try again later.

TypeError: Argument 8 passed to Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\PaymentGatewayBase::__construct() must implement interface Drupal\commerce_price\MinorUnitsConverterInterface or be null, instance of Drupal\Core\Logger\LoggerChannelFactory given, called in […]modules/contrib/paypal_subscriptions/src/Plugin/Commerce/PaymentGateway/ExpressCheckoutSubscriptions.php on line 84 in Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\PaymentGatewayBase->__construct() (line 105 of modules/contrib/commerce/modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php).

I am using Commerce 2.28 and Commerce Paypal 1.0.0-rc6
BTW, because of #3255602: Cannot update to 1.0 because of bad dependency commerce_payment:commerce_payment, I installed the following forked version:
https://git.drupalcode.org/issue/paypal_subscriptions-3255602

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nicolas Bouteille created an issue. See original summary.

pmagunia made their first commit to this issue’s fork.

pmagunia’s picture

Status: Active » Needs review

There's a PHP Notice that appears after saving the form, but I think it's related to the missing Sandbox array key.

atrevetemen.adm’s picture

Hello
I had the same issue with PHP 7.4.9 mySQL 5.7.31 Drupal 9.3.9
pd. also had the same issued reported by Nicolas Bouteille installing the module with composer: paypal_subscriptions-3255602

Regards

vuil’s picture

  • pmagunia committed 8f20d10 on 8.x-1.x
    Issue #3258554: Argument 8 in PaymentGatewayBase construct must...
vuil’s picture

Status: Needs review » Fixed
vuil’s picture

Version: 8.x-1.0 » 8.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.