• Resolved codeagency

    (@7grafix)


    Latest update is causing errors as below

    [24-Mar-2022 13:45:55 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Mollie\WooCommerce\Gateway\MolliePaymentGateway::updateOrderStatus() in /var/www/website-wp/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrder.php:928
    Stack trace:
    #0 /var/www/website-wp/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrder.php(452): Mollie\WooCommerce\Payment\MollieOrder->maybeUpdateStatus(Object(Automattic\WooCommerce\Admin\Overrides\Order), 'cancelled', 18608, 'Mollie - PayPal', Object(Mollie\Api\Resources\Order))
    #1 /var/www/website-wp/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrderService.php(159): Mollie\WooCommerce\Payment\MollieOrder->onWebhookCanceled(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(Mollie\Api\Resources\Order), 'Mollie - PayPal')
    #2 /var/www/website-wp/wp-includes/class-wp-hook.php(307): Mollie\WooCommerce\Payment\MollieOrderService->onWebhookAction('')
    #3 /var/www/website-wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #4 /var/www/website-wp/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #5 /var/www/website-wp/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action('woocommerce_api...')
    #6 /var/www/website-wp/wp-includes/class-wp-hook.php(307): WC_API->handle_api_requests(Object(WP))
    #7 /var/www/website-wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #8 /var/www/website-wp/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #9 /var/www/website-wp/wp-includes/class-wp.php(396): do_action_ref_array('parse_request', Array)
    #10 /var/www/website-wp/wp-includes/class-wp.php(758): WP->parse_request('')
    #11 /var/www/website-wp/wp-includes/functions.php(1310): WP->main('')
    #12 /var/www/website-wp/wp-blog-header.php(16): wp()
    #13 /var/www/website-wp/index.php(17): require('/var/www/reefco...')
    #14 {main}
      thrown in /var/www/website-wp/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrder.php on line 928
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @7grafix,

    Can you reproduce this error somehow or does it just appear in the logfiles?
    We haven’t seen this one yet, so we’d like to know more about how it could be reproduced. I just made some tests with canceled PayPal orders but didn’t get any errors.
    Thanks!

    Kind regards,
    Niklas

    I also see this error in multiple webshops:

    2022-03-30T05:57:16+00:00 CRITICAL Uncaught Error: Call to undefined method Mollie\WooCommerce\Gateway\MolliePaymentGateway::updateOrderStatus() in /www/827/public/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrder.php:928
    Stack trace:
    #0 /www/827/public/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrder.php(452): Mollie\WooCommerce\Payment\MollieOrder->maybeUpdateStatus(Object(Automattic\WooCommerce\Admin\Overrides\Order), 'cancelled', 6256, 'Mollie - Klarna...', Object(Mollie\Api\Resources\Order))
    #1 /www/827/public/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrderService.php(159): Mollie\WooCommerce\Payment\MollieOrder->onWebhookCanceled(Object(Automattic\WooCommerce\Admin\Overrides\Order), Object(Mollie\Api\Resources\Order), 'Mollie - Klarna...')
    #2 /www/827/public/wp-includes/class-wp-hook.php(307): Mollie\WooCommerce\Payment\MollieOrderService->onWebhookAction('')
    #3 /www/confett in /www/827/public/wp-content/plugins/mollie-payments-for-woocommerce/src/Payment/MollieOrder.php in Zeile 928

    Plugin Version Version 7.0.4

    This one is about order #6256 that was placed on 2022-03-29 at 4:15 and has now status cancelled. So it looks like it has something to do with cancelling orders after 24 hours when payment is not completed.

    Thread Starter codeagency

    (@7grafix)

    @niklasinpsyde

    Sorry for my late reply.
    The error can definetely be reproduced, but the error message is coming from the debug.log
    I’m seeing this error message appearing in many client websites.
    They were not happening before plugin version 7.0.4
    The client sites are running PHP 7.4 to 8.1, they all have this problem after updating Mollie plugin.

    I didn’t understand at first where it was coming from, but as @studiobrabo is mentioning it comes from a cancel process (mostlikely automatic cancel from WooCommerce after pending payment status) but the timeframe is different, depending on what cancel time is configured in settings.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @7grafix,

    Yes, you’re right, and apologies for the trouble.
    Our developers fixed the issue here for the next update: https://github.com/mollie/WooCommerce/pull/643
    The next update 7.1 needed a bit more polish than anticipated, but we still expect a pre-release version on GitHub later this week if you’d like to give it a try before the official release sometime later.

    In any case, thanks a lot for the feedback, also @studiobrabo!

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    The latest 7.1 update fixes the reported warning/error, so I’ll mark this thread resolved.
    If you have any doubts or further questions, please do not hesitate to let us know.
    Thanks!

    Kind regards,
    Niklas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error: Uncaught Error: Call to undefined method’ is closed to new replies.