I obtained an author's widget from: ezinearticles.com, bukisa.com, hubpages.com each.
When placed in Sidebars, the W3C validator raises a hundred errors. However, when placed in a Page, it works flawlessly.
Till date no one has given any reason why it happens. Whether anyone can help me out?
The widget code is like this:
Can you please provide us with a link to a test page on which the many errors occur?
Thanks for your reply. I am so happy some one responded. Here is the link:
[Invalid] Markup Validation of http://www.accidentinsuranceforfree.com/ - W3C Markup Validator
I have pasted the widget in the Sidebar where it produces 28 errors. Currently I have pasted ONLY from ezinearticles.com, and not from Bukisa & hubpages.
I will copy here what the validator says for that first error.
Line 144, Column 293: cannot generate system identifier for general entity "cheader"
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 "[URL="http://www.htmlhelp.com/tools/validator/problems.html#amp"]Ampersands in URLs](http://www.htmlhelp.com/)".
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.
The error message seems to be pretty clear about what the problem is, why it occurred, and what you can do to fix the problem.
Is there anything about it though that you want further information on?
Thank you Sir. It has worked.
I wonder since Sidebar is just an extension, the "&" rule is checked here and not on any "page".
I have lost count on the number of forums I posted, NO ONE replied. You are a different class apart.
You may need to help us understand the difference between what you mean there. Can you come up with a couple of quick examples that help to demonstrate the difference between the two?
As I mentioned in my first post, the same code worked without any validation errors (On a Page). I wrote this to some known thesis theme tutorial websites, and even they were amused, "when it works on a Page, why not in Sidebar"?
I am a newbie, with just 4 months on Wordpress. I only have right to be amazed as well. I have neither any answers nor solutions.
Moreover, as I said no one from the countless forums I posted on, replied. Again I am amazed.
This is the first that you've mentioned that Wordpress is involved, so there's your answer. When you put it in the wordpress page, instead of the sidebar, you should see that page source for that link has been properly converted for the page content. The good people in our wordpress forum really are the best to talk to though when it comes to Wordpress related issues.
What you say must be right (Though I did not understand, it went above my head)
The actual cause was due to how the URI in the HTML attribute was being parsed. Still, it's good that you're all sorted now.