Zen Cart Logo
Forums / General Questions / Validation errors

Validation errors

Views: 1,934

Results 1 to 17 of 17
13 Feb 2011, 8:09 PM
#1
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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:
The error message says: *
Line 80, Column 115*:
cannot generate system identifier for general entity "id"

Then the description

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 "&" (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 æ are different characters.

how do i fix this??

Cheers,

Maxy

13 Feb 2011, 8:17 PM
#2
drunkguy avatar

drunkguy

New Zenner

Join Date:
May 2009
Location:
Longmont, CO
Posts:
91
Plugin Contributions:
0

Re: Validation errors

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

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&id=14">E-Juice</a><br /><a href="http:

Hope that helps.
Drunkguy

13 Feb 2011, 8:59 PM
#3
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.lovetovape.com.au%2F&charset=%28detect+automatically%29&doctype=Inline&ss=1&group=0&st=1&user-agent=W3C_Validator%2F1.1#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>                  [✉](http://validator.w3.org/feedback.html?uri=http%3A%2F%2Fwww.lovetovape.com.au%2F;errmsg_id=70#errormsg)     
                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

13 Feb 2011, 9:15 PM
#4
drunkguy avatar

drunkguy

New Zenner

Join Date:
May 2009
Location:
Longmont, CO
Posts:
91
Plugin Contributions:
0

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
:smile:

13 Feb 2011, 9:49 PM
#5
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

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

13 Feb 2011, 10:04 PM
#6
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Validation errors

maxy007:

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 /

13 Feb 2011, 11:05 PM
#7
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Validation errors

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

Cheers,

Maxy

13 Feb 2011, 11:24 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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

14 Feb 2011, 12:37 AM
#9
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Validation errors

kuroi:

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"

14 Feb 2011, 11:40 AM
#10
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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

15 Feb 2011, 9:55 AM
#11
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Validation errors

I've got one more error and I can't find it.

The error says:
…ove to Vape</a>. <a href="http://www.lovetovape.com.au" target="_blank"></div**>**
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

When i go to the line the below info is provided but I cant find it using the developers toolkit.

<div id="siteinfoLegal" class="legalCopyright">Copyright © 2011 <a href="http://www.lovetovape.com.au/index.php?main_page=index&zenid=8fbcb02a5dc92b11c8012802104cde92" target="_blank">Love to Vape</a>. <a href="http://www.lovetovape.com.au" target="_blank"></div>

Can someone please tell me what I'm missing here?

Cheers,

Maxy

15 Feb 2011, 10:06 AM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Validation errors

It's exactly as the error says ... you open this a tag

<a href="http://www.lovetovape.com.au" target="_blank">

but you don't close it.

15 Feb 2011, 10:08 AM
#13
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Validation errors

So closing it should be
<a href="http://www.lovetovape.com.au" target="_blank"/a>

cheers,

Maxy

15 Feb 2011, 10:16 AM
#14
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Validation errors

maxy007:

So closing it should be
<a href="http://www.lovetovape.com.au" target="_blank"/a>

cheers,

Maxy

I can't see why you want this redundant tag anyway
You can just delete it as its effectively unused

It used to be part of the Powered By Zen-Cart link that you have removed :(

15 Feb 2011, 10:18 AM
#15
maxy007 avatar

maxy007

Zen Follower

Join Date:
Dec 2010
Posts:
248
Plugin Contributions:
0

Re: Validation errors

gilby:

I can't see why you want this redundant tag anyway
You can just delete it as its effectively unused

It used to be part of the Powered By Zen-Cart link that you have removed :(

It must have been when I was changing stuff :oops:

How do I put it back.
The powered by Zen-Cart link I mean??

21 Mar 2011, 11:06 AM
#16
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Validation errors

Hi,

I have on a number of occassions changed all me category names to the "&" but the database keeps converting it back to &.
What can I do to stop this?

21 Mar 2011, 12:32 PM
#17
mikeyg avatar

mikeyg

Totally Zenned

Join Date:
May 2005
Posts:
515
Plugin Contributions:
0

Re: Validation errors

Can any body help with my validation errors which seem to be caused by using search result URL's as links.

Example:

"…earch_in_description=1&keyword=sofia&x=0&y=0" ><img src="./images/frontpage/fp…" does not like this end part of the URL... flags "keyword", "=", "&", "x", all as different errors.

https://www.funkymoose.co.uk is the site. Thanks