Title: Plugin throwing HTTP 500 error
Last modified: October 27, 2016

---

# Plugin throwing HTTP 500 error

 *  Resolved [supahduck](https://wordpress.org/support/users/supahduck/)
 * (@supahduck)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-throwing-http-500-error/)
 * Hello there, been using your plugin for the last two years without issue, until
   now.
 * No special configuration on the plugin, just a small JPG at the top of the template.
   No custom fonts or anything like that.
 * Turned on debug, and got the following error when attempting to generate a PDF
   packing slip:
 * _Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate
   122880 bytes) in /home/supahduc/public\_html/northerncharms.ca/wp-content/plugins/
   woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/page\_frame\_decorator.
   cls.php on line 394_
 * My install has 128MB available, and all other indicators are green, except for
   opcache and Gmagick.
 * Any thoughts on the issue, as this has been working fine until now, and there
   hasn’t been any other changes to the WordPress / WooCommerce installation, other
   than the normal upgrades for installed plugins.

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-throwing-http-500-error/#post-8363929)
 * Hi! Nothing changed in the plugin that I can connect to a sudden increase in 
   memory usage.
    The only thing I can think of is that there’s a specific product
   that is somehow causing extra long pages, which then chokes the plugin. Does 
   this error also pop up with older orders?
 * I have a rundown on solving memory issues in the documentation: [http://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/memory-issues/](http://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/memory-issues/)
 * Let me know if that helps!
    Ewout
 *  Thread Starter [supahduck](https://wordpress.org/support/users/supahduck/)
 * (@supahduck)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-throwing-http-500-error/#post-8364018)
 * Ewout, thanks for the quick reply!
 * Yes, the error comes up on older invoices / packing slips, that were successfully
   generated in the past, and on older orders where I hadn’t generated documents,
   as well.
 * The products themselves are very basic, and don’t have a lot of data that gets
   embedded on the document…. the most I’ve ever had was two pages for a packing
   slip.
 * I’m not using any custom fonts or CSS, it’s pretty much your vanilla install.
 * I will look at the ‘memory issues’ doc and see if I can find anything….
 * Chris
 *  Thread Starter [supahduck](https://wordpress.org/support/users/supahduck/)
 * (@supahduck)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-throwing-http-500-error/#post-8364086)
 * Ewout,
 * It was a simple ‘lack of memory’ issue. My self-hosted install is fairly plugin-
   heavy (36 right now, about half of them fairly small but related to Woo, the 
   rest are for WordPress), so I guess with all the recent upgrades for all these
   plugins, it’s been edging up to the 128M limit I had set.
 * Upped it to 256M, and everything started working. Also put in
 * _define( ‘WP\_MAX\_MEMORY\_LIMIT’, ‘256M’ );_
 * in wp-config.php, just in case.
 * Thanks again for the advice and assistance! (You can mark this issue as resolved
   now. 🙂 )
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-throwing-http-500-error/#post-8376567)
 * Great! Glad to hear that’s resolved 🙂
 * Have a fantastic week!
 * Ewout

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

The topic ‘Plugin throwing HTTP 500 error’ 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

 * ["internal server error"](https://wordpress.org/support/topic-tag/internal-server-error/)
 * [500 error](https://wordpress.org/support/topic-tag/500-error/)
 * [memory issues](https://wordpress.org/support/topic-tag/memory-issues/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/plugin-throwing-http-500-error/#post-8376567)
 * Status: resolved