Error Generating Invoice PDF in WooCommerce PDF Invoices & Packing Slips

[ad_1]

Hello,

I am encountering an issue with the WooCommerce PDF Invoices & Packing Slips plugin on my website https://anyelu.es/. When attempting to generate a PDF invoice for an order, I am faced with the following fatal error:

Fatal error: Call to a member function custom_field() on null
/home/customer/www/anyelu.es/public_html/wp-content/plugins/correos-oficial/src/Infrastructure/Common/Shipping/DniRequired.php (127)
#0 /home/customer/www/anyelu.es/public_html/wp-includes/class-wp-hook.php(326): include_nif_in_invoice('M\xC3\xB3nica Nuez \xC3\x81...')
#1 /home/customer/www/anyelu.es/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('M\xC3\xB3nica Nuez \xC3\x81...', Array)
#2 /home/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(93): apply_filters('wpo_wcpdf_billi...', 'M\xC3\xB3nica Nuez \xC3\x81...', Object(WPO\WC\PDF_Invoices\Documents\Invoice))
#3 /home/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(102): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_billing_address()
#4 /home/customer/www/anyelu.es/public_html/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/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1138): include('/home/customer/...')
#6 /home/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(982): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template('/home/customer/...', Array)
#7 /home/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(937): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
#8 /home/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1004): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
#9 /home/customer/www/anyelu.es/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(518): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline')
#10 /home/customer/www/anyelu.es/public_html/wp-includes/class-wp-hook.php(324): WPO\WC\PDF_Invoices\Main->generate_document_ajax('')
#11 /home/customer/www/anyelu.es/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#12 /home/customer/www/anyelu.es/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /home/customer/www/anyelu.es/public_html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_generat...')
#14 {main}

This error specifically occurs when trying to view or download invoices in PDF format. Below are the relevant details of the error and the actions leading up to it:

  • WordPress Version: 6.4.1
  • WooCommerce Version: 8.3.0
  • WooCommerce PDF Invoices & Packing Slips Plugin Version: 3.7.3

Given this issue, I am currently unable to provide PDF invoices to my customers, which is a critical functionality for my business. I would appreciate any assistance or guidance in resolving this issue as soon as possible.

Could you please provide me with a solution or suggestion to address this error?

Thank you for your attention. I look forward to your prompt response.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer