Forums / Upgrading from 1.3.x to 1.3.9 / Apostrophe's in Product Description = Invalid XML

Apostrophe's in Product Description = Invalid XML

Locked

Started by jeff_mash on 19 Mar 2008, 3:35 PM · Views: 2,686

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
19 Mar 2008, 3:35 PM
#1
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Apostrophe's in Product Description = Invalid XML

Dr Byte & Team,

Can you point me in the direction if this has already been addressed? Apparently, with the latest 1.3.8, I am seeing an INVALID XML error with Linkpoint when one of the items in the cart contains an apostrophe.

SNIP:

[3] => Array
    (
        [id] => 4291
        [description] => 25' Rope - Uday (White)
        [quantity] => 1
        [price] => 4.84
    )

Everything else about the transaction looks fine. I know that in the past, these errors happened a lot when foreign customers used certain characters in their names and addresses, like í, ó, â, etc., but those appear to be fine now. The only thing out of the ordinary is these product titles in the ARRAY which appear to be causing a problem.

  • Jeff
19 Mar 2008, 3:38 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,692
Plugin Contributions:
0

Re: Apostrophe's in Product Description = Invalid XML

Please have a look in the bug reports for the problem and fix.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

19 Mar 2008, 5:09 PM
#3
jeff_mash avatar

jeff_mash

Totally Zenned

Join Date:
Aug 2004
Posts:
732
Plugin Contributions:
0

Re: Apostrophe's in Product Description = Invalid XML

Hi Kim,

Yes, I did check that thread (http://zen-cart.com/forum/showthread.php?t=82619) before making my post. I didn't see anything that pertained to my specific problem. I already have the latest linkpoint_api file on our system.

Truth be told, this is the first I am seeing this problem, and I don't know if it's isolated or not. All I know is that in the past, I would see Invalid XML errors when the user's foreign name/address messed up. In this instance, that all looks fine and dandy, but the Array of products is substituting an apostrophe.

So the following (25' Rope) looks like this: 25' Rope

  • Jeff
19 Mar 2008, 9:58 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Apostrophe's in Product Description = Invalid XML

I can't replicate the problem using the latest posted patch for Linkpoint, the link to which is in the thread you referenced.

.
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.