• Resolved srozenbaum

    (@srozenbaum)


    Hello,

    This morning, I have updated to Woocommerce to 3.5.2 and PDF Invoices and Packing Slips to 2.2.5 and the following things starter happening:

    When clicking on the “Invoice” icon in the Woocommerce Orders page, instead of the Invoice opening in a new window, a window opens with the following message:

    Fatal error: Class ‘DOMDocument’ not found
    #0 /home/pearllas/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(50): Dompdf\Dompdf->loadHtml(‘…’)
    #1 /home/pearllas/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(585): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #2 /home/pearllas/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(620): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #3 /home/pearllas/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(234): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
    #4 /home/pearllas/public_html/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #5 /home/pearllas/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #6 /home/pearllas/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #7 /home/pearllas/public_html/wp-admin/admin-ajax.php(100): do_action(‘wp_ajax_generat…’)
    #8 {main}

    If anyone has any idea of how all those things relate to each other, please help.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! It looks like your PHP installation is missing a vital component to create PDF documents, which is DOMDocument. This is a very common PHP extension, contact your host and they should be able to add it for you without much trouble (some hosting services let you enable this yourself via cpanel too, DOMDocument is enabled by default).

Viewing 1 replies (of 1 total)
  • The topic ‘Error Showing Instead of Invoice’ is closed to new replies.