mollie / WooCommerce

Official Mollie extension for WooCommerce
https://wordpress.org/plugins/mollie-payments-for-woocommerce/
Other
129 stars 52 forks source link

Critical Error : Uncaught TypeError: Mollie\WooCommerce\Gateway\GatewayModule::in3FieldsMandatoryPayForOrder() #893

Closed Tonuz closed 5 months ago

Tonuz commented 5 months ago

Hello Team,

I'm facing critical error (i'm running lastest woocommerce & mollie versions).

2024-03-12T05:41:46+00:00 Critique Uncaught TypeError: Mollie\WooCommerce\Gateway\GatewayModule::in3FieldsMandatoryPayForOrder(): Argument #1 ($order) must be of type Automattic\WooCommerce\Admin\Overrides\Order, WC_Order given, called in /home/wqv4vko/public_html/wp-includes/class-wp-hook.php on line 324 and defined in /home/wqv4vko/public_html/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/GatewayModule.php:644 CONTEXT: {"error":{"type":1,"file":"\/home\/wqv4vko\/public_html\/wp-content\/plugins\/mollie-payments-for-woocommerce\/src\/Gateway\/GatewayModule.php","line":644},"backtrace":["","#0 \/home\/wqv4vko\/public_html\/wp-includes\/class-wp-hook.php(324): Mollie\WooCommerce\Gateway\GatewayModule->in3FieldsMandatoryPayForOrder()","#1 \/home\/wqv4vko\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()","#2 \/home\/wqv4vko\/public_html\/wp-includes\/plugin.php(517): WP_Hook->do_action()","#3 \/home\/wqv4vko\/public_html\/wp-content\/plugins\/woocommerce\/includes\/class-wc-form-handler.php(409): do_action()","#4 \/home\/wqv4vko\/public_html\/wp-includes\/class-wp-hook.php(324): WC_Form_Handler::pay_action()","#5 \/home\/wqv4vko\/public_html\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()","#6 \/home\/wqv4vko\/public_html\/wp-includes\/plugin.php(565): WP_Hook->do_action()","#7 \/home\/wqv4vko\/public_html\/wp-includes\/class-wp.php(830): do_action_ref_array()","#8 \/home\/wqv4vko\/public_html\/wp-includes\/functions.php(1336): WP->main()","#9 \/home\/wqv4vko\/public_html\/wp-blog-header.php(16): wp()","#10 \/home\/wqv4vko\/public_html\/index.php(17): require('\/home\/wqv4vko\/p...')","#11 {main}","thrown"]}

Regards, Antoine

Tonuz commented 5 months ago

Sorry, duplicate of #887