Page 1 of 2 12 LastLast
Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Dr. Byte, thanks for this very useful suggestion!!

    The only meaningful differences that I can find are:

    A. Interestingly enough, in the paypalwpp.php file. I seem to have the "11302007" full release (3.8) installed but I have compared my install to the "12112007" version (3.8a)also available.

    Here are the differences, seems to be mostly to do with debug mode though... do you think this could cause the issue and if so, can I safely replace my version with the 12112007 version of the file?

    <snipped by moderator>


    Look forward to hearing from you whether you think any of these could be causing this?

    Cheers

    Cliff

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Random Malformed order confirmation emails

    I would use the more recent of the two versions.
    Note that v1.3.8a is newer than v1.3.8, and has a couple tiny but important bugfixes in it.


    None of the things you mention would have any bearing on order confirmation emails.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Hallelujah!! After weeks of searching and struggling, I FOUND THE ERROR!!

    Turns out that it had nothing to do with PayPal, it was to do with an OPTION VALUE (DESCRIPTION)!

    One of my option descriptions were "CHILD <12"

    When Zencart produces the TEXT email, it terminated the email when it encountered the "<" in the option description, but works fine in the HTML version. The copy of the email going to store owner always terminated on that option due to that email always being text.

    This must be A BUG, THE "<" is contained in the VALUE FIELD of the Option and should be somehow be converted to text when creating a text version of the email, perhaps by using "\<"?

    Hope this helps anyone else that encounters the same problem. Once I changed the Option value to "CHILD under 12" it works fine!!

    Cheers

    Cliff
    Last edited by cliffvt; 2 Aug 2009 at 07:55 PM.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Random Malformed order confirmation emails

    The < character is probably being treated as the beginning of an HTML tag, and since HTML tags are stripped out of text-only emails (for safety and appearance reasons), that's likely why the problem is occurring for you.

    Glad you have a workaround.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Yes thanks! I guess this should be reported as a bug since, if the character is encountered as part of a static description field, it's obviously not an HTML tag and should be preserved for the text version.

    Cheers

    Cliff

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Random Malformed order confirmation emails

    We'll look into it.

    However, HTML tags *do* (unfortunately) get used in various description fields, making it a little tough to apply simple generic rules to data parsing. Especially when the 'value' could be a text field that was entered by the customer ... which then brings security risks if not properly sanitized.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Random Malformed order confirmation emails

    Puzzling. I've tested the use of "Child < 12" as the option value, and can't reproduce any problems with emails getting truncated.
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Hah! I also notice that if you should enter "Child <Twelve" for example, then it totally ignores the "<Twelve" bit in the description in the Admin panel, and in the shop it shows "[Child <Twelve"]" (i.e. followed by a quote mark)
    See image below:


    Interesting!

  9. #9
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Random Malformed order confirmation emails

    What happens if you replace the "<" with "&lt;" instead?
    .
    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jul 2009
    Posts
    103
    Plugin Contributions
    0

    Default Re: Random Malformed order confirmation emails

    Dr Byte

    Just tested that, and whilst it looks correct on the option value (shows Child <12", when it gets to the checkout cart, it shows as "Child &lt;12" and the email is once again malformed.

    Cheers

    Cliff

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Order confirmation emails and Contact Us emails not being received
    By jcrewe in forum General Questions
    Replies: 5
    Last Post: 22 Mar 2015, 06:36 PM
  2. v153 Additional Order Confirmation & Order Update emails
    By dchquilling in forum General Questions
    Replies: 2
    Last Post: 13 Oct 2014, 05:04 PM
  3. Help: Not receiving [NEW ORDER] Order Confirmation Emails!
    By RocketFoot in forum General Questions
    Replies: 1
    Last Post: 15 Feb 2011, 05:55 PM
  4. random recieving order confirmation
    By boydiz in forum General Questions
    Replies: 0
    Last Post: 25 Sep 2007, 12:27 AM
  5. Order Confirmation Emails
    By customilluminations in forum General Questions
    Replies: 1
    Last Post: 21 May 2007, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg