• Resolved jlev00

    (@jlev00)


    Hi Ben – I’m having some trouble with your plugin and another plugin (WooCommerce Product Stock Alert by WC Marketplace). The latter fires off “back in stock” emails, and specifies the recipient email address in code. As such, no recipient appears on the Woocommerce–>Email tab for the three emails.

    I’m getting this (edited) error every time the Stock Alert tries to send an email:

    [Sun Dec 30 07:57:24.518072 2018] [proxy_fcgi:error] [pid 4530] [client 127.0.0.1:50546] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Kadence_Woomail_Designer::add_email_header(), 1 passed in /home/xxxxxxx.cloudwaysapps.com/yyyyyyyyy/public_html/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/xxxxxxx.cloudwaysapps.com/yyyyyyyyy/public_html/wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php:466\nStack trace:\n#0 /home/xxxxxxx.cloudwaysapps.com/yyyyyyyyy/public_html/wp-includes/class-wp-hook.php(286): Kadence_Woomail_Designer->add_email_header('\\xE5\\x95\\x86\\xE5\\x93\\x81\\xE3\\x81\\x8C\\xE5\\x86\\x8D\\xE5\\x85\\xA5...')\n#1 /home/xxxxxxx.cloudwaysapps.com/yyyyyyyyy/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)\n#2 /home/xxxxxxx.cloudwaysapps.com/yyyyyyyyy/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)\n#3 /home/xxxxxxx.cloudwaysapps.com/yyyyyyyyy/public_html/wp-content/plugins/woocommerce-product-stock-alert/templates/emails/stock_alert_email.p...\n', referer: https://zzzzzzzzz.com/wp-admin/post.php?post=aaaaaaa&action=edit

    I’m happy to have your plugin style the Stock Notification emails (though they don’t appear in the customizer dropdown), but it looks like you might need something to handle the case where the email is specified in code.

    I haven’t contacted the Stock Alert plugin developers yet. Would like to hear your thoughts.

The topic ‘Error when email address specified in code’ is closed to new replies.