• Resolved broomfish

    (@broomfish)


    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

    (@broomfish)

    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

    (@pomegranate)

    Thanks for reporting and apologies for the inconvenience. We identified this issue yesterday and applied a fix already (here on github)
    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

    (@broomfish)

    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

    (@pomegranate)

    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.