Suddenly getting an error
-
Hi Ewout,
I am getting a strange error. I can’t show a pdf anymore. When customers go to their account and clcik download pdf they get the following (I placed the “-” to protect my customer):
Fatal error: Call to a member function get_id() on boolean
#0 /home/——-/public_html/wp-includes/class-wp-hook.php(288): EVOTX_WC->order_item_name(‘test’, Object(WC_Order_Item_Product))
#1 /home/——-/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(‘test’, Array)
#2 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(494): apply_filters(‘woocommerce_ord…’, ‘test’, Object(WC_Order_Item_Product), false)
#3 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(94): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_order_items()
#4 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(698): include(‘/home/kastanje/…’)
#5 /home/———-/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(602): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/kastanje/…’, Array)
#6 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(584): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
#7 /home/———/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(620): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#8 /home/——–/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(255): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
#9 /home/———–/public_html/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
#10 /home/kastanje/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#11 /home/———-/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#12 /home/————-/public_html/wp-admin/admin-ajax.php(167): do_action(‘wp_ajax_generat…’)
#13 {main}Also when I go thru the backend there is no pdf but this error.
Hopefully you know what the problem is. I don’t ??
Cheers
Marco
- The topic ‘Suddenly getting an error’ is closed to new replies.