Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Validation errors

    Hi there,
    I was checking my site for validation errors and there are a few of them.
    The main one seems to be this the "i" in id
    /index.php?main_page=page&id=14">E-Juice</a><br /><a href="http:
    [FONT=Arial]The error message says: [/FONT]
    Line 80, Column 115
    :
    cannot generate system identifier for general entity "id"
    [FONT=Arial]
    Then the description
    [/FONT]
    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".
    Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.



    how do i fix this??


    Cheers,


    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  2. #2
    Join Date
    May 2009
    Location
    Longmont, CO
    Posts
    91
    Plugin Contributions
    0

    Default Re: Validation errors

    Hello.
    Check your URLs, hardcoded links, text and category names for the "&" symbol and replace with "&amp;"

    As per your message:
    /index.php?main_page=page&id=14">E-Juice</a><br /><a href="http:

    The link should read:
    /index.php?main_page=page&amp;id=14">E-Juice</a><br /><a href="http:

    Hope that helps.
    Drunkguy
    Last edited by Drunkguy; 13 Feb 2011 at 09:20 PM.

  3. #3
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: Validation errors

    Thanks Drunkguy.
    That worked. :)

    The last two seem to be with <BR> tags.
    There are quite a few of these but they all relate to the same page
    Can you please help me with this?
    Once I understand one I can fix the others.

    Line 107, Column 131: end tag for "br" omitted, but OMITTAG NO was specified …font size="2">We aim to be your one stop shop for all your vaping needs.<br>
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".



    The next part says

    1. Line 107, Column 127: start tag was here …font size="2">We aim to be your one stop shop for all your vaping needs.<br>



    The other one is
    Line 108, Column 64: end tag for "br" omitted, but OMITTAG NO was specified …ty products at competitive prices.<br><br>We prefer to call our products "pers…
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">"

    and
    Line 108, Column 60: start tag was here …uality products at competitive prices.<br><br>We prefer to call our products "…
    Thanks for your help
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  4. #4
    Join Date
    May 2009
    Location
    Longmont, CO
    Posts
    91
    Plugin Contributions
    0

    Default Re: Validation errors

    Line breaks must be <br /> rather than the standard html <br>

    Also get to know how xhtml differs from html 1-4. There are a lot of subtle differences that you should be aware of that will cause validation errors.

    Cheers
    Drunkguy

  5. #5
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: Validation errors

    Thanks mate.
    should this be
    .<br><br />We prefer to call our products
    with a space between the r and /

    cheers,

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  6. #6
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Validation errors

    Quote Originally Posted by maxy007 View Post
    Thanks mate.
    should this be
    .<br><br />We prefer to call our products
    with a space between the r and /

    cheers,

    Maxy
    Both need to be closed and yes it needs a space as in <br />


    this should be
    .<br /><br />We prefer to call our products
    with a space between the r and /

  7. #7
    Join Date
    Dec 2010
    Posts
    248
    Plugin Contributions
    0

    Default Re: Validation errors

    That's fantastic!!
    Thank you for your help.

    Cheers,

    Maxy
    Mitch B
    www.lovetovape.com.au
    love the Zen-Cart forums!!!

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Validation errors

    Actually the space is unnecessary and can even be unhelpful. For example Zen Cart includes a function that truncates product descriptions, but is careful not to truncate in the middle of a word. It detects the end of a word by looking for the space that comes after it, which can cause it to truncate in the middle of a br tag. So <br/> is safer than <br />.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Validation errors

    Quote Originally Posted by kuroi View Post
    Actually the space is unnecessary and can even be unhelpful. For example Zen Cart includes a function that truncates product descriptions, but is careful not to truncate in the middle of a word. It detects the end of a word by looking for the space that comes after it, which can cause it to truncate in the middle of a br tag. So <br/> is safer than <br />.
    I stand corrected...
    I have been using <br /> for so long now that I thought it was the "standard"

  10. #10
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Validation errors

    Technically, <br /> is correct whereas <br/> is not; when using XHTML.

    This is due to the XML Standards which state that any unmatched tag must use space/>.

    This also includes, for example, such tags as: <meta /> <link /> <base /> <hr /> <img />

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Strange Validation Errors
    By vitalwares in forum General Questions
    Replies: 8
    Last Post: 12 Jul 2009, 10:29 PM
  2. Validation Errors
    By vitalwares in forum General Questions
    Replies: 6
    Last Post: 31 May 2008, 10:15 AM
  3. Validation Errors
    By fantasticals in forum General Questions
    Replies: 2
    Last Post: 1 Apr 2008, 06:38 PM
  4. Validation errors
    By Woody619 in forum General Questions
    Replies: 6
    Last Post: 16 Apr 2007, 09:48 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR