Support

Home Forums Event Espresso Premium PDF Download 500 internal server error

PDF Download 500 internal server error

Posted: August 1, 2018 at 8:29 am

Viewing 1 reply thread


ThomasHowie

August 1, 2018 at 8:29 am

I have this working correctly on a staging site on a different host but it’s not working on with my hosting environment on the live site

If you click “Download PDF” at the top of the page you’ll see that the page just seems to hang for a while and eventually displays a 500 internal server error.

http://sandbox.icscentre.org/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=1-7ee50aaf9697e7d39539f6e806029b26&GRP_ID=7&id=135

It also doesn’t seem to log any errors, either through the /wp-content/debug.log file or in the server error logs.

I’ve tried various combinations of PHP settings for memory_limit, execution_time and output_buffering – directly editing the PHP.ini file on the production site.

Any help with this would be great.


Tony

  • Support Staff

August 1, 2018 at 9:06 am

Hi there,

It also doesn’t seem to log any errors, either through the /wp-content/debug.log file or in the server error logs.

Hmm, that’s strange, a 500 error would normally mean a PHP fatal error is being thrown, which should be logged.

Are you using this code to log the error to debug.log:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

If so, change it to this:

define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
        @ini_set( 'display_errors', 1 );
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', true );
}

Note that it tells your server to dipslay the error on the site, so load the above link in a tab, make the change, then refresh the tab and see if the error is output to the page.

Don’t forget to change it back again or you’ll site will display any errors to your visitors.

Viewing 1 reply thread

The support post ‘PDF Download 500 internal server error’ 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