• Resolved Omar Faruk

    (@omarfrk)


    I noticed a Patal error for WooCommerce PDF Invoices & Packing Slips. When I try to print or download an invoice or packing clip, it shows me the Patal error.

    Fatal error: Function name must be a string
    
    /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FontMetrics.php (143)
    
    #0 /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FontMetrics.php(72): Dompdf\FontMetrics->loadFontFamilies()
    #1 /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(293): Dompdf\FontMetrics->__construct(Object(Dompdf\Adapter\CPDF), Object(Dompdf\Options))
    #2 /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(50): Dompdf\Dompdf->__construct(Object(Dompdf\Options))
    #3 /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(755): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #4 /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(802): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #5 /home/xyrxm6kbfok1/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(373): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline')
    #6 /home/xyrxm6kbfok1/public_html/wp-includes/class-wp-hook.php(307): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('')
    #7 /home/xyrxm6kbfok1/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
    #8 /home/xyrxm6kbfok1/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #9 /home/xyrxm6kbfok1/public_html/wp-admin/admin-ajax.php(187): do_action('wp_ajax_generat...')
    #10 {main}

    I need to fix it. Now I am using another plugin because it does not work. But I want to use the pluin. I need help.
    Thank you.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @omarfrk,

    Are you using a custom template or any custom code that’s targeting the plugin?

    Plugin Contributor Ewout

    (@pomegranate)

    Could you try the ‘Reinstall fonts’ button on the Status tab of the PDF invoice settings?

    Thread Starter Omar Faruk

    (@omarfrk)

    Hey Ewout! I just click on “Reinstall fonts”. Now it’s working. Thank you very much!

    Plugin Contributor Ewout

    (@pomegranate)

    This means that something or someone had deleted the font files from the temporary fonts folder (you can find the exact location in that same “Status” tab). You may want to check what deleted this to prevent this from happening again in the future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘FATAL ERROR WooCommerce PDF Invoices & Packing Slips’ is closed to new replies.