News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

[solved] Email source code broken in v3.0.17 with Joomla 3.6.2

Started by gba, September 20, 2016, 14:03:52 PM

Previous topic - Next topic

gba

Hi all!

These days I updated my online shop to VM v3.0.17 and Joomla 3.6.2.
I just noticed, that the source code of emails on changed order status is broken now:
There are line breaks in the email's source code, where in the template files are none.

This has not been in v3.0.12 with Joomla 3.4.8.

Can anyone confirm this?
And does anyone know, how to fix this?

Kind regards,
Gerald

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

Hi!

Thank you for your reply.

I updated VM now - neither 3.0.17.6 nor 3.0.18 have this issue fixed.
Anyone any other idea?

Kind regards,
Gerald

jenkinhill

I don't have a problem with 3.0.17.6 or 3.0.18 - can you post an example?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

gba

Hi!

Attached please find the source code of such a broken email.

Kind reagards,
Gerald

GJC Web Design

I agree your attached .txt is full of line feeds and breaks but if you look directly at the template files

e.g. components\com_virtuemart\views\invoice\tmpl\mail_html.php they are fine from VM

Are u over riding them or have you tried replacing directly with ftp?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

Hi!

Neither I am overriding them, nor I have tried to replace them directly with FTP.

jjk

Looks to me like you had opened and saved the file with a word processor. Many lines show the Windows 'End of Line' (EOL) type instead of Unix EOL type. So instead of 'LF' you have 'CR LF'. Also, if this is the complete source code of the email, I think it should show the DOCTYPE information in the first few lines. Maybe you just have to switch your browser 'View' > 'Text Encoding' to unicode encoding instead of western.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

gba

Hi jjk!

Thank you for your input.
Actually the template files do have just LF as end of line. There is no difference to another clear VM3.0.18 full package installation, where the emails are not broken. And also in the non broken emails the ends of line are CRLF then.
In both installations there is not DOCTYPE information in the first few lines.
So I still need to know, what is the difference between my installation and the full package installation.

Anymore ideas anyone?

Kind regards,
Gerald

EDIT: Sorry, I just noticed the CRLFs in my 'email.txt' file, while the regular line breaks are just LFs. So where do these additional CRLFs come from?

GJC Web Design

Quotenor I have tried to replace them directly with FTP.

why not?.. seems the first thing to try...
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

Do I understand you right, that you advise me to replace the VM template files in '/components/com_virtuemart/views/invoice/tmpl/' via FTP?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

Hi all!

I just found some difference between my updated installation and the clear full installation:
The emails of the full package installation have CRLFs where the template files have LFs.
The emails of my updated installation have LFs where the template files have LFs and additionally CRLFs approximately every 70 characters.
So this question arises:
Why are the LFs not replaced by CRLFs in my updated installation?

Kind regards,
Gerald

GJC Web Design

so which works correctly..?

the fact is no one else is reporting problems
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

In my opinion the emails of the full package installation are alright.
To answer your question: I think, the clear full package installation works correctly.

The fact, that no one else is reporting that problem, certainly does not solve the problem with me  ;)
Actually the clear full package installation works fine.
I am asking the forum hoping, that someone could help me find the source of the issue I am facing in my updated installation.
So I am grateful to anyone, who will do that.

Kind regards,
Gerald