Support » Plugin: PDF Invoices & Packing Slips for WooCommerce » PNG logo turns black

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    Hello,

    I just set the WP memory limit to 128 MB through the wp-config.php, but that didn’t resolve it. Also, when I want to generate a PDF invoice through the backend I get an error:

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 81 bytes) in /public/sites/www.****.com/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/frame_factory.cls.php on line 201

    Any insights on this?

    Best regards, Marcel

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Marcel,
    If the PNG logo does not work, you’ll probably see a red flag on the status panel of the PDF Invoice settings page, behind “GMagick or IMagick”, is that correct? In this case you can easily solve this by using JPG instead. This might also lessen the memory load, but I’m not sure about that. I don’t know why 128mb is not enough – are you using the simple template, or a modified template? How many pages?

    Under normal circumstances, even 40mb is often enough, but if you’re running a lot of plugins or if you’re on shared hosting, you might still run out of memory. Sometimes on shared hosting the PHP memory is also shared! Unfortunately there’s also a lot of badly coded plugins out there. If you’re interested to know which plugins consume most of your memory, I can really recommend to use the P3 Profiler plugin. Don’t run it on auto, but do some typical admin tasks.

    Let me know if you have any questions!

    Ewout

    Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    Wow Ewout, thanks for your extensive answer! Great!
    In status I see this:
    GMagick or IMagick Better with transparent PNG images IMagick 3.0.0RC1
    Which is green, so that shouldn’t be a problem.
    I have the simple template with just 1 page. So all not that special really..

    I can try if a JPG fixes it, to me it doesn’t matter if it’s PNG or JPG.

    I’ll let you know if JPG is a solution.

    Best regards, Marcel

    Plugin Contributor Ewout

    (@pomegranate)

    I’m running the exact same version of IMagick and have no problems with transparent PNG images, so I guess it’s either the file specifically or also related to memory problems. I don’t know.

    Let me know if the JPG helps!

    Ewout

    Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    Hello Ewout,

    The JPG image works perfect. I don’t know what the problem was with PNG, but JPG is fine aswell, so I’m glad that works 😉

    Thanks, Marcel

    Thread Starter Marcel Oerlemans

    (@marceloerlemans)

    Hello Ewout,

    The JPG image works perfect. I don’t know what the problem was with PNG, but JPG is fine aswell, so I’m glad that works 😉

    Thanks, Marcel

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PNG logo turns black’ is closed to new replies.