Support

Home Forums Event Espresso Premium PDF download receipt results in server error 500

PDF download receipt results in server error 500

Posted: November 30, 2015 at 2:22 am


skleijer

November 30, 2015 at 2:22 am

When hitting the pdf-button on the html receipt page, the pdf will not download. In Safari, I get a blank page, in chrome server error 500. Off course I have read all similar posts on this topic but nothing works.
The receipt is reset to default, there are no changes to the templates. I’m using EE 4.8.24.p. How can I fix this?
Kind regards,
Sya


Tony

  • Support Staff

November 30, 2015 at 5:32 am

Hi Sya,

Can you link us to an event we can run a test registration on please?


skleijer

November 30, 2015 at 5:36 am

That would be: http://test2.design-bakery.nl/congres/nieuwe-wondere-wereld-van-dementie/

I run the latest version of EE4 as of this morning by the way.
Kind regards


Tony

  • Support Staff

November 30, 2015 at 6:12 am

Can you temporarily enable WP_DEBUG please?

If you check within the servers error logs do you see any fatal errors?

You can also enabled error logging within WordPress using:

define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}

That will enable error logging but not display errors to the page, they wll be stroed within /wp-content/debug.log


skleijer

November 30, 2015 at 6:53 am

I get this error:
[24-Nov-2015 19:29:29 UTC] PHP Warning: mysql_connect(): [2002] Connection timed out (trying to connect via tcp://mysql-int.cp.hostnet.nl:3306) in /wp-includes/wp-db.php on line 1482
[24-Nov-2015 19:29:29 UTC] PHP Warning: mysql_connect(): Connection timed out in /wp-includes/wp-db.php on line 1482
[30-Nov-2015 13:48:20 UTC] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in /wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/style.cls.php on line 419

Kind regards, Sya

  • This reply was modified 8 years, 5 months ago by  Tony. Reason: Removed server path


Tony

  • Support Staff

November 30, 2015 at 7:04 am

Your site is running out of memory which is why the PDF fails.

Currently its failing at around 134MB which is fairly high but its possible your site uses that amount of memory.

Can you increase the memory available to your site by following the instructions here:

https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

Basically add:

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

To your wp-config.php file and retest is it happens again.


skleijer

November 30, 2015 at 7:19 am

Thanks! It worked!
Kind regards,
Sya


Tony

  • Support Staff

November 30, 2015 at 10:15 am

You’re most welcome 🙂

I’ll mark this thread resolved.

The support post ‘PDF download receipt results in server error 500’ 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