• The feed for my blog is http://blog.corre.info. In feed validator, here is the notice:

    “It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn’t find one. Please enter the address of your feed to validate.” Here is what is wrong:
    This feed does not validate.

    *

    line 2, column 0: Undefined root element: html [help]

    <html>

    *

    line 6, column 2: XML parsing error: <unknown>:6:2: mismatched tag [help]

    </head>
    ^

    In addition, this feed has an issue that may cause problems for some users. We recommend fixing this issue.

    *

    Feeds should not be served with the “text/html” media type [help]

    How can I correct this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This stuff shouldn’t ever show up in a feed:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    
    <body>
    </body>
    </html>

    But it is at the top of yours. If you disable plugins, does that persist? Have you been editing “core” WordPress files?

    Actually the feed for your blog is: http://blog.corre.info/feed/ The URL for your blog is what you linked to up above.

    Looks like on feedvalidator that head html is being added into your RSS feed.

    Have you done any editing of the wordpress files?

    You didn’t edit the config file with a html editor, did you? Please check to see if extra code has been added in there.

    What specific plugins have you added in?

    I would try turning off your plugins and then check to see if it works. If it does, one of the plugins that you;re using is causing a conflict. Easiest way to test is to turn them on one at a time and check the validator.

    Here’s what I’m seeing. This code is being put into the feed and it shouldn’t be:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>
    
    <body>
    </body>
    </html>

    edit: It’s being added to your html output as well. That extra bit is there when I pull up your blog as well. I have a feeling that you’ll find it if you look at your config file.

    Thread Starter corre

    (@corre)

    Yes, I did edit some of the WP files. And, I may have used DW as editor, a mistake. Most I used notepad.

    Thanks- I think you guys have got me on the right track.

    Thread Starter corre

    (@corre)

    Thanks

    Problem was in a plugin that I prepared by pasting plugin code into a page, in which I left some HTML code. Now fixed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feed not Validating in 2.2’ is closed to new replies.