• Resolved mariasc00

    (@mariasc00)


    Hello.
    I'm having problems with the pdf (preview and download). 
    I have the Premium Template plugin too. Everything was working fine before. 
    We are also working with the "Checkout Field Editor for WooCommerce" plugin to add the ID Number for the client on the checkout page.
    I also have another site with the same plugins but the Premium Template and its working ok.
    
    I tried changing the template to "simple" but didn't work.
    I also tried swithching off the Checkout Field plugin and deleting the custome field on the custom blocks, and didn't work either.
    
    Could you help me to solve this error?
    
    This is the error I'm getting:
    
    Fatal error: Call to a member function custom_field() on null
    /home/fisinerg/public_html/wp-content/plugins/correos-oficial/src/Infrastructure/Common/Shipping/DniRequired.php (109)
    #0 /home/fisinerg/public_html/wp-includes/class-wp-hook.php(312): include_nif_in_invoice('Ana Mar\xC3\xADa Pard...') 
    #1 /home/fisinerg/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('Ana Mar\xC3\xADa Pard...', Array) 
    #2 /home/fisinerg/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(93): apply_filters('wpo_wcpdf_billi...', 'Ana Mar\xC3\xADa Pard...', Object(WPO\WC\PDF_Invoices\Documents\Invoice)) #3 /home/fisinerg/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/fisinerg/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/templates/Simple Premium/invoice.php(42): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->billing_address() 
    #5 /home/fisinerg/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(976): include('/home/fisinerg/...') 
    #6 /home/fisinerg/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/fisinerg/...', Array) 
    #7 /home/fisinerg/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() 
    #8 /home/fisinerg/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() 
    #9 /home/fisinerg/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('download') 
    #10 /home/fisinerg/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('') 
    #11 /home/fisinerg/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array) 
    #12 /home/fisinerg/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 
    #13 /home/fisinerg/public_html/wp-admin/admin-ajax.php(188): do_action('wp_ajax_generat...') 
    #14 {main}
    
    Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mariasc00

    (@mariasc00)

    Found the error: another plugin “Correos oficial” was asking for dni too.
    Thanks!

    Plugin Contributor Mohamad

    (@mohamadntr)

    Hi Maria,

    I have noticed that you are currently using the Correos Oficial plugin. Unfortunately, this plugin has not been updated in the last two years and is experiencing issues working with our new version plugin. I would recommend finding an alternative plugin that is up to date.

    However, I have updated the code of the Correos Oficial plugin to make it compatible with our latest version and created a beta version for you. You can download the beta version of this plugin using this link: https://we.tl/t-Jk2q7z7D44.

    This should resolve your issue, but let me know if you have any issues.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    For all those who want to fix the issue as well, and have landed here when the link above is expired (it will long only 7 days), please see this topic opened on the Correos Oficial support forums, where you will find a non-official beta release with the fix (in Spanish): Solución: Error fatal con ?PDF Invoices & Packing Slips for WooCommerce?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘200: parsererror + Checkout Field Editor for WooCommerce’ is closed to new replies.