Support

Home Forums Community Forum Update to WordPress 6.5 Causing Issues with PDF Invoice Download

Update to WordPress 6.5 Causing Issues with PDF Invoice Download

Posted: April 5, 2024 at 12:32 am


J

April 5, 2024 at 12:32 am

Hello

We have Event Espresso – 4.10.44.p. We are currently running WordPress 6.4.3 and are testing WordPress 6.5 on a staging site. When we download a pdf invoice of one of the registrations, the downloaded version appears stripped of all formatting and without the logo. Hoping you can help.
Regards, Joe


Rio

  • Support Staff

April 5, 2024 at 4:57 am

Hello,

The version you are using is quite old, the latest version is 5.0.19, May we know what holding you to update?

Have you tried updating it to latest version and check if that issue is present there?

There could be some conflict with the version you’re using with PHP, WordPress and plugin and themes.

thanks


Tony

  • Support Staff

April 5, 2024 at 5:20 am

Generally when that happens it’s becuase allow_url_fopen() has been disabled on the server rather than a WP update, are you sure the staging site is using the same server settings? Sometimes they aren’t (although they should be)

Go to Event Espresso -> Maintenance -> System Information

Search for PHP version, what is it?

Then search for allow_url_fopen, what is that set to?

The version of EE you are currently running is well over a year old now so the first thing we would recommend is updating to the latest version and see if you run into the same issue with that.


J

April 5, 2024 at 5:51 am

Tony & Rio

Thanks for this. I updated to the latest Event Espresso in the staging site, but this did not fix the download issue.

The php version on the staging is 8.1.12 [on our main site it is 8.1.27]

The allow_url_fopen details on the staging are the same as our main site and are:

allow url fopen ( 3 )
access
4
global value
1
local value
1

Regards

Joe


Tony

  • Support Staff

April 8, 2024 at 5:45 am

Odd, I’ve spent some time trying to reproduce this and so far, I can’t!

Can you link me to the HTML output of the Invoice so I can take a look?

If I need log-in details to view the site you can send temp login details over using this form:

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


J

April 11, 2024 at 3:58 am

This reply has been marked as private.


Tony

  • Support Staff

April 11, 2024 at 7:19 am

Ok, so you’re using Basic Auth on that site so I can’t view it with the access details, but that’s likely a clue as to the problem here.

Did you check this on the staging site BEFORE updating to 6.5 whilst also using Basic Auth?

The reason I ask is DOMPDF (the library we use to generate the PDFs) sends what you can consider ‘external’ HTTP requests to pull in the asset files for the PDF, which in short are the CSS files. With basic auth those request will likely fail (in a very similar way to how it does when alow_url_fopen is disable) as the request isn’t authenticated so wont be allowed.

That likely also explains why I’m not able to reproduce this as its not the update to WP 6.5, but basic auth preventing the requests.


J

April 18, 2024 at 10:12 pm

Many thanks Tony – it was indeed the staging site settings


Rio

  • Support Staff

April 18, 2024 at 11:22 pm

Good to hear that everything is fine now. If you need anything, feel free to0 reach us again.

thanks

The support post ‘Update to WordPress 6.5 Causing Issues with PDF Invoice Download’ 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