Support

Home Forums Pre-Sales Invoice PDF is not downloading

Invoice PDF is not downloading

Posted: May 12, 2015 at 2:53 am

Viewing 5 reply threads


Sravan Kumar Rentala

May 12, 2015 at 2:53 am

Hi,

We are using EE 3.1.37, we are in a process of modifying payment mode from online to offline.

After registering to the event, invoice pdf is not getting generated; upon clicking “DOWNLOAD PDF INVOICE” blank page would be popped up, but pdf will never get downloaded.

thankyou page url is “mysite/thank-you/?r_id=9522-5551b9124aa85&id=1099&payment_type=invoice&type=invoice”

Any sort of assistance is much appreciated.

Regards,
Sravan


Tony

  • Support Staff

May 12, 2015 at 3:25 am

Hi Sravan,

A blank page normally means a fatal error is being thrown. You’ll need to enable WP_DEBUG on the site and reload that page, it should then display any errors that are being thrown.

However, usually when this happens for the PDF’s it usually indicates that allow_url_fopen has been disabled on the server, can you check with your host and see if that is the case?

If so it will need to be enabled in order for the PDF’s to work as the library EE uses to generate them uses that function (DOMPDF)


Sravan Kumar Rentala

May 12, 2015 at 3:48 am

Thanks for prompt reply Tony.

I did tried both the options and you were spot on, its a fautl error, below is the error message i get

Fatal error: Class ‘FPDF’ not found in /home/XXXXX/public_html/wp-content/uploads/espresso/gateways/invoice/function.pdf.php on line 8

Could you please let me know, what needs to be done now?

Thanks,
Sravan


Tony

  • Support Staff

May 12, 2015 at 4:25 am

Have you modified the Invoice gateway at all?

Using FTP change this directory:

/home/XXXXX/public_html/wp-content/uploads/espresso/gateways/invoice/

To be

/home/XXXXX/public_html/wp-content/uploads/espresso/gateways/invoice-temp/

This will tempararily disable your custom Invoice gateway stored within uploads and use the default one within EE, does the same happen then?


Sravan Kumar Rentala

May 12, 2015 at 8:33 pm

Thanks Tony, that worked.
Few more clarifications
– How to include company logo in PDF? (I did tried to include logo path in the settings, but it says “FPDF error: Alpha channel not supported:”
– Can Invoice be generated with the break up of the amount VAT, GST…?
– We do not have online payment opens, however generated PDF shows an option to “Pay Online”. How do i get rid of it??

Thanks,
Sravan


Tony

  • Support Staff

May 13, 2015 at 4:54 am

“FPDF error: Alpha channel not supported:”

You are using a PNG with transparent background, the PDF does not support this. You can either remove the transparent background from the PNG or use another format such as JPG or GIF.

– Can Invoice be generated with the break up of the amount VAT, GST…?
– We do not have online payment opens, however generated PDF shows an option to “Pay Online”. How do i get rid of it??

Both of these require a custom invoice template to be made, before going into detail it is much easier to do this within EE4, is there something preventing you from using EE4?

Viewing 5 reply threads

The support post ‘Invoice PDF is not downloading’ 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