• Resolved martje65

    (@martje65)


    Since Woocommerce 6.8.0 in the /wp-admin/admin.php?page=wc-status&tab=logs we see the nex faltal errors:

    2022-08-18T23:52:41+00:00 CRITICAL Uncaught TypeError: Argument 2 passed to Mollie\WooCommerce\Payment\MolliePayment::maybeUpdateStatus() must be an instance of Mollie\WooCommerce\Gateway\MolliePaymentGateway, instance of WC_Gateway_BACS given, called in /test.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MolliePayment.php on line 400 and defined in /test.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MolliePayment.php:500
    Stack trace:
    #0 /test.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MolliePayment.php(400): Mollie\WooCommerce\Payment\MolliePayment->maybeUpdateStatus(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(WC_Gateway_BACS), 'cancelled', 2704)
    #1 /test.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrderService.php(159): Mollie\WooCommerce\Payment\MolliePayment->onWebhookExpired(Object(A in /test.nl/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MolliePayment.php op de lijn 500
    
    WordPress Versie: 6.0.1
    Woocommerce Versie 6.8.0
    Mollie Versie 7.3.0
    • This topic was modified 2 years, 7 months ago by martje65.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter martje65

    (@martje65)

    I did some more searching and I think it has to do with order ID 2704.
    This customer initially chose Bancontact and let it expire, later on this customer chose bank transfer and completed the order.

    Since that time we have 10 fatal-error entries in 3 days, even last night and the order was already completed and shipt.

    2022-08-18T22:20:04+00:00 DEBUG Creating payment object: type Order, did not fail because of incorrect customerId, so trying Payment now.
    2022-08-18T22:20:04+00:00 DEBUG Creating payment object: type Payment, creating a Payment.
    2022-08-18T22:20:04+00:00 DEBUG  Order 2704 returnUrl: https://www.test.nl/afrekenen/order-received/2704/?key=wc_order_-----------&filter_flag=onMollieReturn
    2022-08-18T22:20:04+00:00 DEBUG  Order 2704 webhookUrl: https://www.test.nl/wc-api/mollie_wc_gateway_bancontact?order_id=2704&key=wc_order_-----------&filter_flag
    2022-08-18T22:20:04+00:00 DEBUG Array
    2022-08-18T22:20:04+00:00 DEBUG setUserMollieCustomerId: Stored Mollie customer ID cst_---------- with user xxx
    2022-08-18T22:20:04+00:00 DEBUG bancontact: Mollie payment object tr_---------- (live) created for order 2704
    2022-08-18T22:20:04+00:00 DEBUG For order 2704 redirect user to Mollie Checkout URL: https://bancontact.girogate.be/bi/t2bc?tx=-------------
    2022-08-18T23:21:32+00:00 DEBUG bacs: Mollie payment object tr_---------- (live) webhook call for order 2704.
    2022-08-18T23:21:32+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-18T23:21:32+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-18T23:22:34+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-18T23:22:34+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-18T23:22:34+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-18T23:24:35+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-18T23:24:35+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-18T23:24:35+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-18T23:28:37+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-18T23:28:37+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-18T23:28:37+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-18T23:36:39+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-18T23:36:39+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-18T23:36:39+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-18T23:52:41+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-18T23:52:41+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-18T23:52:41+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-19T00:21:43+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-19T00:21:43+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-19T00:21:43+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-19T01:21:46+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-19T01:21:46+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-19T01:21:46+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-19T03:21:48+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-19T03:21:48+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-19T03:21:48+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-20T01:21:50+00:00 DEBUG bacs: Mollie payment object tr_J6SMHSMutb (live) webhook call for order 2704.
    2022-08-20T01:21:50+00:00 DEBUG Mollie\WooCommerce\Payment\MollieOrderService::orderNeedsPayment bacs: Order 2704 orderNeedsPayment check: yes, order not previously processed by Mollie gateway.
    2022-08-20T01:21:50+00:00 DEBUG Mollie\WooCommerce\Payment\MolliePayment::onWebhookExpired called for order 2704
    2022-08-20T07:32:55+00:00 DEBUG Mollie\WooCommerce\Shared\Data::deleteTransients: Mollie settings saved, delete transients
    • This reply was modified 2 years, 7 months ago by martje65.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @martje65,

    Thanks for the infos.
    I tried several ways but am not seeing how this could be reproduced. I created an issue for our developers to investigate deeper as the BACS instance shouldn’t be called in any case.
    Can you actively reproduce this error, or did it only occur for you with this one case (multiple times)?
    Thanks!

    Kind regards,
    Niklas

    Thread Starter martje65

    (@martje65)

    I can replicate it @niklasinpsyde
    Plugin version 7.3.0
    WooCommerce version 6.8.2
    WordPress version 6.0.1
    PHP version 7.4
    In Mollie i have enabled Bancontact, iDEAL and PayPal, in woocemmerce i have enabled Bancontact, iDEAL, PayPal, BACS and Pay on Collect.
    The BACS and Pay on Collect payments are not going true Mollie.

    Go to the website and put some things in your basket and checkout with Bancontact, when you are on the Bancontact website hit the go back buton from your web browser. When you are back on the checkout page from your website choos BACS and checkout.

    I made a test order on 10:41:41 UTC and the first fatal errors shows on 11:42:32 UTC,i have the complete logging from the order if you want.

    The time in the log files are UTC time, the website is Amsterdam time (UTC + 2)

    • This reply was modified 2 years, 7 months ago by martje65.
    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @martje65,

    Thanks for the details!
    I brought it up with the developers, and we’ll try to include a fix for this in the upcoming 7.3.1 update.

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @martje65,

    This issue should be resolved in the latest pre-release version and the fix will be included in the official update (probably sometime next week): https://github.com/mollie/WooCommerce/releases/tag/7.3.1-beta1

    Kind regards,
    Niklas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CRITICAL Uncaught TypeError: Argument 2’ is closed to new replies.