-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Warning: Array to string conversion #765
Comments
I got a similar warning. It seems the Mollie Payments plugin sometimes sends an array to the WC logger instead of a string. DetailsPHP: 8.2.8 SituationWhen proceeding to payment from the checkout page, selecting (Mollie) iDEAL as payment method, but leaving the issuer dropdown to the default empty option (no selected bank), a PHP warning is logged. (Wordpress has The PHP warningPHP Warning: File: Stack:
Possible causeBacktracking this, it might be originating here: Mollie\WooCommerce\Payment\PaymentService::processAsMolliePayment Mollie\WooCommerce\Log\WcPsrLoggerAdapter::log (Via |
Mollie Payments for WooCommerce supports PHP versions from 7.2. to 8.1. |
I put the PHP version there just in case, but the issue is the same for previous PHP versions. The problem is with this code: WooCommerce/src/Payment/PaymentService.php Lines 471 to 487 in bb82240
It's missing something like WooCommerce/src/Payment/PaymentService.php Line 375 in bb82240
I'll make a PR. |
WordPress 6.1.1
WooCommerce: 7.3.0
Mollie Payments: 7.3.5
This issue also existed with older versions.
I get PHP Warnings in my logs from wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-log-handler.php on line 44.
In the Mollie debug logs I find the following, note the 'Array' in the second to last line:
The datestamps match with the PHP warning, so this seems to originate from the mollie-payments-for-woocommerce plugin.
The text was updated successfully, but these errors were encountered: