Got same issue.
The fatal error only happens on backend of WordPress. (/wp-admin)
Fixed it by changing mollie-payments-for-woocommerce/src/Gateway/Voucher/MaybeDisableGateway.php:21
To:
public function maybeDisableMealVoucherGateway($gateways): array
{
// WooCommerce can pass null here (bug / early hook call)
if (!is_array($gateways)) {
return [];
}
if (!$this->haveCartProductsCategories()) {
unset($gateways['mollie_wc_gateway_voucher']);
}
return $gateways;
}
-
This reply was modified 5 months, 1 week ago by derpyhue.