Support

Home Forums Event Espresso Premium EE4 Invoice + Receipt PDF files without CSS and image not found

EE4 Invoice + Receipt PDF files without CSS and image not found

Posted: June 7, 2017 at 6:00 am

Viewing 9 reply threads


Evasionautoecole

June 7, 2017 at 6:00 am

Version WordPress: 4.7.5
Version PHP: 5.6.26
Version MonSQL 5.5.5
Version Event Espresso : 4.9.39.p
Admin in FRENCH

Dears,
Everything works fine, online layout are good…
But when I download and open my PDF files invoice and receipt are without CSS and with error “Image not found” for the logo.
I check the link for the logo and it’s “load” well.

I done a registration on your demo website and when I check PDF file I can see a very nice layout (with CSS…).

Any idea ?

Thank you so much for your help πŸ™‚


Tony

  • Support Staff

June 7, 2017 at 6:03 am

Hi there,

We usually see this when allow_url_fopen has been disabled on the server.

Can you check with your hosting provider and if disabled have them enable it on your site please?

DOMPDF (which EE uses to generate the PDF’s) is reliant on that option being enabled.


Evasionautoecole

June 7, 2017 at 6:15 am

Hi Tony,

allow_url_fopen is enable !

Regarding DOMPDF where can I found this on my phpinfo ? … when I search DOMPDF nothing is found (I had create a PDF file).

Nice to read you back.


Tony

  • Support Staff

June 7, 2017 at 7:20 am

It may be enabled but not configured, or certain protocols blocked.

You won’t find DOMPDF within PHP info, it’s a library included within EE and that library requires allow_url_fopen is enabled and functioning.

Can you send me a link to either a test event or a link to the invoice I can view for a test registration, please?


Evasionautoecole

June 7, 2017 at 7:35 am

Hi Tony,

Here is the link for a test event:
https://www.mon-permis.info/cours/moto-bloc-1-et-2-test/

You will see that your address will missing on invoice and receipt as it’s my other request / post πŸ™

Thank you for your help !


Tony

  • Support Staff

June 7, 2017 at 8:11 am

I have replied to your Address question thread and will troubleshoot that issue there, it’s a different issue to this one.

Can you enable WP_DEBUG on the site and let me know when it is active so I can test the PDF download, please?


Evasionautoecole

June 7, 2017 at 8:27 am

It’s done !


Tony

  • Support Staff

June 7, 2017 at 9:09 am

Ok, so your host is returning 403 Forbidden on the images when using getimagesize():

Warning: getimagesize(https://www.mon-permis.info/wp-content/uploads/2015/11/logo-evasion_dragon-150×90.png): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden

Are you running any security plugins on the site? They may be blocking the request. If not I recommend contacting your hosting provider and have them investigate this further, the above is very likely to be connected to all of the issues with the PDF’s.

Note you can disable WP_DEBUG again now.


Evasionautoecole

June 7, 2017 at 9:27 am

Thank you Tony for your feedback.
I will check this point and come back with – I hope – an answer πŸ˜‰


Evasionautoecole

June 7, 2017 at 10:27 am

Ok, I found where was the problem !

Plugin iThemes security > disable “Enable HackRepair.com’s blacklist feature”
That’s all πŸ˜‰

…. and found also that here https://eventespresso.com/topic/warning-getimagesize-error/
Sorry but when I looking for my problem in the forum I don’t find this πŸ™

Once again, thank you dear for your help !

Viewing 9 reply threads

The support post ‘EE4 Invoice + Receipt PDF files without CSS and image not found’ 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