Fatal error: Call to a member function custom_field() on null
-
Hello,
We are getting the below error when generating the invoices in PDF. We have everything up to date in our WordPress
Fatal error: Call to a member function custom_field() on null/home/wksxlum/www/wp-content/themes/uncode-child/functions.php (398)#0 /home/wksxlum/www/wp-includes/class-wp-hook.php(326): incluir_nif_en_factura(‘P……’) #1 /home/wksxlum/www/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘Patricia Honora…’, Array) #2 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(99): apply_filters(‘wpo_wcpdf_billi…’, ‘P….’, Object(WPO\WC\PDF_Invoices\Documents\Invoice)) #3 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(111): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_billing_address() #4 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(42): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->billing_address() #5 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1213): include(‘/home/wksxlum/w…’) #6 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1071): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/wksxlum/w…’, Array) #7 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1026): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #8 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1093): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #9 /home/wksxlum/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(568): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’) #10 /home/wksxlum/www/wp-includes/class-wp-hook.php(324): WPO\WC\PDF_Invoices\Main->generate_document_ajax(”) #11 /home/wksxlum/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #12 /home/wksxlum/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/wksxlum/www/wp-admin/admin-ajax.php(192): do_action(‘wp_ajax_generat…’) #14 {main}
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.