• Resolved volleybum

    (@volleybum)


    I’ve read a lot of other posts about this topic, but I haven’t been able to find my problem specifically. When I run the feedvalidator.org it tells me that Line 1 of my code for RSS isn’t well formed. Which file do I need to edit, and how do I fix this? Here’s what I’m getting from feedvalidator.org, and the first few lines of the code, which definitely isn’t the beginning of my wp-rss2.php file:

    Sorry

    This feed does not validate.

    line 1, column 30: XML parsing error: <unknown>:1:30: XML declaration not well-formed [help]
    <?xml version=”1.0″ encoding=”‘.get_settings(‘blog_charset’).'”?>
    ^
    Source: https://eric-carlson.net/index.php?feed=rss2
    01. <?xml version=”1.0″ encoding=”‘.get_settings(‘blog_charset’).'”?>
    02. <!– generator=”wordpress/2.0.3″ –>
    03. <rss version=”2.0″
    04. xmlns:content=”https://purl.org/rss/1.0/modules/content/&#8221;
    05. xmlns:wfw=”https://wellformedweb.org/CommentAPI/&#8221;
    06. xmlns:dc=”https://purl.org/dc/elements/1.1/&#8221;
    07. >

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The fact that you’re seeing the get_settings function call in the output indicates you have a fouled up wp-rss2.php file, somehow. I’d say to download a fresh copy of WordPress and replace just that file with a good copy.

    Thread Starter volleybum

    (@volleybum)

    See? THIS is why I love WordPress and these forums. Timely responses and useful information. Thanks Otto, I dropped in a fresh copy of wp-rss2.php and the feed came to life. I really appreciate it.

    I did find something kind of funny, though. As you mentioned, I did screw up wp-rss2.php when I was trying to correct the capitalization problem in wfw:commentRSS (changing it to wfw:commentRss). Now, Feed Validator tells me my feed is valid (and it does work, which is sweet) but that original capitalization problem might cause problems for some users. Should I be concerned?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    I’d edit the file to fix the problem, but I’m picky like that. It probably won’t break anything as is, and a future version of WP will probably fix it anyway.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘RSS feed won’t validate’ is closed to new replies.