Posted: 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, |
|
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. |
|
We haven’t made any changes to the templates. The php version is 5.6.40 |
|
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? |
|
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? |
|
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 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.