• Resolved Tomás Sierra

    (@tomycant)


    Hi,

    When i try to download some invoices it shows a blank page and donwload don’t start.
    It only occurs in some invoices, not in all of them.
    Can somebody help me?

    Thanks

    • This topic was modified 7 years, 2 months ago by Tomás Sierra.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Can you temporarily enable Debug output in the Status tab of the PDF invoice settings and copy/paste the error you’re getting here?

    Also, if you’re seeing any red or orange fields on that Status page, that may be an indication too.

    Two possible solutions:
    Solving Memory Issues
    Fatal error: Call to undefined method DOMText::getAttribute()

    Let me know what you find!
    Ewout

    Thread Starter Tomás Sierra

    (@tomycant)

    Hi,
    i modified the wp-config.php file with the line

    define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

    and the issue has dissapeared.

    Thank you very much.

    Plugin Contributor Ewout

    (@pomegranate)

    Great, very glad to hear that ??

    Have a fantastic day!
    Ewout

    Hi there – I’ve just had the same issue with both packing slips and invoices from the woocommerce orders page. I tried increasing the memory limit first in the file “default-constants.php” – so now it does show my limit as being 128 mb in the plugin details. (originally showed 40) And then i tried adding the code “define( ‘WP_MEMORY_LIMIT’, ‘256M’ );” into the file wp-config.php but it still has no effect. invoices and packing slips are still opening up to a blank page.

    Plugin Contributor Ewout

    (@pomegranate)

    @jfores19 – not sure if this is the same issue. With 256M you’ve got more than enough for even a large bulk export.
    Can you check debug output as described in my first post above? That should tell us more about the source of the blank page, which probably is not memory related if you’re on 256M.

    when i enabled that, and then tried to open packing slip – here is the error i get

    “Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5435850 bytes) in /home/ljgrimm/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 4819”

    so what i did was open the “default-constant.php” page, where i had upped the memory limit to 128 yesterday – and upped it again to 256. Once i did that, the packing slip downloaded into my computer. But i guess I’m worried as to how we are using so much memory in our store, and is there something we should be deleting from time to time to keep the memory down. because if we reach 256 we can’t go any higher than that?

    also – we were having a problem with the “Affiliates Manager WooCommerce Revenue Sharing” plugin – it seems doing this has fixed that issue as well.

    So now i really need to figure out how to keep our memory limit down – obviously we need all our products and plugins and what not – so what data can we delete periodically to save space?

    Thanks so much for your help!

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! 256M should indeed be more than enough… so something, somewhere is taking a lot of memory. Are you using a lot of plugins on the site?
    The p3 Profiler plugin used to be a good tool to investigate the plugin load, but it hasn’t been updated for a long time and doesn’t work on all systems anymore… But it may be worth a try!
    Good luck!
    Ewout

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Blank page downloading some invoices’ is closed to new replies.