Support

Home Forums Event Espresso Premium receipt and invoice pdf generator failing

receipt and invoice pdf generator failing

Posted: January 28, 2019 at 7:15 pm

Viewing 8 reply threads


ncmensspringretreat

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


Josh

  • Support Staff

January 30, 2019 at 7:43 am

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
GD extension
MBString extension
allow_url_fopen set to true


ncmensspringretreat

January 30, 2019 at 10:24 am

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
.


Josh

  • Support Staff

January 31, 2019 at 8:09 am

Hi,

The requirements for DOMPDF, which is the library Event Espresso uses to generate PDFs, are listed here:

https://github.com/dompdf/dompdf/wiki/Requirements


ncmensspringretreat

February 2, 2019 at 1:24 pm

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?
ncmensretreat.com


ncmensspringretreat

February 2, 2019 at 1:24 pm

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?
ncmensretreat.com


ncmensspringretreat

February 2, 2019 at 1:45 pm

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
anging up? You can see the resulting PDF here:
https://drive.google.com/open?id=1lSrmiiPJWk4Zqf147c2iWiqLUX1L-lbE


ncmensspringretreat

February 2, 2019 at 2:56 pm

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!


Tony

  • Support Staff

February 4, 2019 at 5:14 am

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.

Viewing 8 reply threads

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.

Event Espresso