Title: HTTP:500 when using PDF Format
Last modified: December 11, 2018

---

# HTTP:500 when using PDF Format

 *  Resolved [jarvic](https://wordpress.org/support/users/jarvic/)
 * (@jarvic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http500-when-using-pdf-format/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhttp500-when-using-pdf-format%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http500-when-using-pdf-format/#post-10977710)
 * 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](https://wordpress.org/support/users/jarvic/)
 * (@jarvic)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http500-when-using-pdf-format/#post-10978016)
 * 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](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http500-when-using-pdf-format/#post-10978112)
 * 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.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [HTTP 500](https://wordpress.org/support/topic-tag/http-500/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/http500-when-using-pdf-format/#post-10978112)
 * Status: resolved