Hello, i have lastest woocommerce version and after succesfull order there is an error:
` Fatal error: Uncaught Error: Too few arguments to function WC_Emails::email_header(), 1 passed in /data/web/virtuals/257900/virtual/www/domains/waresoft.eu/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected
in /data/web/virtuals/257900/virtual/www/domains/waresoft.eu/wp-content/plugins/woocommerce/includes/class-wc-emails.php on line 269
Hello, i have lastest woocommerce version and after succesfull order there is an error:
` Fatal error: Uncaught Error: Too few arguments to function WC_Emails::email_header(), 1 passed in /data/web/virtuals/257900/virtual/www/domains/waresoft.eu/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /data/web/virtuals/257900/virtual/www/domains/waresoft.eu/wp-content/plugins/woocommerce/includes/class-wc-emails.php on line 269
Call stack:
WC_Emails::email_header() wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:311 WP_Hook::do_action() wp-includes/plugin.php:484 do_action() wp-content/plugins/codeswholesale-for-woocommerce/templates/emails/customer-completed-order.php:6 include() wp-content/plugins/codeswholesale-for-woocommerce/includes/cw-core-functions.php:20 cw_get_template() wp-content/plugins/codeswholesale-for-woocommerce/includes/emails/class/class-cw-email-customer-completed-order.php:162 CW_Email_Customer_Completed_Order::get_content_html() wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:541 WC_Email::get_content() wp-content/plugins/codeswholesale-for-woocommerce/includes/emails/class/class-cw-email-customer-completed-order.php:90 CW_Email_Customer_Completed_Order::send_keys() wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:311 WP_Hook::do_action() wp-includes/plugin.php:484 do_action() wp-content/plugins/codeswholesale-for-woocommerce/includes/emails/wp-send-code-mail.php:11 WP_Send_Code_Mail::sendCodeMail() wp-content/plugins/codeswholesale-for-woocommerce/vendor/codeswholesale/cw-extension-framework/src/Orders/Codes/SendCodesAction.php:128 CodesWholesaleFramework\O\C\SendCodesAction::process() wp-content/plugins/codeswholesale-for-woocommerce/includes/process/class-cw-send-keys.php:32 CW_Send_Keys::send_keys_for_order() wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:311 WP_Hook::do_action() wp-includes/plugin.php:484 do_action() wp-content/plugins/codeswholesale-for-woocommerce/includes/dispatchers/wp-order-event-dispatcher.php:17 WP_Order_Event_Dispatcher::dispatch() wp-content/plugins/codeswholesale-for-woocommerce/vendor/codeswholesale/cw-extension-framework/src/Orders/Codes/OrderCreatorAction.php:180 CodesWholesaleFramework\O\C\OrderCreatorAction::process() wp-content/plugins/codeswholesale-for-woocommerce/includes/process/class-cw-buy-keys.php:41 CW_Buy_Keys::buy_keys_for_order() wp-includes/class-wp-hook.php:289 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:311 WP_Hook::do_action() wp-includes/plugin.php:484 do_action() wp-content/plugins/woocommerce/includes/class-wc-order.php:363 WC_Order::status_transition() wp-content/plugins/woocommerce/includes/class-wc-order.php:221 WC_Order::save() wp-content/plugins/woocommerce/includes/class-wc-order.php:119 WC_Order::payment_complete() wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php:447 WC_Stripe_Payment_Gateway::process_response() wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:1089 WC_Gateway_Stripe::handle_intent_verification_success() wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php:1072 WC_Gateway_Stripe::verify_intent_after_checkout() wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-stripe-intent-controller.php:103 WC_Stripe_Intent_Controller::verify_intent() wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:311 WP_Hook::do_action() wp-includes/plugin.php:484 do_action() wp-content/plugins/woocommerce/includes/class-wc-ajax.php:90 WC_AJAX::do_wc_ajax() wp-includes/class-wp-hook.php:287 WP_Hook::apply_filters() wp-includes/class-wp-hook.php:311 WP_Hook::do_action() wp-includes/plugin.php:484 do_action() wp-includes/template-loader.php:13 require_once() wp-blog-header.php:19 require() index.php:17`