WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] RSS Feed Error – Duplicate Attribute

[Resolved] RSS Feed Error – Duplicate Attribute

  • ohsheglows
    Member

    @ohsheglows

    I’m getting the following error with my RSS feed since I upgraded to 2.8.4 from 2.7.x.

    This feed contains code errors.
    More information
    Duplicate attribute.
    Line: 10 Character: 2

    You can see this at http://ohsheglows.com/feed.

    Anyone know what could be the issue? I haven’t made any customizations to the RSS feed so I’m not sure what is going on.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • ohsheglows
    Member

    @ohsheglows

    I figured out my issue. The following attribute was displaying twice:

    xmlns:slash=”http://purl.org/rss/1.0/modules/slash/”

    Inside the file: /wp-includes/feed-rss2.php there is a section:

    xmlns:slash=”http://purl.org/rss/1.0/modules/slash/”
    <?php do_action(‘rss2_ns’); ?>

    It appears the function do_action(‘rss2_ns’) also puts in the line above it. So I removed the line above (xmlns:slash=”http://purl.org/rss/1.0/modules/slash/”) and it appears to work now.

    Hope this helps others.

    kmessinger
    Forum Moderator

    @kmessinger

    Although your feed looks ok, it does not validate. http://feedvalidator.org/check.cgi?url=http%3a%2f%2fohsheglows.com%2f

    There is not an error in the wp-includes/feed-rss2.php or everyone using WP would have the error. You changing that file just masked the real error. Normally one does not want to change core WP files.

    I was having this same issue. I tracked it down to a plugin called: Slash Comments which was adding the duplicate attribute in the xml. Deactivating the plugin fixed the issue. It looks like the functionality that the plugin served has been added to the WordPress Core code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] RSS Feed Error – Duplicate Attribute’ is closed to new replies.