Forums / All Other Contributions/Addons / non w3c validation caused by ampersand problem

non w3c validation caused by ampersand problem

Locked

Views: 3,451

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 Jan 2009, 2:29 AM
#1
helpmeplz avatar

helpmeplz

New Zenner

Join Date:
Jan 2009
Posts:
1
Plugin Contributions:
0

non w3c validation caused by ampersand problem

Hi, help needed

if I try to validate, for instance, this page,

http://nutriweb-suplementos.com/loja/Twinlab

in w3c validator, it will give 5 errors,

the problem ? "&zenid=098..." it does not validate that ampersand, but it is really werid cause it validates all others,

if I look at the file functions>html_output.php, there is a variable $link overthere that joins the sessions id with the link you're at, the problem is that when i modify that function to use ? instead of & for &zenid, it gives me 246 errors and stops validating all other ampersands,

if I try to change & to &, it doesn't parses me the ";" and gives me a link output full off "&amp%"

Can someone please help me ?

27 Jan 2009, 8:41 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: non w3c validation caused by ampersand problem

A clean uncustomized freshly-unzipped install of Zen Cart v1.3.8 renders the separators correctly.

Sounds like you've got a bug in one or more of your addons.

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

27 Jan 2009, 9:07 PM
#3
skipwater avatar

skipwater

Totally Zenned

Join Date:
Jun 2008
Location:
Washington, DC
Posts:
775
Plugin Contributions:
1

Re: non w3c validation caused by ampersand problem

I just finished a site that had the same thing. What it comes down to is that you need to use zen_href_link function. For all links this function builds the & amp ; instead of just a & which is fail the failing point.

• 446F63746F722057686F •

3 May 2009, 6:18 AM
#4
rich00693 avatar

rich00693

New Zenner

Join Date:
Feb 2009
Posts:
89
Plugin Contributions:
0

Re: non w3c validation caused by ampersand problem

3 May 2009, 3:16 PM
#5
Kim avatar

Kim

Obaa-san

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

Re: non w3c validation caused by ampersand problem

This is not a problem from Zen Cart - it is your SEO addon.

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.

3 May 2009, 7:10 PM
#6
rich00693 avatar

rich00693

New Zenner

Join Date:
Feb 2009
Posts:
89
Plugin Contributions:
0

Re: non w3c validation caused by ampersand problem

thanks It nerrow down my errors, I find out the problem really cause by simple seo url, I will try to find out the problems

3 May 2009, 7:37 PM
#7
rich00693 avatar

rich00693

New Zenner

Join Date:
Feb 2009
Posts:
89
Plugin Contributions:
0

Re: non w3c validation caused by ampersand problem

thanks It nerrow down my errors, I find out the problem really cause by simple seo url, I will try to find out how to solve this problem