Title: Error when generating pdf
Last modified: August 21, 2016

---

# Error when generating pdf

 *  [nonich](https://wordpress.org/support/users/nonich/)
 * (@nonich)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-when-generating-pdf/)
 * Hello,
 * I followed every step of the “read first” but when I clik on the generate invoice
   pdf button i have that fatal error :
 * Fatal error: Out of memory (allocated 57671680) (tried to allocate 16 bytes) 
   in /homepages/20/d364263650/htdocs/wp-content/plugins/woocommerce-pdf-invoices-
   packing-slips/lib/dompdf/include/frame_factory.cls.php on line 79
 * I use the simple template not custom one.
 * If I add the code lines :
 * add_filter( ‘wpo_wcpdf_output_html’, ‘__return_true’ );
    add_filter( ‘wpo_wcpdf_use_path’,‘
   __return_false’ );
 * It generate an html page with all the information of the invoice.
 * How can I fix that fatal error so that I could generate the pdf version ?
 * Thank you for your help.
 * Arno, France.
 * [https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-when-generating-pdf/#post-4985428)
 * Hello Arno,
    The error states “Out of memory”. You’re probably seeing a warning
   on the status tab of the plugin about the memory too. I suggest to increase the
   memory available to WordPress to 128mb or more (step two of the read first). 
   If you have already increased the WordPress memory, it might be that it’s still
   capped by your server. This sometimes happens when you’re on a cheap/shared hosting
   system. You could contact your hosting asking about the memory or put your site
   on a better host. I’m sorry I can’t help you with this, PDF generation is just
   a memory intensive job (especially of you have many plugins and/or a heavy theme
   on your site this might just be too much).
 * Let me know what you find!
 * Ewout
 *  Thread Starter [nonich](https://wordpress.org/support/users/nonich/)
 * (@nonich)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-when-generating-pdf/#post-4985533)
 * I’ve already put memory to 128mb, I’ll try more to 256mb. If it still doesn’t
   work I’ll see with my host wich is ovh.com
 * Thank you for your help !

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

The topic ‘Error when generating pdf’ 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

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [generate pdf](https://wordpress.org/support/topic-tag/generate-pdf/)
 * [pdf](https://wordpress.org/support/topic-tag/pdf/)

 * 2 replies
 * 2 participants
 * Last reply from: [nonich](https://wordpress.org/support/users/nonich/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/error-when-generating-pdf/#post-4985533)
 * Status: not resolved