WordPress.org

Ready to get started?Download WordPress

Forums

Where do I change DOCTYPE for rss2.php (9 posts)

  1. Dwjr
    Member
    Posted 7 years ago #

    My WordPress/wp-rss2.php did not validate. Where do I go to make the appropriate change?

    Also, WordPress/index.php had a problem with validation. Where do I go to make the changes for that?

  2. Chris_K
    Member
    Posted 7 years ago #

    Post the validation errors here (or a link to your feed) so that we can see the issue? Since Thousands (or 10s of Thousands) of WP feeds *do* validate, let's not go hacking into core code until we can see what the issue actually is.

    Oh - and you're running WP 2.0.4, yes?

    As for the other issue, it would be your theme files that you want to change. Located under wp-content/themes/YourThemeName

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    ...DOCTYPE...
    ...My WordPress/wp-rss2.php did not validate...
    ...Also, WordPress/index.php had a problem with validation...

    Shot in the dark, but...

    You have a blank line in the wrong place in a plugin or in some code you've modified yourself somewhere. That blank line is getting inserted before the DOCTYPE declaration on all your pages (because plugins happen before the page displays). This is why you are failing validation, not because of some problem with the RSS or the page itself. Find and remove that blank line before doing anything else.

  4. Dwjr
    Member
    Posted 7 years ago #

    Hello,

    http://sarasotafreeads.com/WordPress/wp-rss2.php

    Yes, I updated to current version.

    Also, technorati.com keeps rejecting my blog.

    Thanks for the reply,
    dwjr

  5. Dwjr
    Member
    Posted 7 years ago #

    Hello again,

    There has been changes with validation.

    Feed validator now states index.php and wp-rss2.php both validate, but commentRSS should be commentRss

    W3C states index.php is valid but wp-rss2.php is not valid because of DOCTYPE. I am not sure if there is an unacceptable space between characters.

    Thanks,
    Dwjr

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Umm.. Only wp-rss2.php is the feed. The Feed validator is only for validating feeds.

    Similarly, the W3C thing isn't made to validate feeds, so putting your feed URL in there is pointless.

    And you can fix the commentsRSS thing by simply editing wp-rss2.php and correcting the capitalization.

  7. Dwjr
    Member
    Posted 7 years ago #

    Hello,

    Thanks for the clarification.

    Do you have any suggestions why technorati.com is rejecting the blog? I have not made any significant changes such as plug-ins since I upgraded.

    Dwjr

  8. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    I don't know what you mean by "rejecting" the blog, so I have no opinion. You'll have to give more information.

  9. Dwjr
    Member
    Posted 7 years ago #

    I cannot claim the blog. I am not given a claim number with html code to put in the blog or on the blog site. Therefore, it cannot be spidered by technorati.

Topic Closed

This topic has been closed to new replies.

About this Topic