Title: Fatal Error line 416
Last modified: September 24, 2018

---

# Fatal Error line 416

 *  Resolved [Chris](https://wordpress.org/support/users/smith42c/)
 * (@smith42c)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/)
 * Suddenly I started having issues with orders. For one particular product, no 
   order related emails are getting sent, and in my multivendor commissions section
   the commissions aren’t getting calcuated. The orders and payments all go through
   however. Extensive troubleshooting got me to this point. Trying to regenerate
   order commissions in WC-Marketplace shows the fatal error below. Also, I can 
   no longer access the email customizer. I don’t think that I installed anything
   new and I ruled out the theme. I am still trying a few things but I’m striking
   out. The only thing that immediately fixes this is to deactivate the plugin. 
   I have tried deleting and reinstalling as well. Any ideas? Thank you.
 * Fatal error: Uncaught ArgumentCountError: Too few arguments to function Kadence_Woomail_Designer::
   add_email_header(), 1 passed in /var/www/h3b905/staging-site/wp-includes/class-
   wp-hook.php on line 286 and exactly 2 expected in /var/www/h3b905/staging-site/
   wp-content/plugins/off-kadence-woocommerce-email-designer/kadence-woocommerce-
   email-designer.php:416 Stack trace: #0 /var/www/h3b905/staging-site/wp-includes/
   class-wp-hook.php(286): Kadence_Woomail_Designer->add_email_header(‘You have 
   a new …’) #1 /var/www/h3b905/staging-site/wp-includes/class-wp-hook.php(310):
   WP_Hook->apply_filters(NULL, Array) #2 /var/www/h3b905/staging-site/wp-includes/
   plugin.php(453): WP_Hook->do_action(Array) #3 /var/www/h3b905/staging-site/wp-
   content/plugins/dc-woocommerce-multi-vendor/templates/emails/vendor-new-order.
   php(15): do_action(‘woocommerce_ema…’, ‘You have a new …’) #4 /var/www/h3b905/
   staging-site/wp-content/plugins/woocommerce/includes/wc-core-functions.php(210):
   include(‘/var/www/h3b905…’) #5 /var/www/h3b905/staging-site/wp-co in /var/www/
   h3b905/staging-site/wp-content/plugins/off-kadence-woocommerce-email-designer/
   kadence-woocommerce-email-designer.php on line 416

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10718493)
 * Hey,
    Thanks for posting. It looks like WC-Marketplace doesn’t supply two variables
   when calling ‘woocommerce_email_header’. Whereas in WooCommerce it always does:
 * [https://github.com/woocommerce/woocommerce/blob/master/templates/emails/customer-completed-order.php#L25](https://github.com/woocommerce/woocommerce/blob/master/templates/emails/customer-completed-order.php#L25)
 * So this plugin is looking for that second variable and it isn’t there in the 
   Marketplace email templates. see: [https://github.com/dualcube/dc-woocommerce-multi-vendor/blob/master/templates/emails/vendor-new-order.php#L15](https://github.com/dualcube/dc-woocommerce-multi-vendor/blob/master/templates/emails/vendor-new-order.php#L15)
 * This would be a really simple fix for WC-Marketplace to update there template
   to follow Woocommerce core. I’ll see if I can email there support and ask them
   to do that. Otherwise, you would have to manually override the WC-Marketplace
   files and add in the $email variable to the woocommerce action.
 * Ben
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10718584)
 * I added a topic here we’ll see what they say:
 * [https://wordpress.org/support/topic/add-email-var-to-templates/](https://wordpress.org/support/topic/add-email-var-to-templates/)
 * Ben
 *  Thread Starter [Chris](https://wordpress.org/support/users/smith42c/)
 * (@smith42c)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10718627)
 * That’s really awesome of you. It was so weird because for a few weeks it would
   work great save for like 1 or 2 where they got stuck. Then yesterday it just 
   totally quit.
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10718647)
 * Yeah, it would depend on which order was loaded in the customizer and which email
   templates were being used from that order. Hopefully, we can get this resolved
   quickly.
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10746710)
 * [https://wordpress.org/support/topic/add-email-var-to-templates/#post-10745272](https://wordpress.org/support/topic/add-email-var-to-templates/#post-10745272)
 * Looks like they updated the GitHub so I would guess that makes it live soon.
 * Ben
 *  Thread Starter [Chris](https://wordpress.org/support/users/smith42c/)
 * (@smith42c)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10749683)
 * It’s perfect! Thanks again for your help to fix this, it was awesome.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fatal Error line 416’ is closed to new replies.

 * ![](https://ps.w.org/kadence-woocommerce-email-designer/assets/icon-256x256.png?
   rev=3115863)
 * [Kadence WooCommerce Email Designer](https://wordpress.org/plugins/kadence-woocommerce-email-designer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kadence-woocommerce-email-designer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/)
 * [Active Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Chris](https://wordpress.org/support/users/smith42c/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/fatal-error-line-416/#post-10749683)
 * Status: resolved