Posted by cynthiam on September 10, 2009 at 2:10pm
Two things:
1. We have an RSS link on our site http://www.mothering.com/rss.xml but clicking on it just gives the XML file to download. This site's RSS link: http://www.fashionata.be/rss.xml is the same as ours but it opens a page. How can we get this to happen for our RSS?
2. Our RSS is not parsing correctly. It seems there is an extra white space at the top of the feed. How do I correct that?
Thanks in advance for any help. :)
Comments
Whitespace is the culprit
Since XML requires that the XML prefix come before anything else in the document, it's possible that extra whitespace is causing the whole RSS feed not to validate. But as to why you'd get such a variation from a core component is beyond me :(. The MIME type and character set seem to be set correctly.
I installed the Feedburner
I installed the Feedburner module, got that set up and then went to Feedburner to burn our feed. I got this:
But how do I fix the file? I can't find a rss.xml file on our server to even look to see if i can find the error.
It would seem the rss.xml
It would seem the rss.xml file is in our root but it is not there. Can anyone tell me where I might find it?
Anyone know how to edit the
Anyone know how to edit the rss.xml file? Or where it is located? I might be able to figure it out if I could only find it. LOL!
=-=
There is no rss.xml "file". That is why you can't find it. It's core generated based on the path /node
You problem is likely that one of the teasers, some content or some blocks on your front page are malformed. run the page through a validator.
It seems the issue is that it
It seems the issue is that it is like this:
<?xml version="1.0" encoding="utf-8"?>
When it should be:
<?xml version="1.0" encoding="utf-8"?>
There's a white space at the beginning of that line. Does that still mean it is a teaser, some content, or some block malformed? I did disable teasers and that did not make a difference.
Run what page, specifically, through a validator?
Thanks much. :o)
=-=
what is exact version of drupal in use?
your feed validated = http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.mothering.co...
other link you supplied validated = http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.fashionata.b...
If there is white space there I don't see it, though I don't know that whitespace can cause a feed to fail completely.
The pages that would require validation could be anything on the frontpage or included in the feed itself.
Usually whitespace at the
Usually whitespace at the beginning of output is some random module that has a space before their opening PHP tag (<php).
Senior Drupal Engineer for Palantir.net | www.davereid.net | certifiedtorock.com/u/53892
So I open every .module file
So I open every .module file and check for a space before the opening PHP tag?
Drupal version is 6.12
Drupal version is 6.12
Any luck being able to
Any luck being able to resolve this?
UPDATE - I found 2 modules that had spaces after the closing php tag (?>). Removing those took care of the problem
which modules
Could you let us know the modules you found the spaces after the closing php tags?
Yes, please, let us know
Yes, please, let us know which modules had extra lines.
=-=
use an FTP tool
sort your folders by date
start with the newest uploads first
check files