email issue with last version of woocommerce
-
hi
when i update a product on wordpress i have the message of wordpress that is an issue and i receive on my admin mail the logs of the errorUne erreur de type E_ERROR a été causée dans la ligne 269 du fichier /home/xxx/wp-content/plugins/woocommerce/includes/class-wc-emails.php. Message d’erreur : Uncaught ArgumentCountError: Too few arguments to function WC_Emails::email_header(), 1 passed in /home/xxx//wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in /home/xxx/wp-content/plugins/woocommerce/includes/class-wc-emails.php:269
Stack trace:
#0 /home/xxx/wp-includes/class-wp-hook.php(287): WC_Emails->email_header(‘Rue Marie’)
#1 /home/xxx/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#2 /home/xxx/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#3 /home/xxx/wp-content/themes/rosemary-child/woocommerce/emails/stock_alert_email.php(13): do_action(‘woocommerce_ema…’, ‘Rue Marie’)
#4 /home/xxx/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include(‘/home/xxx/…’)
#5 /home/xxx/wp-content/plugins/woocommerce-product-stock-alert/classes/emails/class-woo-product-stock-alert-email.php(96): wc_get_template(’emails/stock_al…’, Arit seems it’ same issue for other plugin like here
https://www.ads-software.com/support/topic/uncaught-argumentcounterror-too-few-arguments-to-function-wc_emailsemail_head/
- The topic ‘email issue with last version of woocommerce’ is closed to new replies.