Not Loading custom PDF Invioce
-
Hi there,
I’ve added a custom template to my child theme in SFTP only the template isnt loading.
I get an error message with the info in a HTML, not a downloadable PDF.
The error message reads the following:
Fatal error: Using $this when not in object context
#0 /nas/content/live/ecoffeecupcom/wp-content/themes/atelier-child/woocommerce/pdf/ecoffeecom/invoice.php(197): WC_Email::get_from_address()
#1 /nas/content/live/ecoffeecupcom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(704): include(‘/nas/content/li…’)
#2 /nas/content/live/ecoffeecupcom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(608): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/nas/content/li…’, Array)
#3 /nas/content/live/ecoffeecupcom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(590): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
#4 /nas/content/live/ecoffeecupcom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(626): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#5 /nas/content/live/ecoffeecupcom/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(304): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’)
#6 [internal function]: WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
#7 /nas/content/live/ecoffeecupcom/wp-includes/class-wp-hook.php(286): call_user_func_array(Array, Array)
#8 /nas/content/live/ecoffeecupcom/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
#9 /nas/content/live/ecoffeecupcom/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#10 /nas/content/live/ecoffeecupcom/wp-admin/admin-ajax.php(167): do_action(‘wp_ajax_generat…’)
#11 {main}I was working before, but we did a migration – I checked the SFTP folders, and the template is still there, just not loading properly.
Thank you in advance,
Regards,
Mitch
The topic ‘Not Loading custom PDF Invioce’ is closed to new replies.