Results 1 to 10 of 28

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    help question ampersands in URLs

    Hi,

    About the only thing that throws warnings when I validate my Zen Cart pages are the ampersands in the URLs of any links on the page. You know, where the link address is like...
    That red ampersand causes an error which cascades into subsequent arrors. It should be written out as &

    The w3.org site has a nice article about this and how to fix it, but I need advice on implementing it within Zen Cart. They suggest starting the php script with this...
    PHP Code:
    <?php ini_set('arg_separator.output','&amp;'); ?>
    Could one of the experts tell me how to do that within Zen Cart?

    TIA

    Rob

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: ampersands in URLs

    This should already be happening in stock ZC
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: ampersands in URLs

    Not really, at least for the categories' names.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Jan 2006
    Posts
    420
    Plugin Contributions
    0

    Default Re: ampersands in URLs

    Just installed latest zen cart to do a new site , and ampersands still appear in the URL , Therefore you can never pass the w3c HTML check,

    If someone has this rewrite working can they let us know how.
    Various Zen cart sites !

  5. #5
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: ampersands in URLs

    Quote Originally Posted by Merlinpa1969 View Post
    This should already be happening in stock ZC
    Well, the URL I posted above is an actual one (except for the domain name of course) so it's not working right on my sites. Drop in for a visit and see.

    Are there other issues that can cause this? Maybe server settings? Other mods? Phase of the moon? Temperature of Kim's coffee?

    Rob

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

    Default Re: ampersands in URLs

    Rob -

    Which site(s) are giving you a problem?
    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.

  7. #7
    Join Date
    Nov 2006
    Location
    Dartmouth, NS Canada
    Posts
    2,378
    Plugin Contributions
    0

    Default Re: ampersands in URLs

    Both of mine - links below.

    For example, validating the main page of the retail site yields...
    Line 131, Column 75: cannot generate system identifier for general entity "cPath".

    …ore/index.php?main_page=product_info&cPath=80_84&products_id=215"><img src="i



    An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". ... etc.
    Rob

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

    Default Re: ampersands in URLs

    Rob -

    The errors do not appear to be caused by content generated by Zen Cart, but rather by links that have been added - Just replace the & with &amp; in all URLs you have added.

    Note: They may have to re-done if you edit the content after your initial customization.
    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.

 

 

Similar Threads

  1. v151 Ampersands Not Being Converted
    By Feznizzle in forum General Questions
    Replies: 11
    Last Post: 6 Feb 2016, 04:37 PM
  2. Ultimate SEO URLs is messing with my admin URLs
    By Chrome Orange in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Jul 2009, 01:13 PM
  3. [Done v1.3.9] Ampersands in descriptions
    By cannibal_bill in forum Bug Reports
    Replies: 2
    Last Post: 12 Dec 2007, 02:11 AM

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