• Resolved els0974

    (@els0974)


    Greetings.
    At this moment I wanted to take an invoice for a period and I get the following error, I would not know since when it happened since last week, it worked correctly, I have already updated to version 2.14.5, and I have wordpress 6.0

    Here I indicate the window that shows the error, previously I allowed myself to download the PDF without problems.

    I hope you help me, and thank you.

    Exception: no decode delegate for this image format `PNG’ @ error/constitute.c/ReadImage/566

    /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php (5721)

    #0 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(5721): Imagick->__construct ()
    #1 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(5857): Dompdf\Cpdf- >addImagePngAlpha()
    #2 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Adapter/CPDF.php(846): Dompdf\ Cpdf->addPngFromFile()
    #3 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer/Image.php(65): Dompdf\ Adapter\CPDF->image()
    #4 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(290): Dompdf\Renderer\ Image->render()
    #5 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(127): Dompdf\Renderer- >_render_frame()
    #6 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer- >render()
    #7 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer- >render()
    #8 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer- >render()
    #9 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer- >render()
    #10 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(194): Dompdf\Renderer- >render()
    #11 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(150): Dompdf\ renderer->render()
    #12 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(891): Dompdf\ FrameReflower\Page->reflow()
    #13 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(820): Dompdf\FrameDecorator\ AbstractFrameDecorator->reflow()
    #14 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(54): Dompdf\Dompdf- >render()
    #15 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(752): WPO\ WC\PDF_Invoices\PDF_Maker->output()
    #16 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(814): WPO\ WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #17 /var/www/vhosts/elcinaro.com/httpdocs/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(376): WPO\WC\PDF_Invoices\ Documents\Order_Document->output_pdf()
    #18 /var/www/vhosts/elcinaro.com/httpdocs/wp-includes/class-wp-hook.php(307): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax()
    #19 /var/www/vhosts/elcinaro.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #20 /var/www/vhosts/elcinaro.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action()
    #21 /var/www/vhosts/elcinaro.com/httpdocs/wp-admin/admin-ajax.php(187): do_action()
    #22 {main}

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter els0974

    (@els0974)

    Another note:
    I can tell you that when using the Chrome browser, the PDF creator works correctly, where it generates the error is in Mozilla.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @els0974,

    Could you send us a screenshot of your?System Configuration?and?Write Permissions, that you’ll find under?WooCommerce > PDF Invoices > Status?tab? You can use imgbb.com to upload the screenshot(s) and then share the uploaded image(s) URL here.

    Thread Starter els0974

    (@els0974)

    Thread Starter els0974

    (@els0974)

    As I mentioned before, when using the Chome browser, the Plugin works perfectly, then Mozilla is where it indicates the error when requesting a PDF of Invoice.

    https://ibb.co/PccgRCT

    This is how it is displayed when requesting an invoice in the Mozzila Browser

    Plugin Contributor Yordan Soares

    (@yordansoares)

    It looks like your ImageMagick is not well configured, could you contact your hosting provider and let them know about this error? They should be able to configure it to allow PNG, that seems to be the root issue here.

    If this is because you’re using a PNG logo, you can switch it for a JPEG version as a workaround, under WooCommerce?> PDF Invoices?> General > Shop header/logo. Although, it’s still recommended contacting your hosting to extend the ImageMagick compatibility with PNG too.

    Thread Starter els0974

    (@els0974)

    Thank you very much, apparently the image should be JPG
    Likewise, I have already reconfigured the host so that this allows the PNG format

    Thank you, we have already solved the problem

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that you managed to make it work!

    I just want to make it clear that you can indeed use PNG as well, only that your server has to have the corresponding PHP extension properly configured. However, my recommendation is continuing using JPEG instead in the specific size to be displayed, to get the PDF files in the smallest possible size, so you can optimize your server resources while creating each PDF document. This is specially useful while creating bulk documents ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error creating PDF to Take an invoice’ is closed to new replies.