XML parsing error: :9:1: duplicate attribute

#330813
  • Resolved Arnab Sen
    Rank Math free

    Hi Team,

    I am getting below error in my RSS feed post migrating to Rankmath. Please help.

    XML parsing error: <unknown>:9:1: duplicate attribute

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience caused.

    Could you please share the URL in the sensitive data section so we can check?

    We look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I’ve checked your site using the Feed Validator tool and replicated the issue.

    In this case, assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Meanwhile, please try using this filter on your site:

    add_filter(  'rank_math/rss/add_media_namespace', function () {
    	echo"";
    } , 20 );

    The filter should be added to your active theme’s functions.php file. Here’s another way to apply the filter using the rankmath.php file:
    https://rankmath.com/kb/filters-hooks-api-developer/#adding-filters-and-hooks-in-rank-math-php

    The code above will remove at least one instance of the link xmlns:media="http://search.yahoo.com/mrss/" from your RSS feed and allow it to validate. Once done, clear your website’s cache and check again using the feed validator tool.

    I hope that helps.

    Thank you.

    Thank you so much for quick reply. There was a plugin error. I fixed it.

    Hello,

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘XML parsing error: :9:1: duplicate attribute’ is closed to new replies.