Title: PHP Fatal error
Last modified: August 21, 2016

---

# PHP Fatal error

 *  Resolved [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-32/)
 * Getting this in debug.log
 * `PHP Fatal error: Call to undefined method WooCommerce_PDF_Invoices::get_order_taxes_custom()
   in /htdocs/wp-content/themes/canvas-child/woocommerce/pdf/Custom Business/invoice.
   php on line 198`
 * [https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-32/#post-4831654)
 * Hello Chirag,
    It looks like you are calling a non-existent function. There is
   no `get_order_taxes_custom()` in the plugin by default, it’s probably a function
   that you created to return your own taxes formatting? Whenever you update, modifications
   you make to the plugin core files are overwritten. That’s why I recommend to 
   copy your template files to your theme folder (like you did). Inside the template
   php file you’re free to create as many functions/php code as you want, so there’s
   no need to modify the core files in that case.
 * Let me know if you still have any questions though!
 * Ewout
 *  Thread Starter [Chirag Vora](https://wordpress.org/support/users/chirag740/)
 * (@chirag740)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-32/#post-4831664)
 * Hi Ewout, thanks for the reply.
 * I had customised the template and placed it in within woocommerce folder within
   the active theme directory.
    The problems arised after updating this plugin and
   even the premium template plugin.
 * I am mailing you the details. Will appreciate if you can have a look.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-32/#post-4831666)
 * Hi Chirag,
    It does not matter if you placed the customized template in the theme
   folder, if you modify core functions (you are calling a function `$wpo_wcpdf-
   >get_order_taxes_custom()` that does not exist in the plugin), they will still
   be overwritten. The template itself will remain unchanged though.
 * Ewout

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

The topic ‘PHP Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/php-fatal-error-32/#post-4831666)
 * Status: resolved