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


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 !

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Evasionautoecole 2 years, 5 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.