Support

Home Forums Event Espresso Premium PDF Order Confirmation contains Image not found errors – HMTL display is fine

PDF Order Confirmation contains Image not found errors – HMTL display is fine

Posted: October 25, 2017 at 12:16 pm

Viewing 7 reply threads


Stephen Karamatos

October 25, 2017 at 12:16 pm

When I create an event registration, the order confirmation page appears correctly — with logos and icons.

When I click on the “Download PDF” button, the PDF file contains error messages where the logo and icon files should be. A sample error message is:

Image not found
http://computer-science.site/wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/images/calendar_year-24×24.png

I did move this web site’s domain using Installatron clone if that had any impact. The original URL from when EE was installed was different.

Related: https://eventespresso.com/topic/invoice-calendar_year-24×24-png-missing/


Tony

  • Support Staff

October 25, 2017 at 12:31 pm

Hi Stephen,

That URL redirects to https which shouldn’t cause issues but its possible (I’d be surprised if that caused it).

Have you customized the order confirmation at all?

If not go to:

Event Espresso -> Messages -> Default message templates -> Receipt.

In the side bar click the ‘Reset Templates’ button, that will rebuild the Receipt template from the defaults and pull the correct URLs.

(If you’ve edited the template at all don’t use that button as you’ll lose any customizations)

After that recheck if the same issue happens, if it does its likely allow_url_fopen has been disabled on your server, you’ll need to contact your host and have them enable that option on your site for the PDF’s to work.


Stephen Karamatos

October 26, 2017 at 7:40 am

Thanks for the reply. I have reset the Receipt template (I did not edit it) and it still does not work.

I have also enabled the php option allow_furl_open (set to on) and restarted the server — still does not work.

Is there anything else I can check?


Tony

  • Support Staff

October 26, 2017 at 7:59 am

You can enable WP_DEBUG on the site, download a PDF (it will likely not open normally).

Open that PDF in a text edit such as Sublime Text and see if any errors are being thrown when generating the PDF.

Or post a link to an Receipt here and then enable WP_DEBUG an I’ll check for you.


Stephen Karamatos

October 26, 2017 at 8:07 am

I have enabled WP_DEBUG and here is the link to an invoice:

https://computer-science.site/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=invoice&context=purchaser&token=1-e712042d110e960d37c4fd54e2095663&GRP_ID=14&id=106

I see SSL certificate issues. I can connect to the Web site and the browser says that it is secure. Perhaps the SSL routine in PHP that is being used needs an intermediate certificate, or it is getting the certificate from someplace other than the Web server?


Tony

  • Support Staff

October 26, 2017 at 8:24 am

Whilst you can connect to your server fine, your server can’t validate certificates when IT is making the connection to somewhere else (in this case itself but the request doesn’t matter).

Does your server have root ca certificates installed?

https://curl.haxx.se/docs/sslcerts.html


Stephen Karamatos

October 26, 2017 at 8:40 am

We have openssl installed and it looks like it has the CA certificates in /etc/ssl/certs. I’ll have to see if I can get an updated bundle.


Stephen Karamatos

October 26, 2017 at 12:07 pm

The issue was with am incorrect intermediate certificate. Thanks for the tips on debugging and solving this issue.

Viewing 7 reply threads

The support post ‘PDF Order Confirmation contains Image not found errors – HMTL display is fine’ 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