Author Topic: [solved] Email source code broken in v3.0.17 with Joomla 3.6.2  (Read 2584 times)

gba

  • Jr. Member
  • **
  • Posts: 299
[solved] Email source code broken in v3.0.17 with Joomla 3.6.2
« on: September 20, 2016, 14:03:52 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9245
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #1 on: September 20, 2016, 14:18:16 pm »
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #2 on: September 20, 2016, 18:07:59 pm »
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

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27605
  • Always on vacation
    • Jenkin Hill Internet
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #3 on: September 20, 2016, 18:38:29 pm »
I don't have a problem with 3.0.17.6 or 3.0.18 - can you post an example?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33

gba

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #4 on: September 20, 2016, 19:15:37 pm »
Hi!

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

Kind reagards,
Gerald

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9245
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #5 on: September 20, 2016, 21:50:34 pm »
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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #6 on: September 20, 2016, 22:18:39 pm »
Hi!

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

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3552
  • using Matomo instead of Google Analytics
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #7 on: September 20, 2016, 23:32:49 pm »
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

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #8 on: September 22, 2016, 12:54:03 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9245
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #9 on: September 22, 2016, 13:14:25 pm »
Quote
nor 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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #10 on: September 22, 2016, 13:30:33 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9245
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #11 on: September 22, 2016, 14:11:37 pm »
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #12 on: September 22, 2016, 14:26:37 pm »
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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9245
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #13 on: September 22, 2016, 14:44:29 pm »
so which works correctly..?

the fact is no one else is reporting problems
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

gba

  • Jr. Member
  • **
  • Posts: 299
Re: Email source code broken in v3.0.17 with Joomla 3.6.2
« Reply #14 on: September 22, 2016, 14:49:37 pm »
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