• Resolved jarvic

    (@jarvic)


    Hello,

    We installed the plugin in order to create PDF’s invoices but whenever we use the PDF format we get a HTTP 500 error. Using Debug mode makes the error go away but shows a blank page.

    What we have tried so far:

    Give the site 128mb of memory.
    Increase write/read permission.
    Debug mode.
    Updated all plugins, including woocommerce data.

    When we switch to the HTML format everything works like it should, but switch back to PDF and the error appears once again. We use the ‘Simple’ template and have no other installed.

    Any idea how we could tackle this?

    With kind regards,

    Jarvic

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Jarvic,
    A 500 error can mean many things, it’s a generic placeholder for underlying PHP errors. Since you mention that you see a blank page even with debug output enabled, it probably means that your server config has disabled debug output on a global level. Can you check WooCommerce > Status > Logs to see if there are any ‘fatal-error’ or ‘wpo-wcpdf’ logs that give clues about the error? If not, I would recommend to contact your host and ask them if you can download the PHP error logs somewhere.

    Let us know what you find and we’ll do our best to help!

    Ewout

    Thread Starter jarvic

    (@jarvic)

    Hello Ewout,

    Following your instructions reading the FATAL PHP error in woocommerce, we saw that we still had not giving it enough memory. The error said the following:

    2018-12-11T11:52:57+00:00 CRITICAL Allowed memory size of 134217728 bytes exhausted (tried to allocate 1029964 bytes)

    So, calculating the bites we saw it needed more then 135mb. We have given it 256mb of memory and it now works.

    Thank you for your assistance,

    With kind regards,

    Jarvic.

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Jarvic,
    Glad to hear you found the culprit! 128M is enough for most installations, although it does depend on how many invoices you’re exporting (for bulk export) and also on the size and file format of the header logo (JPG recommended, 150dpi should be enough for most purposes, you can see the resolution below the image in the settings). PHP version also makes a big difference, PHP7 is much faster and smarter with memory than PHP5.

    Happy selling!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTTP:500 when using PDF Format’ is closed to new replies.