mollie / WooCommerce

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

Fatal error when trying to send email. #732

Closed miriksbm closed 1 year ago

miriksbm commented 2 years ago

PHP : 8.0 Plugin : 7.3.3 WooCommerce : 7.0.0

Fatal error: Uncaught TypeError: Mollie\WooCommerce\Gateway\MolliePaymentGateway::displayInstructions(): Argument #2 ($admin_instructions) must be of type bool, null given, called in /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php on line 309 and defined in /var/www/commust-upahuire/wordpress/current/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/MolliePaymentGateway.php:807 Stack trace: #0 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(309): Mollie\WooCommerce\Gateway\MolliePaymentGateway->displayInstructions() #1 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #2 /var/www/commust-upahuire/wordpress/current/wp-includes/plugin.php(476): WP_Hook->do_action() #3 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/templates/emails/email-order-details.php(90): do_action() #4 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #5 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/class-wc-emails.php(421): wc_get_template() #6 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(307): WC_Emails->order_details() #7 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #8 /var/www/commust-upahuire/wordpress/current/wp-includes/plugin.php(476): WP_Hook->do_action() #9 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/templates/emails/admin-new-order.php(35): do_action() #10 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #11 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/wc-core-functions.php(364): wc_get_template() #12 /var/www/commust-upahuire/wordpress/current/wp-content/themes/relevance-online-child/woocommerce/class-wc-transit-order-email.php(85): wc_get_template_html() #13 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(574): WC_Transit_Order_Email->get_content_html() #14 /var/www/commust-upahuire/wordpress/current/wp-content/themes/relevance-online-child/woocommerce/class-wc-transit-order-email.php(68): WC_Email->get_content() #15 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(307): WC_Transit_Order_Email->trigger() #16 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #17 /var/www/commust-upahuire/wordpress/current/wp-includes/plugin.php(524): WP_Hook->do_action() #18 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/class-wc-emails.php(170): do_action_ref_array() #19 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(307): WC_Emails::send_transactional_email() #20 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #21 /var/www/commust-upahuire/wordpress/current/wp-includes/plugin.php(476): WP_Hook->do_action() #22 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/class-wc-order.php(373): do_action() #23 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/class-wc-order.php(222): WC_Order->status_transition() #24 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php(671): WC_Order->save() #25 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(309): WC_Meta_Box_Order_Data::save() #26 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #27 /var/www/commust-upahuire/wordpress/current/wp-includes/plugin.php(476): WP_Hook->do_action() #28 /var/www/commust-upahuire/wordpress/current/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(277): do_action() #29 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(309): WC_Admin_Meta_Boxes->save_meta_boxes() #30 /var/www/commust-upahuire/wordpress/current/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #31 /var/www/commust-upahuire/wordpress/current/wp-includes/plugin.php(476): WP_Hook->do_action() #32 /var/www/commust-upahuire/wordpress/current/wp-includes/post.php(4673): do_action() #33 /var/www/commust-upahuire/wordpress/current/wp-includes/post.php(4775): wp_insert_post() #34 /var/www/commust-upahuire/wordpress/current/wp-admin/includes/post.php(426): wp_update_post() #35 /var/www/commust-upahuire/wordpress/current/wp-admin/post.php(227): edit_post() #36 {main} thrown in /var/www/commust-upahuire/wordpress/current/wp-content/plugins/mollie-payments-for-woocommerce/src/Gateway/MolliePaymentGateway.php on line 807

InpsydeNiklas commented 1 year ago

Hi @miriksbm, Could you please check if this error persists for you with the latest version? If it does, please get in touch with the support team from here with a link to this issue: https://mollie.inpsyde.com/docs/request-support/ Thanks!