Forums / General Questions / category links won't validate - help

category links won't validate - help

Locked

Started by defkiss on 10 Apr 2007, 9:08 PM · Views: 1,250

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 Apr 2007, 9:08 PM
#1
defkiss avatar

defkiss

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

category links won't validate - help

Hi,

I had my site validating with the w3c html validator fine, until I put a 3x3 table in my main page containing category images and links to each category, now i get an error for each link because the links contain the character "&" and html thinks this is the beginning of an entity reference or something. I understand to correct this I have to write the links with "&" instead. The problem is when i do this in the plain text editor it wont let me save it????? any ideas anyone??

         cannot generate system identifier for general entity "cPath"....e-vstore.com/index.php?main_page=inde[B]x[/B]&cPath=9">Vibrators</a><br /></td><td a                 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 (;).       [B]The most common cause of this error is unencoded ampersands in       URLs[/B] as described by the [URL="http://www.htmlhelp.com/"]WDG[/URL] in "[URL="http://www.htmlhelp.com/tools/validator/problems.html#amp"]Ampersands         in URLs[/URL]".     
            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 "&" ([I]even inside URLs![/I]). 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.     
            If this error appears in some markup generated by PHP's session handling       code, [URL="http://www.w3.org/QA/2005/04/php-session"]this article[/URL] has        explanations and solutions to your problem.     
            Note that in most documents, errors related to entity references will       trigger up to 5 separate messages from the Validator. Usually these       will all disappear when the original problem is fixed.     
   
```Thank you in advance
<http://www.the-vstore.com>

"The Air Force pinned a medal on me for killing a man and discharged me for making love to one." - Leonard Matlovich

10 Apr 2007, 10:07 PM
#2
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: category links won't validate - help

Are you sure you mean "plain text" editor? Normally, this sort of problem occurs when you use the HTMLarea text editor - even in Source mode - instead of plain text.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

10 Apr 2007, 10:07 PM
#3
Kim avatar

Kim

Obaa-san

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

Re: category links won't validate - help

Why did you hardcode links when you could have just turned on the Categories Display from your Admin?

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.

11 Apr 2007, 5:02 PM
#4
defkiss avatar

defkiss

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: category links won't validate - help

hmmm....

not sure why i didnt do that kim, i have done now and it is validating fine. thanks for the help and sorry for wasting forum space!

I'm a ninny.

"The Air Force pinned a medal on me for killing a man and discharged me for making love to one." - Leonard Matlovich

30 May 2007, 12:09 PM
#5
garyclemens avatar

garyclemens

New Zenner

Join Date:
Jan 2007
Location:
Florida/Missouri
Posts:
77
Plugin Contributions:
0

Re: category links won't validate - help

After inserting a table my page validates okay. After inserting images or text I get the following error : "document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

...llpadding="4" width="100%" border="1"><tbody><tr><td><p align="center"> <img"

I seem to get this alot when using tables, and not sure what Im doing wrong. Any clues I thank you
an example of this error is at:

http://www.pepper-spray.biz/index.php?main_page=product_info&cPath=1&products_id=18