Hello,

My RSS feeds are broken.

I can see white spaces in the source code.

Any idea from where these are coming?

I have verified by checking with other themes.

But I can find the same error with other themes also.

So, may be from some modules.

Is there any strategic way to find out from where these spaces are coming?

Comments

cammangels’s picture

I've been looking for answers to this same problem for a while now with no luck. Anyone else out there have this problem?

I've tried turning off all modules in groups at a time. Not one of them was found to be the culprit unless it's the Views RSS module itself. I'll keep trying.

Cam

Bigglesworth’s picture

Had the same problem here ...

I fixed it by removing the extra line breaks that i myself had mistakenly put in at the end of my template.php
Being a noob, i had put a closing php tag at the end of my template.php file and it had a couple line breaks after it - now i am seeing that the closing tag is not needed at all.

If that doesn't work for you, i have seen it mentioned in other threads that a module could be the source of the extra line breaks - make sure there are no line breaks after the closing php tags at the end of all files.

lmshawl’s picture

"I fixed it by removing the extra line breaks that i myself had mistakenly put in at the end of my template.php"

This worked for me -- I never would have figured that one out on my own. Thank you!

Dewi Morgan’s picture

Mine was at the end of settings.php, but basically the same fix. Thanks!

OSC’s picture

In my case, this was being caused by a module in development stage for 6--"anonymous comment." I kept turning off modules and plugging the feed URL into feed validator (http://beta.feedvalidator.org/) until I had isolated the module causing the error. Turned off this module and everything worked fine after. Noted the bug on the page for that module.