Skip to content
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

Error while visiting orders page #902

Open
JobMoll opened this issue Apr 30, 2024 · 1 comment · Fixed by #880
Open

Error while visiting orders page #902

JobMoll opened this issue Apr 30, 2024 · 1 comment · Fixed by #880

Comments

@JobMoll
Copy link

JobMoll commented Apr 30, 2024

I am getting the following error when visiting the orders page in the wp-admin.

WordPress version 6.5.2
Current plugin: Mollie Payments for WooCommerce (version 7.5.2)
Woocommerce version: 8.8.3
PHP version 8.1.24

Error Details

An error of type E_ERROR was caused in line 19 of the file /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/src/MerchantCapture/OrderListPaymentColumn.php. Error message: 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 /var/www/html/wp-includes/class-wp-hook.php on line 324 and defined in /var/www/html/wp-content/plugins/mollie-payments-for-woocommerce/src/MerchantCapture/OrderListPaymentColumn.php:19
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(324): Mollie\WooCommerce\MerchantCapture\OrderListPaymentColumn->Mollie\WooCommerce\MerchantCapture{closure}()
#1 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php(184): do_action()
#4 /var/www/html/wp-admin/includes/class-wp-list-table.php(1796): Automattic\WooCommerce\Internal\Admin\Orders\ListTable->column_default()
#5 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php(148): WP_List_Table->single_row_columns()
#6 /var/www/html/wp-admin/includes/class-wp-list-table.php(1721): Automattic\WooCommerce\Internal\Admin\Orders\ListTable->single_row()
#7 /var/www/html/wp-admin/includes/class-wp-list-table.php(1706): WP_List_Table->display_rows()
#8 /var/www/html/wp-admin/includes/class-wp-list-table.php(1633): WP_List_Table->display_rows_or_placeholder()
#9 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php(267): WP_List_Table->display()
#10 /var/www/html/wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php(298): Automattic\WooCommerce\Internal\Admin\Orders\ListTable->display()
#11 /var/www/html/wp-includes/class-wp-hook.php(324): Automattic\WooCommerce\Internal\Admin\Orders\PageController->output()
#12 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#13 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#14 /var/www/html/wp-admin/admin.php(259): do_action()
#15 {main}
thrown

When downgrading to Mollie Payments version 7.4.1 while still on the newest Woocommerce version (8.8.3) the error disappears.

@gaambo
Copy link

gaambo commented May 6, 2024

Same problem here:

WordPress version 6.4.4
Current plugin: Mollie Payments for WooCommerce (version 7.5.2)
WooCommerce version: 8.8.3
PHP version 8.1.27

To add to OP: Downgrading to 7.5.1 fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants