Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Site not validating - due to categories box


Guest

Recommended Posts

Hi.

I've tried w3c to see if my site validates and I discovered a lot of errors. i've corrected many of them but I have some left and I'm not sure how to solve them.

 

Many seem to be related to categories.php box. Like this one:

 

Line 169, Column 146: NET-enabling start-tag requires SHORTTAG YES.

…<td width=156><a class=ml3 href=http://www.electrokids.ro/alte-accesorii-c-7.✉

The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.

 

Line 169, Column 208: end tag for element "A" which is not open.

…-accesorii-c-7.html>Alte accesorii</a><br><br class=px3></td></tr><tr><td col✉

The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

Now... the categories.php part that seems to me like the problem is:

 

$categories_string .= '- <a class=ml3 href=';

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

 

What should i do? I'm guessing it's about the " " - but I don't know where to put these... (I have several of these kind of errors - for each category).

 

And another type of error is:

 

Line 256, Column 265: cannot generate system identifier for general entity "w".

…on_digital_bidir_oregon_BBM212_1.jpg&w=100&h=100&page=" width="100" height="1✉

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.

 

If this error appears in some markup generated by PHP's session handling code, this article 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.

(Many of these too, related to displaying specials on index - but more certain to ImageMagic).

 

The two lines when viewing source code for index are:

 

<td align="center" class="smallText" width="33%" valign="top"><a href="http://www.electrokids.ro/interfon-digital-bidirectional-zero-interferente-functie-p-38.html"><img src="imagemagic.php?img=images/OREGONSCIENTIFIC/interfon_digital_bidir_oregon_BBM212_1.jpg&w=100&h=100&page=" width="100" height="100" border="0" alt="Interfon digital bidirectional "zero interferente" cu functie de" title="Interfon digital bidirectional "zero interferente" cu functie de"></a><br><a href="http://www.electrokids.ro/interfon-digital-bidirectional-zero-interferente-functie-p-38.html">Interfon digital bidirectional "zero interferente" cu functie de</a><br><s>389,00_RON</s><br><span class="productSpecialPrice">386,75_RON</span></td>

<td align="center" class="smallText" width="33%" valign="top"><a href="http://www.electrokids.ro/leagan-fisher-price-baby-papasan-cradle-p-63.html"><img src="imagemagic.php?img=images/FISHER_PRICE/leagan_fisher_price_baby_papasan_cradle_1.jpg&w=100&h=100&page=" width="100" height="100" border="0" alt="Leagan Fisher Price Baby Papasan Cradle" title="Leagan Fisher Price Baby Papasan Cradle"></a><br><a href="http://www.electrokids.ro/leagan-fisher-price-baby-papasan-cradle-p-63.html">Leagan Fisher Price Baby Papasan Cradle</a><br><s>690,00_RON</s><br><span class="productSpecialPrice">686,63_RON</span></td>

 

 

So I really need some help. Thank you!

Link to comment
Share on other sites

Have you followed the contibs for this?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I'll do that right now - I've searched the forums but unfortunately didn't find any references to these. Thank you. I'll come back to tell you what I did.

Link to comment
Share on other sites

Thank you. I managed to solve all the categories box problems. BUT as for the other errors - they are generated not by default files but by some contribs - like ImageMagic, or Google Analytics, Shop by Price, some Advanced Shopiing Cart, Default Specials. I really am trying to solve them or to find answers but until now these last errors won! :) Hopefully you will have an answer. :)

 

If anyone has the patience to look, here are all the errors: W3c errors

Link to comment
Share on other sites

  • 1 year later...

Thank you. I managed to solve all the categories box problems. BUT as for the other errors - they are generated not by default files but by some contribs - like ImageMagic, or Google Analytics, Shop by Price, some Advanced Shopiing Cart, Default Specials. I really am trying to solve them or to find answers but until now these last errors won! :) Hopefully you will have an answer. :)

 

If anyone has the patience to look, here are all the errors: W3c errors

 

Hi I have just found your post after days of searching for a solution to the same problem. Could you kindly tell me how you managed to fix the problem of the categories not validating? I can help you with the other validation problems if you are still interested.

 

Thanks

 

 

Brian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...