• Resolved arrialexa1

    (@arrialexa1)


    Hello,

    I’m having some issues with the plugin in regards to a custom plugin I am using.

    Users are able to subscribe to a service we offer, the outgoing emails confirming the purchase work perfectly.

    When myself or a user try to cancel a subscription an error comes up from Kadence, I’m guessing as there is no way template for it? Is there a way to get it so that if there is no template it uses the default Woo Commerce email?

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function Kadence_Woomail_Designer::add_email_header(), 1 passed in /home/XXX/public_html/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /home/XXX/public_html/wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php:510 Stack trace: #0 /home/XXX/public_html/wp-includes/class-wp-hook.php(286): Kadence_Woomail_Designer->add_email_header('Your subscripti...') #1 /home/XXX/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /home/XXX/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /home/XXX/public_html/wp-content/plugins/subscriptio/templates/emails/customer-subscription-cancelled.php(14): do_action('woocommerce_ema...', 'Your subscripti...') #4 /home/XXX/public_html/wp-content/plugins/subscriptio/includes/classes/libraries/rightpress-helper.class.php(87): include('/home/XXX/...') #5 /home/XXX/public_html/wp-co in /home/XXX/public_html/wp-content/plugins/kadence-woocommerce-email-designer/kadence-woocommerce-email-designer.php on line 510

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ben Ritner – Kadence WP

    (@britner)

    Hey,
    This error states that in your plugin “subscriptio” they are missing the second email variable argument when calling do_action( ‘woocommerce_email_header’ ).

    If you look here you can see how woocommerce does it:

    https://github.com/woocommerce/woocommerce/blob/master/templates/emails/customer-completed-order.php#L25

    I suggest just asking the plugin author to check that their template: /templates/emails/customer-subscription-cancelled.php have the email object as the second variable when calling ‘woocommerce_email_header’.

    Let me know what they say.

    Ben

    Thread Starter arrialexa1

    (@arrialexa1)

    Hello Ben,

    Thank you for taking the time to get back to me, the dev got back to me and said:

    I understand the issue. I will look into our code and let you know if there are any ways to fix this in the current version.

    So fingers crossed he can push a fix so I can use your great plugin!

    Jonny

    Plugin Author Ben Ritner – Kadence WP

    (@britner)

    Let me know if I can help further, I’m closing this for now.

    Ben

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subscription Cancel Email Error’ is closed to new replies.