Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Posts
    1
    Plugin Contributions
    0

    Default 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 ?

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

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

  3. #3
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default 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 •

  4. #4
    Join Date
    Feb 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: non w3c validation caused by ampersand problem

    I use version 1.38 , have the same problems, and I just use two add ons 1.google analytics configuration 2.simple seo URL, is either one cause the problems.
    and where can I get zen_href_link function to solve my problem
    my web is www.boxertiedown.com and error is
    http://validator.w3.org/check?uri=ht...idator%2F1.654
    hope can solve my problem

  5. #5
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

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

  6. #6
    Join Date
    Feb 2009
    Posts
    89
    Plugin Contributions
    0

    Default 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

  7. #7
    Join Date
    Feb 2009
    Posts
    89
    Plugin Contributions
    0

    Default 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

 

 

Similar Threads

  1. W3C validation problem
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Aug 2011, 09:01 PM
  2. W3C validation problem
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 10 Aug 2011, 12:40 AM
  3. W3C validation
    By slater555 in forum General Questions
    Replies: 1
    Last Post: 2 May 2011, 12:47 AM
  4. w3c validation
    By lieven23 in forum General Questions
    Replies: 14
    Last Post: 15 Nov 2010, 05:36 PM
  5. W3C Validation
    By fantasticals in forum General Questions
    Replies: 4
    Last Post: 18 Apr 2008, 06:14 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