Support

Home Forums Event Espresso Premium PDF formatting issues

PDF formatting issues

Posted: July 30, 2016 at 9:02 am

Viewing 16 reply threads


carrypermit

July 30, 2016 at 9:02 am

Hello,
There are issues with the formatting of the pdfs in my event espresso transactions. The images are not pulling in and it appears to be void of any styling.

I’ve looked at the following threads:
https://eventespresso.com/topic/dompdf-error-when-downloading-invoice-2/
https://eventespresso.com/topic/logo-does-not-display-on-pdf-invoice/

allow_url_fopen is enabled on my server my memory limit is set to 96

I’m running fully updated versions of all EE plugins


Tony

  • Support Staff

August 1, 2016 at 4:19 am

Can you link em to an event so I can view this please?

Along with allow_url_fopen we’ve also seen some hosts block the requests from DOMPDF when Hotlink protection was enabled as it treats each element as an external file.


Tony

  • Support Staff

August 1, 2016 at 6:50 am

Also, if you enable WP_DEBUG on the site and link me to either an event I can view or directly to an Invoice/Receipt I can check to see if any errors are being thrown within the file.


carrypermit

August 1, 2016 at 8:17 pm

Here is a link to an event:
https://www.carrypermit.net/beta/events/conceal-carry-hastings-mn/

Invoice:
https://www.carrypermit.net/beta/?ee=msg_url_trigger&snd_msgr=html&gen_msgr=html&message_type=receipt&context=purchaser&token=1-0cfe7d1139495eb11ab3d806537cd253&GRP_ID=1&id=56

Could this be an issue with the sitewide HTTPS integration?


Tony

  • Support Staff

August 2, 2016 at 4:12 am

Could this be an issue with the sitewide HTTPS integration?

I don’t think that’s the cause. The images are available over HTTPS, the load within the HTML version of the Receipt and if you load them directly, like this:

https://www.carrypermit.net/beta/wp-content/plugins/event-espresso-core-reg/core/templates/global_assets/images/calendar_year-24×24.png

Can you check with your host and see if those requests are being blocked by their firewall? It looks like something is blocking the requests from DOMPDF.


carrypermit

August 2, 2016 at 11:31 am

The hosting company said: it’s not dompdf. They asked “Can you try fetching the images using HTTPS not http? Its possible its not able to follow the redirect to https which is causing it to fail.”

How would I go about doing that?


Lorenzo Orlando Caum

  • Support Staff

August 2, 2016 at 11:49 am

Hello,

I had a look at the sample invoice that you shared here (https://eventespresso.com/topic/pdf-formatting-issues/#post-212729) and I see the organizations logo along with other icons like the calendar and clock icon.

Are you still having trouble with those images coming up?

If so, could you please let us know the web browser that you are seeing this issue with?

Thanks


Lorenzo


carrypermit

August 2, 2016 at 12:59 pm

Hello l, the issue is with the pdf, the rest of the invoice displays properly in html view.

I’ve looked in acrobat, chrome, Firefox. The issue is with the odd rendering


carrypermit

August 2, 2016 at 1:00 pm

Any additional thoughts? Would admin access help?


Tony

  • Support Staff

August 2, 2016 at 2:17 pm

The hosting company said: it’s not dompdf.

What is not DOMPDF?

They asked “Can you try fetching the images using HTTPS not http? Its possible its not able to follow the redirect to https which is causing it to fail.”
How would I go about doing that?

Go to Event Espresso -> Messages -> Default Message Templates -> Receipt.

Search for ‘http’ within your browser there, you should find 4 instances.

1 within EVENT_LIST and 3 within TICKET_LIST

Change them all to use https instead and retest.


carrypermit

August 2, 2016 at 2:27 pm

They said that there were no errors in the log indicating any issues with those requests being denied (DOMPDF)

I opened up the default templates as mentioned and they were already https.

What’s next?


Tony

  • Support Staff

August 3, 2016 at 3:17 am

What happens if you switch them to use HTTP?

Do you have any other plugins that generate PDF’s installed on your site?


carrypermit

August 3, 2016 at 5:39 am

No I do not believe so

Plugins:
Better search replace
Custom login logo
Decent comments
Event espresso
Event espresso Braintree
Event espresso Table view
Event espresso Ticketing
Event espresso Stripe
Event espresso Wp users
Gravity forms
Ithemes security
Yoast Seo


Tony

  • Support Staff

August 3, 2016 at 12:56 pm

Hmm, possibly something within iTheme Security but I have that on one of my test sites with no issues.

Can you send me temporary log in details so I can take a look please?

You can use the form here:

https://eventespresso.com/send-login-details/

(note the login details need to be admin level)


carrypermit

August 3, 2016 at 5:52 pm

The login has been sent


Tony

  • Support Staff

August 4, 2016 at 10:25 am

This looks like an issue with either permissions or some other server config issue.

If you take a look at the Receipt message you linked to above and download the PDF you’ll notice that the calendar icon now loads – http://take.ms/XsTdR

That’s loading because I’ve swapped out the URL to use one of our test sites which means the images are failing when being access on your own server, but not on others.

I’d like to download a version of the PDF with WP_DEBUG enabled to see if any errors are being thrown on the image requests. Can you either enable WP_DEBUG or re-submit the login details above with FTP details so I can enabled and test this please?


Tony

  • Support Staff

August 5, 2016 at 4:45 am

Thank you for the login details.

I can confirm your host is blocking the requests, the error log shows this:

Warning: getimagesize(https://www.carrypermit.net/beta/wp-content/uploads/2011/11/logo-300x288.png): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /event-espresso-core-reg/core/libraries/shortcodes/EE_Transaction_Shortcodes.lib.php on line 313

403 Forbidden means the server refused the connection.

The same will be happening with the icon images as they use the same function. You’ll need to contact your host to have them fix this.

Viewing 16 reply threads

The support post ‘PDF formatting issues’ 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