• Resolved lucaoberti

    (@lucaoberti)


    Hello Ewout!

    I’m having an issue when exporting more invoices at once: when exporting one single invoice or a small group (like 5-10) everything is fine and I got the pdf, but when exporting a larger group I got a blank page and no pdf.

    I was thinking about a memory problem, but it’s 516MB, so it can’t be…

    Any idea?

    Thanks in advance,

    Luca

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lucaoberti

    (@lucaoberti)

    That’s the error I got with debug:

    Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 84 bytes) in /web/htdocs/www.coachmag.it/home/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Css/Style.php on line 843

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! The error shows 268435456 bytes exhausted, which is 256M. If you have set your memory to 516M, then it is either being limited by your actual hosting limit, or by the PHP memory limit.

    That said, there is a limit to how many invoices you can export at once. If you’re on PHP 5.X then this often less than when you’re on PHP 7.X, so if you have the possibility to upgrade (I don’t know what you’re using now), I highly recommend that. It makes your site about 2x as fast too!

    Finally, we also offer a bulk export tool in our Professional extension. Instead of creating one big PDF (which has the limitations you are experiencing), this creates single PDF files for each invoice and lets you export all of them (for a specific date range + status) in a zip file. Because these are single PDF files it doesn’t require as much memory.

    Hope that helps!
    Ewout

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blank page when exporting invoices’ is closed to new replies.