Title: Critical error while printing invoice
Last modified: May 25, 2023

---

# Critical error while printing invoice

 *  [Tejas Hapani](https://wordpress.org/support/users/tejashapani-1/)
 * (@tejashapani-1)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/critical-error-while-printing-invoice/)
 * Hello,
 * We are facing issue while printing an invoice for orders.
 * Here is the error log:
 *     ```wp-block-code
       [25-May-2023 14:23:10 UTC] PHP Fatal error: Uncaught TypeError: Reepay\Checkout\OrderFlow\ThankyouPage::override_template(): Argument #3 ($args) must be of type array, null given, called in /customers/c/c/b/rwdcph.com/httpd.www/wp-includes/class-wp-hook.php on line 308 and defined in /customers/c/c/b/rwdcph.com/httpd.www/wp-content/plugins/reepay-checkout-gateway/includes/OrderFlow/ThankyouPage.php:57Stack trace:
   
       0 wp-includes/class-wp-hook.php(308): Reepay\Checkout\OrderFlow\ThankyouPage->override_template('/customers/c/c/…', 'print-order.php', NULL, '/customers/c/c/…', '/customers/c/c/…')
   
       1 wp-includes/plugin.php(205): WP_Hook->apply_filters('/customers/c/c/…', Array)
   
       2 wp-content/plugins/woocommerce/includes/wc-core-functions.php(313): apply_filters('wc_get_template', '/customers/c/c/…', 'print-order.php', NULL, '/customers/c/c/…', '/customers/c/c/…')
   
       3 wp-content/plugins/woocommerce-delivery-notes/includes/class-wcdn-print.php(431): wc_get_template('print-order.php', NULL, '/customers/c/c/…', '/customers/c/c/…')
   
       4 wp-content/plugins/woocommerce-delivery-notes/includes/class-wcdn-print.php(385): WCDN_Print->generate_template('25403', 'invoice', NULL)
   
       5 wp-includes/class-wp-hook.php(308): WCDN_Print->template_redirect_admin('')
   
       6 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
   
       7 wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       8 wp-admin/admin-ajax.php(188): do_action('wp_ajax_print_o…')
   
       9 {main}
   
       thrown in wp-content/plugins/reepay-checkout-gateway/includes/OrderFlow/ThankyouPage.php on line 57
       ```
   
 * Can you please help us to fix the issue?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [nick1122](https://wordpress.org/support/users/nick1122/)
 * (@nick1122)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/critical-error-while-printing-invoice/#post-16785318)
 * Hi [@tejashapani-1](https://wordpress.org/support/users/tejashapani-1/) ,
 * Thank you for sharing the error details. The error is occurring because you are
   using the Reepay option on your site. [https://prnt.sc/RpKrtxzhH_8p](https://prnt.sc/RpKrtxzhH_8p)
 * In order to identify the cause of the problem, we kindly request your assistance
   in performing a troubleshooting step.
 * To determine if the issue persists due to conflicts with plugins or your current
   theme, we recommend temporarily deactivating all plugins and switching to the
   default theme. This will help us isolate the root cause of the problem and provide
   a targeted solution.
 * Please let me know the result of the above troubleshoot.
   Regards, Nikhil.

Viewing 1 replies (of 1 total)

The topic ‘Critical error while printing invoice’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-delivery-notes/assets/icon-256x256.jpg?rev=2829362)
 * [Print Invoice & Delivery Notes for WooCommerce](https://wordpress.org/plugins/woocommerce-delivery-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-delivery-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-delivery-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-delivery-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-delivery-notes/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [nick1122](https://wordpress.org/support/users/nick1122/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/critical-error-while-printing-invoice/#post-16785318)
 * Status: not resolved