Support

Home Forums Event Espresso Premium PDF without images

PDF without images

Posted: August 2, 2018 at 11:23 am


MauRoverssi

August 2, 2018 at 11:23 am

Hi

When a user finish the registration process for a event and donwload de invoce pdf, the pdf is donwloaded but when is opened dont show any images (header image, calendar icon image, etc.) only show this “Image not found” error and the url of the image.


Josh

  • Support Staff

August 2, 2018 at 12:00 pm

Hi,

The first thing to do is check with the server administrator and make sure the following server requirements are met:

  • PHP 5.4+
  • DOM extension
  • GD extension
  • MBString extension
  • allow_url_fopen set to true; this is sometimes disabled by hosting providers


MauRoverssi

August 6, 2018 at 11:56 pm

Hi

The site is in PHP 7.2, and I checked with my hosting provider and all the requirements are met.


MauRoverssi

August 6, 2018 at 11:59 pm

I make a test creating a pdf and the php error log show this:
Warning: A non-numeric value encountered in /home/pymenauta/public_html/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/inline_renderer.cls.php on line 132

Deprecated: Function create_function() is deprecated in /home/pymenauta/public_html/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/text_frame_reflower.cls.php on line 374


Tony

  • Support Staff

August 7, 2018 at 2:34 am

Hi MauRoverssi,

Firstly, my apologies.

I just accidentally reset your license key (a schoolboy error on my part), you can ignore the email about resetting your EE will relink your domain to your site shortly, or you can force it to relink by following the steps, either way it won’t affect the functionality on your site and is not linked to the issue above.

Can you link me to either a test event I can run a registration on, or link me directly to view an invoice for a test registration?


MauRoverssi

August 8, 2018 at 4:47 pm

Hi Tony

I created this temporary test event https://pymenauta.com/eventoss/responsabilidad-social-en-las-pymes-2/

  • This reply was modified 5 years, 8 months ago by  Tony. Reason: Removed login


Tony

  • Support Staff

August 8, 2018 at 5:14 pm

As far as I can tell, allow_url_fopen is not enabled.

The PDF version of the invoice isn’t loading any of the styles as well as images, that usually happens when allow_url_fopen is not enabled.

It could possibly be due to the changes you’ve made to the invoice template, is that a custom template or have you edited the default?


MauRoverssi

August 11, 2018 at 10:05 pm

Hi

allow_url_fopen was disabled. I enable but still now working.

Is the default template, I only edited in Messages.


Tony

  • Support Staff

August 13, 2018 at 2:43 am

Ok, so Josh posted all of the requirements for DOMPDF here:

https://eventespresso.com/topic/pdf-without-images/#post-274875

You previously stated those were all met, but allow_url_fopen was not actually enabled, so can you please double check the other requirements and confirm.

If you enable WP_Debug using this code in your wp-config.php file:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug

Then download a PDF and look in /wp-content/debug.log

Do you see any errors?

The support post ‘PDF without images’ 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