Posted: September 12, 2016 at 4:21 am
|
hi, |
|
hi, |
|
also some string are not translated, although there is a translation available in the translation file (PO) thanks! |
Hi Mark, Can you check with your hosting provide if allow_url_fopen has been disabled on your server? DOMPDF requires allow_url_fopen is enabled to pull in the styles and images for the PDF, your PDF’s have no images or styling applied so it looks like the server has the above disabled.
Message templates are generate and saved to the database when you first activate EE, if the MO (not PO) file is in place when that happened the translations will be applied at the time of generating the template. As the template is then saved to the database the translations are not applied on the fly if you change them later. To do that you need to force EE to regenerate the message again by ‘resetting’ the template whilst the translation is in place. To do that you go to: Event Espresso -> Messages -> Default message templates -> Receipt. Edit the template and look within the side bar, you’ll see a ‘Reset Templates’ button in the sidebar. You will lose any customization’s made to the template but EE will regenerate it and apply any translations you had added. Not you may also need to the same with the Invoice template. |
|
|
Ok thanks, but the allow_url_fopen was enabled, could it be something else? tnx! |
Can you enable WP_Debug on the server and add a link here I can use to download the Receipt and Invoice please? Check your servers error logs for any errors when downloading the pdf. Get_image_size () errors for example. |
|
|
Hi Tony, Ok, I’ll ask a collegue to do that tomorrow (that’s not my cup of tea) thanks |
That happens when you have invalid HTML within your template, have you modified the template at all? |
|
|
Ok thanks <tr class=”item”> removed it and added a <td></td>… looks ok in html –> a bit weird in the pdf is there a way to make this colspan=”2″ work again? thanks |
However looking at the example posted it looks like you have different formated ”
Note the |
|
|
strange… <tr class=”item”> |
Why have you removed the classes from the elements? You could try:
DOMPDF is much more strict (read fussy) on what it allows within the HTML structure, you’ll need to follow the current template and find what works for your customizations. |
|
|
It’s the default template… we didn’t change is. I did a template reset and it still the same as above … |
Which section are you looking at? Can you post a screenshot: https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots |
|
|
[TICKET_LINE_ITEM_LIST] I removed the colspan=”2″ and added a <td></td> to make it work for now tnx |
Hi Lieven, Was the styling issue resolved after your most recent changes? — |
|
September 15, 2016 at 10:05 am My apologies, for some reason I had the Invoice template on my mind rather than the Receipt template. Can you link me to an event I can view this on please? |
|
|
http://schoolvoorrelaties.mmdev.be/trainingen/basismodule-relateren-zo_-code-b49/ do I need to reset the code with the colspan? tnx! |
Hi Lieven, I’ve been running some testing on this and so far have been unable to reproduce. I also pulled the latest Dutch translations from: https://translate.eventespresso.com/projects/event-espresso-4/nl/event-espresso-nl_NL and reset my receipt template to confirm it wasn’t an issue with the translations, again that worked fine. This seems unique to your server but I can’t see why. Do you have any other plugins that create PDFs? I’m wondering if an unexpected version of DOMPDF is being used. |
|
The support post ‘download pdf / receipt doesn't have layout’ 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.