5

i'm getting following error in my wordpress site,

XML Parsing Error: XML or text declaration not at start of entity
Location: http://www.domain.com/news/feed/rss/
Line Number 3, Column 3:        <?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
----------------^

i have tried almost all solutions found via google, also tried the answers of same questions here in stackoverflow, but still i'm getting this error.

do any one have any idea about how to come out of it??

3 Answers 3

2

Try installing fix-rss-feed plugin.

Also I think you have a space before <?xml version="1.0" encoding="UTF-8"?>. Getting rid of it should do the trick.

Sign up to request clarification or add additional context in comments.

1 Comment

I think the plugin mentioned is outdated. You can try this plugin instead: wordpress.org/plugins/fix-my-feed-rss-repair
0

fix-rss-feed plugin is outdated. I had the same problem with the RSS feeds, try the solution provided here http://wejn.org/stuff/wejnswpwhitespacefix.php.html it works like charm!

Comments

0

In my opinion, rather than using a plugin, a better solution would be to remove all trailing white space across all PHP files in your theme directory. In a terminal window run:

cd yoursite/wp-content/themes/yourtheme

then run

find ./ -name "*.php" -exec sed -i -e '/^\n*$/d' {} \;

After that runs, try navigating to yoursite.com/feed

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.