Title: Error creating orders
Last modified: December 4, 2019

---

# Error creating orders

 *  Resolved [broomfish](https://wordpress.org/support/users/broomfish/)
 * (@broomfish)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-creating-orders/)
 * I am getting the error message below when trying to create a manual order. It
   has worked fine up until now. The only thing i have changed is upgraded from 
   Custom Payment Gateways for WooCommerce free version to Pro version and then 
   added an extra payment gateway (which isnt being used for the order i am trying
   to process), please help as i cant process my customers orders until fixed
 * Fatal error: Uncaught Error: Call to a member function date_i18n() on null in/
   home/broomfis/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/documents/class-wcpdf-document-number.php:133 Stack trace: #0 /
   home/broomfis/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/documents/class-wcpdf-document-number.php(77): WPO\WC\PDF_Invoices\
   Documents\Document_Number->apply_formatting(Object(WPO\WC\PDF_Invoices\Documents\
   Invoice), Object(WC_Order)) #1 /home/broomfis/public_html/wp-content/plugins/
   woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-
   document.php(435): WPO\WC\PDF_Invoices\Documents\Document_Number->__construct(‘
   P180102155’, Array, Object(WPO\WC\PDF_Invoices\Documents\Invoice), Object(WC_Order))#
   2 /home/broomfis/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/class-wcpdf-admin.php(481): WPO\WC\PDF_Invoices\Documents\Order_Document-
   >set_number(‘P180102155’) #3 /home/broomfis/public_html/wp-includes/cla in /home/
   broomfis/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/
   includes/documents/class-wcpdf-document-number.php on line 133

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

 *  Thread Starter [broomfish](https://wordpress.org/support/users/broomfish/)
 * (@broomfish)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-creating-orders/#post-12206361)
 * update: i have found that if i create the order with no products then it works,
   then i can add the products and update it. hope this helps
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-creating-orders/#post-12206454)
 * Thanks for reporting and apologies for the inconvenience. We identified this 
   issue yesterday and applied a fix already (here on [github](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/commit/26422054971ff558c897b7429798ea75e237e8d9))
   
   We will release this update tomorrow.
 * I believe it is actually not setting the invoice number until the order has been
   created that makes the difference between the plugin crashing or not, products
   should not make a difference here I believe.
 *  Thread Starter [broomfish](https://wordpress.org/support/users/broomfish/)
 * (@broomfish)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-creating-orders/#post-12207000)
 * Thanks for the reply. I have just created an order without setting the invoice
   number as you said and i worked fine, so i look forward to the update coming 
   available with the fix
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-creating-orders/#post-12207373)
 * 2.4.1 is out and should fix this issue, can you confirm it works on your setup
   too?

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

The topic ‘Error creating orders’ 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/error-creating-orders/#post-12207373)
 * Status: resolved