Rss error in first line of xml : not well-formed (invalid token)

I'm having a problem with my rss feed.

Validator.w3.org is not accepting it, saying not well-formed (invalid token) on line 1.

It seems that the name of the website appearing between ?xml ? and rss might be causing the problem.

Column 54 is the end of the site name.

I cannot find where i can remove it... Any idea ?

Thank you

Topic xml rss Wordpress

Category Web


You have additional code active there add this string inside the feed and destroy the XML markup. The hook on this place is rss_tag_pre (see https://github.com/WordPress/WordPress/blob/b3b8942dfcb451eddb5559b63c1043fce5d9449e/wp-includes/feed-rss2.php#L21).

Deactivate all plugins, use a default Theme, and then, step by step, activate it again to identify the source for this problem. Alternative search about the wp-content directory for the hook rss_tag_pre.

Also, make sure there is no custom RSS feed in place in your functions.php.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.