Fatal Error
-
It’s the thrid time now that my shop is getting this error when trying to generate the PDF invoice. WP triggers a fatal error email sent to the admin mailbox, and the PDF cannot be generated or re-generated at all – this happens with particular orders and probably once every 2 months now.
—
Fatal error: Call to a member function get_reason() on int
/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php (2409) 0 /public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(2444): WC_Order->add_order_item_totals_refund_rows() 1 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocumentMethods.php(948): WC_Order->get_order_item_totals() 2 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(162): WPO\IPS\Documents\OrderDocumentMethods->get_woocommerce_totals() 3 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1754): include(‘…’) 4 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1610): WPO\IPS\Documents\OrderDocument->render_template() 5 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1567): WPO\IPS\Documents\OrderDocument->get_html() 6 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1634): WPO\IPS\Documents\OrderDocument->get_pdf() 7 /public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Main.php(517): WPO\IPS\Documents\OrderDocument->output_pdf() 8 /public_html/wp-includes/class-wp-hook.php(324): WPO\IPS\Main->generate_document_ajax() 9 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 10 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action() 11 /public_html/wp-admin/admin-ajax.php(192): do_action() 12 {main}

The topic ‘Fatal Error’ is closed to new replies.