Posted: January 28, 2019 at 7:15 pm
|
One the receipt and invoice, the download pdf button causes the website to hang. Some fraction of the time a pdf is downloaded but it is corrupt. I have seen several other support topics on this issue but none seemed to have a solution. I turned on debug in case you want to take a look: ncmensretreat.com |
Hi, Have you checked with your web host to make sure the DOM module is installed on your web site’s server? There are a number of requirements that need to be met to allow for using the PDF generator and they are: DOM extension |
|
|
Thanks for the reply. I will check on this. Have to admit I am new to this–Is there any documentation you can point me to on web host requirements for PDF generation? Note that our wordpress site is hosted by AWS. Hoping there are a set of instructions out there somewhere on getting a DOM module running on AWS |
Hi, The requirements for DOMPDF, which is the library Event Espresso uses to generate PDFs, are listed here: |
|
|
Thank you. Ok, so I got DOMPDF installed. Now when I go to the invoice page, it works great–generates a PDF instantly. But, from the full receipt page, it still fails to download and hangs the webserver. So close! Any ideas what is happening on the receipt page? |
|
Thank you. Ok, so I got DOMPDF installed. Now when I go to the invoice page, it works great–generates a PDF instantly. But, from the full receipt page, it still fails to download and hangs the webserver. So close! Any ideas what is happening on the receipt page? |
|
Ok–this might be a clue. It finally did download an order confirmation PDF after several minutes. The resulting PDF had a bunch of “image not loaded” icons in it. What are these? And is this contributing to the PDF generation h |
|
Ok–I figured it out. The receipt message template had the wrong location for the icons. I updated the link locations and PDF generator now works for the receipt page. woohoo! |
Nice work troubleshooting the above. It sounds like there’s a long timeout on the request for images on your server, so the script hangs just waiting for a response back from the server when there’s no image. Anyway, I’m glad it’s now working for you, any further problems just let us know. |
|
The support post ‘receipt and invoice pdf generator failing’ 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.