Posted: October 3, 2021 at 1:41 pm
Hi Josh and team, Thanks for any pointers, Frank |
|
Hi Josh and team, Thanks for any pointers, Frank |
|
Duplicate can be closed. |
|
Odd, sorry, this shows up twice and is marked as spam, when unfortunately it is not. Original message got deleted as well: Hi Josh & team, We have read some posts on here that state that images and other files are seen as “external” files based on the way dompdf builds the PDF. In order to debug this, can you give us any pointers on where to check in the code before the data is handed over to dompdf (files, classes, call-points, etc.)? We want to ensure that the server setup is ok. Thanks for any pointers, |
|
Hi Frank, DOMPDF is called \event-espresso-core-reg\core\libraries\messages\messenger\EE_Pdf_messenger.class.php but you wont find very much useful there. The main thing you need to confirm for DOMPDF is that Do you have a logo set within your invoice? If so, is that loading? If you enable WP_DEBUG on the site and generate a PDF, any errors/notice? I recommend using this snippet: https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug That enables logging in a
The fact that it works in the browser leads me to believe this is an issue with Have you recently changed PHP versions? Any other plugin that generate PDF’s on the site? EE checks if DOMPDF has already been defined before including the version within EE, if another plugin is loading it before EE then you may be using a different version than EE is expecting, although normally you’ll get an error if that happens. |
|
Hi Tony, 1. Yes we have a logo set up to be included in our invoice. This is getting displayed in the PDF without problems. 2. No errors with WP_DEBUG enabled. PDF gets generated fine. 3. allow_url_fopen was my check as well (based on the other posts on the support forums). But the fact that the logo is getting displayed, is the part that is confusing me. 4. Haven’t done any code changes nor PHP updates since this change occured. |
|
Did you try commenting out the snippet hooking in with the custom CSS to see if the default styles work? Can you send me the snippet you are using so I can see if anything stands out there? I’ll add it to a local site to confirm (seems unlikely to be the snippet, but worth a check). |
|
|
Hey, I just wanted to chime in here as I’m having the same problem. No updates or changes done to the system and from the 21st of september, where it was still generating a styled pdf, on to the 23rd of september it changed to non-styled pdfs only. This is really odd. Checked allow_url_fopen, it’s enabled, also WP_DEBUG doesn’t generate any errors at all. Need this fixed, it’s plain ugly. Any ideas? |
‘Something’ has changed be it on the server, the site (another plugin updated DOMPDF and is loading before Event Espresso for example) or within Event Espresso but we haven’t pushed an update recently and I’m assuming by ‘no updates or changes’ that you haven’t updated Event Espresso recently either. Are you also using custom CSS for the PDF’s or just the default templates/styles? Can you link me to an invoice for a test registration so I can take a look? Or an event I can add a test registration to myself. |
|
Hi Tony, Regarding the URL can you let me know how I can send you a PM? Thanks! |
|
We don’t use PM’s but you can add it as a private reply (check the checkbox to make your reply private when adding) or send it via email to support[at]eventespresso.com and I’ll take a look. Note if sending via email please include a reference to this thread in the email so I know what that email relates to. |
|
The support post ‘PDF Invoice no longer styled’ 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.