Posted: 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, |
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) |
|
|
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, |
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? |
|
|
Thanks Tony, that worked. Thanks, |
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.
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? |
|
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.