• Resolved fromtheabbey

    (@fromtheabbey)


    I just started getting an error today when trying to create a PDF packing slip. The plugin test still produced the error with all plugins disabled except WooCommerce.

    Exception: Failed to read the file
    #0 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(4891): Imagick->writeimage('/chroot/home/my...')
    #1 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(4988): Cpdf->addImagePngAlpha('/chroot/home/my...', 57.442913385827, 677.86417322835, 85.698590001831, 85.03937007874, 3)
    #2 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Adapter/CPDF.php(864): Cpdf->addPngFromFile('/chroot/home/my...', 57.442913385827, 677.86417322835, 85.698590001831, 85.03937007874)
    #3 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer/Image.php(110): Dompdf\Adapter\CPDF->image('/chroot/home/my...', 57.442913385827, 29.096456692913, 85.698590001831, 85.03937007874, 'normal')
    #4 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(293): Dompdf\Renderer\Image->render(Object(Dompdf\FrameDecorator\Image))
    #5 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(127): Dompdf\Renderer->_render_frame('image', Object(Dompdf\FrameDecorator\Image))
    #6 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Image))
    #7 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableCell))
    #8 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableRow))
    #9 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableRowGroup))
    #10 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Table))
    #11 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(148): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Block))
    #12 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow(NULL)
    #13 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(847): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #14 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(53): Dompdf\Dompdf->render()
    #15 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(674): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #16 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(709): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #17 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(340): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('download')
    #18 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('')
    #19 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #20 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #21 /chroot/home/mycathol/mycatholicbooksandmedia.com/html/wp-admin/admin-ajax.php(175): do_action('wp_ajax_generat...')
    #22 {main}
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    It seems like the error you are getting is at its core actually an issue with the PHP installation on your server, possibly due to incorrectly set write permissions. Your best bet is contacting your host and supplying that error to them, hopefully they will be able to help with this.

    If all else fails, you could also use the following workaround:

    • Replace the header image (which is currently PNG) to JPG format. This is not only lighter but will simply not need the PHP component (ImageMagick) that is giving you trouble here.
    • Enable “always use the most current settings” under Documents > Invoice in the PDF Invoice settings. This is needed because otherwise only new invoices will have the updated JPG logo and the old invoices will still have that PNG logo and trigger the error.

    Good luck!

    Thread Starter fromtheabbey

    (@fromtheabbey)

    Thank you for your speedy reply. I found the error as soon as I logged in to my server account. A database backup program had filled my allowed storage for the hosting site. I downloaded and deleted the backups and the PDF invoices and packing slips are working again. I did also change the logo to jpeg. I wasn’t aware png files put a load on PHP. Thank you!

    Hi
    I just started to get this message when I try to print Invoice from website

    Fatal error: Call to a member function get_option_value_from_array() on null
    #0 /home/images52/public_html/wp-includes/class-wp-hook.php(287): tracking_display_in_invoice(‘invoice’, Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #1 /home/images52/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #2 /home/images52/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /home/images52/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(83): do_action(‘wpo_wcpdf_befor…’, ‘invoice’, Object(Automattic\WooCommerce\Admin\Overrides\Order))
    #4 /home/images52/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(787): include(‘/home/images52/…’)
    #5 /home/images52/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(691): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/images52/…’, Array)
    #6 /home/images52/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(673): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
    #7 /home/images52/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(709): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #8 /home/images52/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(340): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’)
    #9 /home/images52/public_html/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #10 /home/images52/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #11 /home/images52/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #12 /home/images52/public_html/wp-admin/admin-ajax.php(175): do_action(‘wp_ajax_generat…’)
    #13 {main}

    Any ideas as to why and how to address this please?

    Plugin Contributor Ewout

    (@pomegranate)

    @jerry-nairn I have answered your question in your own thread here, your error is not related to the ones in this topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error’ is closed to new replies.