Title: Plugin causing fatal error with outdated WC hook
Last modified: June 3, 2020

---

# Plugin causing fatal error with outdated WC hook

 *  Resolved [cyjosh](https://wordpress.org/support/users/cyjosh/)
 * (@cyjosh)
 * [6 years ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-with-outdated-wc-hook/)
 * Your plugin override/use of the ‘woocommerce_order_item_meta_start’ hook on line
   439 of `/woocommerce-pdf-invoices/includes/abstracts/abstract-invoice.php` is
   using an outdated number of parameters and causing a fatal error when other plugins
   use it. See [https://github.com/woocommerce/woocommerce/issues/18437](https://github.com/woocommerce/woocommerce/issues/18437)
 * When I tried to hook into that action it allows orders to process payment and
   create an order in WooCommerce. The customer sees an empty error notification
   box and remains on the order review page with the option to submit again, resulting
   in duplicate orders/payments each time they try.
 * To fix this, simply add the default `false` 4th parameter to your do_action call.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-with-outdated-wc-hook/#post-13099550)
 * Thanks [@cyjosh](https://wordpress.org/support/users/cyjosh/). This will be fixed
   in the next update.
    [https://github.com/baselbers/woocommerce-pdf-invoices/commit/c37e7ac7a11abefa5c1699dcd8d8f5c087200de3](https://github.com/baselbers/woocommerce-pdf-invoices/commit/c37e7ac7a11abefa5c1699dcd8d8f5c087200de3)
 * Feel free to send us an email to our premium support and we’ll provide you with
   a free license for our premium plugin.

Viewing 1 replies (of 1 total)

The topic ‘Plugin causing fatal error with outdated WC hook’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/plugin-causing-fatal-error-with-outdated-wc-hook/#post-13099550)
 * Status: resolved