Support

Home Forums Event Espresso Premium Missing Images in All Downloadable PDF's

Missing Images in All Downloadable PDF's

Posted: April 11, 2017 at 11:31 am

Viewing 10 reply threads


aksuska

April 11, 2017 at 11:31 am

The downloadable PDF’s available from the confirmation page show “Image not found” errors with a URL that is valid, e.g. http://manreach.org/images/headerlogo.png

I have checked that allow_url_fopen is enabled. I don’t know whether this is due to just upgrading to the latest as I hadn’t checking this before.


Josh

  • Support Staff

April 11, 2017 at 12:06 pm

You might try this URL instead:

https://manreach.org/images/headerlogo.png

If the above change does not help, then the issue may be similar to what was described here:

https://blog.skunkbad.com/php/dompdf-image-not-found-or-type-unknown


aksuska

April 11, 2017 at 1:19 pm

The headerlogo.png URL was just one–*all* of the images don’t show with the same error message, including Event Espresso images, such as: http://manreach.org/wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/images/calendar_year-24×24.png and I can’t control how those URLs are generated. Also, the link you reference only has to do with failure to perform peer verification which is inapplicable in our case since 1) we have a valid, verifiable certificate installed and we get no peer verification errors from any other source; and 2) the plugin clearly isn’t using https: connections to begin with.


Josh

  • Support Staff

April 11, 2017 at 1:30 pm

2) the plugin clearly isn’t using https: connections to begin with.

The plugin will use https if your set up allows, which apparently isn’t happening. If you’re unsure how to set your site to use https, you can install this plugin:

https://wordpress.org/plugins/really-simple-ssl/


aksuska

April 11, 2017 at 9:20 pm

How, exactly, will that solve anything?


Tony

  • Support Staff

April 12, 2017 at 5:22 am

Is there an event I can register on to view this? (Or just a link to a Invoice/Receipt will work)

Also you either enable WP_DEBUG on the site and then download the PDF it should contain any errors being thrown when attempting to open the images.

You may not be able to open the PDF if you do the above but if you send it to support[at]eventespresso.com I’ll check it over.

Or if you use a snippet link this:

https://gist.github.com/Pebblo/8787f5530ea777c84aaf62f075e55b32

Then download the PDF again and it should log any error thrown within a debug.log file in /wp-content/


aksuska

April 12, 2017 at 7:39 am

I have sent an email with PDF’s to support. If I get any debug output I will post that as well.


Tony

  • Support Staff

April 12, 2017 at 9:03 am

Those PDF’s were generated whilst WP_DEBUG was enabled?

There are no errors shown within the PDF it just shows that the image could not be found, with WPDEBUG enabled we would normally have more information.

However, if I add your headerlogo.png file to my invoice settings on a live test site the image shows fine within the PDF so it could be that DOMPDF is trigging some form of security on your server when attempting to pull the images for the PDF for, mod_sec for example.

Can you check with your host and have them check if this is the case?


aksuska

April 12, 2017 at 3:08 pm

Curious–I just ran a test and all images are showing properly in the downloadable PDF’s. I am going to remove the debug code and see if it changes…


aksuska

April 12, 2017 at 3:23 pm

No change. PDF’s are still working correctly. The issue might have been that the server was running an older version of PHP before, and between the previous errors and the newer successes I had PHP upgraded to a recent 5.6 (it was 5.2 or 5.3 before)


Tony

  • Support Staff

April 13, 2017 at 3:17 am

Event Espresso won’t activate unless your using PHP 5.3.9+ so it would have been 5.3

I double checked the PDF’s using 5.3.29 and didn’t run into any problems so it must be a config issue on the server, however, we don’t have any information to narrow it down further as I can’t reproduce.

Anyway, I’m glad you have it working. If you run into any more problems please let us know.

Viewing 10 reply threads

The support post ‘Missing Images in All Downloadable PDF's’ 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