Support

Home Forums Event Espresso Premium Slow receipt viewing and download

Slow receipt viewing and download

Posted: September 13, 2019 at 2:12 pm


Jeffrey

September 13, 2019 at 2:12 pm

Our site loads well in general, but we find when we view a registrants receipt, and then download PDF both these steps, especially the pdf download taking have a very long load time.

Can you please help?

Thanks,
MD


Josh

  • Support Staff

September 13, 2019 at 3:34 pm

Hi MD,

May I ask are the receipt & invoice templates modified in any way or are they just using the defaults that are set up when Event Espresso is first activated? The reason I ask is because if there’s any invalid html in the generated receipt or invoice, the PDF generation could be prone to have errors and that could cause some slowness.

It might also be helpful to know the version of PHP the web server uses.


Jeffrey

September 15, 2019 at 1:51 pm

We haven’t made any changes to the templates.

The php version is 5.6.40


Tony

  • Support Staff

September 16, 2019 at 4:32 am

Hi Jeffrey,

The first thing I would recommend is to update your PHP version to 7.3 (anything 7.1 has 2 months of support left, 7.2 ~1yr and 7.3 ~2yrs)

See: https://www.php.net/supported-versions.php

PHP7+ is much fast than previous versions and will likely improve the speed not only on the Invoice/Receipts but all over.

The PDF generation is done using DOMPDF and generally it can take a little, on the occasion its taken a long time to complete its often something strange happening on the server.

Can you post a link to a test registrations invoice/receipt so we can take a look?


Jeffrey

September 27, 2019 at 3:07 pm

Here’s a receipt to view – https://ceyou.org/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=receipt&context=purchaser&token=1-426e6ea959e242f77ecfc251590dd4b0&GRP_ID=1&id=2803

Can you fix the speed on these?


Tony

  • Support Staff

September 30, 2019 at 3:34 am

There’s nothing obvious causing slow loading from the above but there is some invalid HTML, for example, the datetimes all have a close p tag after the timezone.

In the receipt template, in the DATETIME_LIST section can you see a </p> tag after ([DATETIME_TIMEZONE])?

Did you try updating the version of PHP on the server?

The TTFB (Time to first byte) is taking ~20 seconds, which basically means it’s taking your server roughly 20 seconds to pull in the data and start sending it over to the browser. As it’s happening on both the HTML and PDF views this isn’t an issue with DOMPDF generating the PDF’s.

Is this a shared server?

The support post ‘Slow receipt viewing and download’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 1 month, 2 weeks ago ago

Topic Tags

Tagged: 

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.