Posted: July 30, 2016 at 9:02 am
Hello, I’ve looked at the following threads: 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 |
|
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. |
|
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. |
|
Here is a link to an event: 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: 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. |
|
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? |
|
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 — |
|
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 |
|
Any additional thoughts? Would admin access help? |
|
What is not DOMPDF?
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. |
|
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? |
|
What happens if you switch them to use HTTP? Do you have any other plugins that generate PDF’s installed on your site? |
|
No I do not believe so Plugins: |
|
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) |
|
The login has been sent |
|
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? |
|
Thank you for the login details. I can confirm your host is blocking the requests, the error log shows this:
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. |
|
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.