• Resolved JohanvdMolen

    (@pixelive)


    Mollie\WooCommerce\MerchantCapture\OrderListPaymentColumn::Mollie\WooCommerce\MerchantCapture\{closure}(): Argument #2 ($order) must be of type Automattic\WooCommerce\Admin\Overrides\Order, WC_Order given

    Getting the error stated above in version 7.5.2. In the following line:

    add_action('woocommerce_shop_order_list_table_custom_column', function (string $column, Order $order) {
                $this->renderColumnValue($column, $order->get_id());
            }, 10, 2);
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Femi

    (@femiyb)

    Hello

    This error has been present since version 7.5.0 and enabling WooCommerce analytics fixes it.

    We have a fix ready for this that should be included in the next release of the plugin.

    Please let me know if this helps.

    Regards,
    Femi

    Thread Starter JohanvdMolen

    (@pixelive)

    @femiyb when is this release scheduled? Is that known yet?

    Plugin Support Femi

    (@femiyb)

    Hello

    There is no confirmed date yet, but probably some time next month.

    However, you can download a test package with the proposed fix from here:?https://mollie.inpsyde.com/beta

    Regards,
    Femi

    landsand

    (@landsand)

    @femiyb I have a quite similar issue, a fatal error occurs since I have upgraded from Mollie version 7.5.1 to 7.5.2: Payment via Mollie still works and all automatic e-mails are still sent out, but I cannot see and manage the orders in WooCommerce anymore due to the fatal error. Will this error also be solved with the fix you mentioned? Did I understand correctly that the fix will be included in the next Mollie plugin update or is there another plugin you are talking about?

    Thanks!

    WordPress-Version 6.5.2
    
    Aktives Theme: Divi Child Theme (Version 1.0.0) Aktuelles Plugin: Mollie Payments for WooCommerce (Version 7.5.2) PHP-Version 8.0.30
    
    Fehler-Details
    
    ==============
    
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 19 der Datei /homepages/37/d4297888670/htdocs/wordpress/wp-content/plugins/mollie-payments-for-woocommerce/src/MerchantCapture/OrderListPaymentColumn.php verursacht. Fehlermeldung: Uncaught TypeError: Mollie\WooCommerce\MerchantCapture\OrderListPaymentColumn::Mollie\WooCommerce\MerchantCapture\{closure}(): Argument #2 ($order) must be of type Automattic\WooCommerce\Admin\Overrides\Order, WC_Order given, called in /homepages/37/d4297888670/htdocs/wordpress/wp-includes/class-wp-hook.php on line 324 and defined in /homepages/37/d4297888670/htdocs/wordpress/wp-content/plugins/mollie-payments-for-woocommerce/src/MerchantCapture/OrderListPaymentColumn.php:19
    
    
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error on version 7.5.2’ is closed to new replies.