Support

Home Forums Event Espresso Premium Fatal Error with PDF

Fatal Error with PDF

Posted: April 7, 2015 at 6:32 pm

Viewing 5 reply threads


Julie

April 7, 2015 at 6:32 pm

Please can you advise how to fix this. I am not a techie so please advise in plain English :o) Many thanks, Julie

PS – I am using the most current version of EE4

This occurs when you press the link to produce a PDF on this receipt.

http://www.foodgatherings.com/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=receipt&context=purchaser&token=1-2f7732c8c77f370a61fa32e9b03b3a7c&GRP_ID=21&id=233

—————

Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 71 bytes) in /home/jfleming/foodgatherings.com/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/frame_reflower.cls.php on line 136


Julie

April 7, 2015 at 7:04 pm

PS – I get a similar message whether I use the default global template or a custom template.


Tony

  • Support Staff

April 8, 2015 at 4:21 am

Hi Julie,

That error means your site is running out of memory.

94371840 bytes = 94MB.

You’ll need to up the WP memory limit within your wp-config.php file, do you have FTP access to the site? or access to something like cPanel?

You’ll need to add something like:

define( 'WP_MAX_MEMORY_LIMIT', '128M' );

or even:

define( 'WP_MAX_MEMORY_LIMIT', '256M' );

To increase the memory allocated to your site.

96MB is usually sufficient but depends entirely on the plugins (and theme) in use on the site.


Julie

April 8, 2015 at 3:50 pm

Hi Tony – I did that.

Here’s the code in the wp-config.php file now but it made no difference. this is the error message now.

Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 3380 bytes) in /home/jfleming/foodgatherings.com/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/lib/class.pdf.php on line 2862

Please advise. Thanks, Julie

Removed – Tony

  • This reply was modified 9 years, 7 months ago by Tony. Reason: Remove wp-config.php details


Tony

  • Support Staff

April 8, 2015 at 3:59 pm

I have removed the contents of your post as this is a public forum.

wp-config.php contains sensitive information for your site, it should not be shared publicly 🙂

My apologies, please change this line:

define( 'WP_MAX_MEMORY_LIMIT', '256M' );

to

define( 'WP_MEMORY_LIMIT', '256M' );

Then re-test once more.

This setting is also dependent on if your host allows you to change that value.


Julie

April 8, 2015 at 4:03 pm

Hurray – finally worked! Thanks Tony – really appreciate your help and guidance. Julie

Viewing 5 reply threads

The support post ‘Fatal Error with PDF’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso