Fatal error: Call to member function shipping_address() on null
-
When trying to create a PDF Invoice or PDF Packing slip, I am getting the following errors:
PDF Invoice:
Fatal error: Call to a member function shipping_address() on null
/home/customer/www/…/public_html/wp-content/themes/bookshop/woocommerce/pdf/Custom/invoice.php (8)
#0 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(976): include()
#1 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(879): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/customer/…’, Array)
#2 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(834): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
#3 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(901): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#4 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(466): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
#5 /home/customer/www/…/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
#6 /home/customer/www/…/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array)
#7 /home/customer/www/…/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/customer/www/…/public_html/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_generat…’)
#9 {main}PDF Packing Slip:
Fatal error: Call to a member function shipping_address() on null
/home/customer/www/…/public_html/wp-content/themes/bookshop/woocommerce/pdf/Custom/packing-slip.php (8)
#0 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(976): include()
#1 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(879): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/customer/…’, Array)
#2 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(834): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
#3 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(901): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#4 /home/customer/www/…/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(466): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
#5 /home/customer/www/…/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
#6 /home/customer/www/…/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(”, Array)
#7 /home/customer/www/…/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /home/customer/www/…/public_html/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_generat…’)
#9 {main}Name of the impacted domain truncated to …
Support Troubleshooting Notes:
- All plugins and WordPress are at current versions
- All plugins have been deactivated (except woocommerce and PDF Invoices & Packing Slips for WooCommerce) to see if it was a plugin conflict and the problem still occured.
- The client has auto-update enabled for the plugin
- The client reported that the problem started with orders received 3-4 weeks ago.
The page I need help with: [log in to see the link]
- The topic ‘Fatal error: Call to member function shipping_address() on null’ is closed to new replies.