• Dan

    (@archfabricationandmachine)


    Hello, having this error when i attempt to generate PDF Packing Slips.

    Says:

    Exception: time limit exceeded `/home/myredacteddomain.com/public_html/wp-content/uploads/invoice-logo_resize.png’ @ fatal/cache.c/GetImagePixelCache/1867

    /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/lib/Cpdf.php (6107) 0 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/lib/Cpdf.php(6107): Imagick->readImage() 1 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/lib/Cpdf.php(6258): WPO\IPS\Vendor\Dompdf\Cpdf->addImagePngAlpha() 2 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Adapter/CPDF.php(672): WPO\IPS\Vendor\Dompdf\Cpdf->addPngFromFile() 3 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer/Image.php(63): WPO\IPS\Vendor\Dompdf\Adapter\CPDF->image() 4 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(305): WPO\IPS\Vendor\Dompdf\Renderer\Image->render() 5 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(140): WPO\IPS\Vendor\Dompdf\Renderer->_render_frame() 6 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(207): WPO\IPS\Vendor\Dompdf\Renderer->render() 7 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(207): WPO\IPS\Vendor\Dompdf\Renderer->render() 8 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(207): WPO\IPS\Vendor\Dompdf\Renderer->render() 9 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(207): WPO\IPS\Vendor\Dompdf\Renderer->render() 10 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Renderer.php(207): WPO\IPS\Vendor\Dompdf\Renderer->render() 11 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/FrameReflower/Page.php(148): WPO\IPS\Vendor\Dompdf\Renderer->render() 12 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(915): WPO\IPS\Vendor\Dompdf\FrameReflower\Page->reflow() 13 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/strauss/dompdf/dompdf/src/Dompdf.php(817): WPO\IPS\Vendor\Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() 14 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Makers/PDFMaker.php(63): WPO\IPS\Vendor\Dompdf\Dompdf->render() 15 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1645): WPO\IPS\Makers\PDFMaker->output() 16 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Documents/OrderDocument.php(1711): WPO\IPS\Documents\OrderDocument->get_pdf() 17 /home/myredacteddomain.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/Main.php(569): WPO\IPS\Documents\OrderDocument->output_pdf() 18 /home/myredacteddomain.com/public_html/wp-includes/class-wp-hook.php(353): WPO\IPS\Main->generate_document_ajax() 19 /home/myredacteddomain.com/public_html/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters() 20 /home/myredacteddomain.com/public_html/wp-includes/plugin.php(523): WP_Hook->do_action() 21 /home/myredacteddomain.com/public_html/wp-admin/admin-ajax.php(192): do_action() 22 {main}

    Not sure where to go from here. Please Help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    @archfabricationandmachine Could you try activating the “Embed images” option under PDF Invoices > Advanced > Settings and let us know if that solves the issue?

    Thread Starter Dan

    (@archfabricationandmachine)

    I’ve tried multiple different image sizes and formats (png, webp, jpeg). I also tried embed images. Same error. I’ve been using this plugin for a long time (years) and never had this issue. Configuration has been the same, no changes on my end and now getting this error. I did switch from shared hosting to VPS hosting though.

    • This reply was modified 3 days, 7 hours ago by Dan. Reason: Added text
    Plugin Contributor dwpriv

    (@dwpriv)

    You can forward the error code you shared to your host provider, since the time limit of PHP executions is controlled on their end. Let us know if they can resolve it.

    Thread Starter Dan

    (@archfabricationandmachine)

    I have set the php “max_execution_time” to 300 seconds in the php ini file. This did not help

    Plugin Contributor dwpriv

    (@dwpriv)

    Could you share a screenshot of the status page via PDF Invoices > Advanced > Status, please?

    Thread Starter Dan

    (@archfabricationandmachine)

    Can i email you the screenshot, i cannot upload an image here, only a link to the image.

    • This reply was modified 1 hour, 13 minutes ago by Dan.
Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.