RSS problems

cynthiam - September 10, 2009 - 14:10

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. :)

Whitespace is the culprit

choster - September 10, 2009 - 16:18

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

cynthiam - September 10, 2009 - 17:03

I installed the Feedburner module, got that set up and then went to Feedburner to burn our feed. I got this:

XML Parsing error: syntax error
Explanation

Your feed is not well formed according to the XML specification. All feeds must be well-formed XML. In fact, IE7 and the RSS platform in Windows Vista only support feeds that are well-formed XML.
Solution

The text of the error may contain additional helpful details. At a minimum, the actual line and column number where the error was detected will be reported.

The most common cause is encoding errors. There are several basic approaches to solving this: escaping problematic characters ("<" becomes "<", "&" becomes "&", etc.), escaping entire blocks of text with CDATA sections, or putting an encoding declaration at the start of the feed.

Another common error is the inclusion of whitespace characters (spaces, tabs, newlines) before the XML Declaration. If an XML Declaration is included, it must be the first thing in the document
Not clear? Disagree?

You might be able to find help in one of these fine resources.

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

cynthiam - September 10, 2009 - 18:13

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

cynthiam - September 12, 2009 - 23:20

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!

=-=

VM - September 12, 2009 - 23:21

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

cynthiam - September 15, 2009 - 17:18

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)

=-=

VM - September 15, 2009 - 21:12

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

Dave Reid - September 24, 2009 - 23:47

Usually whitespace at the beginning of output is some random module that has a space before their opening PHP tag (<php).

Drupal freelance developer | www.davereid.net | www.drupalbook.com | Please help sponsor my attendance at DrupalCon S

So I open every .module file

cynthiam - September 25, 2009 - 13:22

So I open every .module file and check for a space before the opening PHP tag?

Drupal version is 6.12

cynthiam - September 25, 2009 - 13:21

Drupal version is 6.12

Any luck being able to

rsanan - November 12, 2009 - 18:57

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

fnikola - December 1, 2009 - 18:14

Could you let us know the modules you found the spaces after the closing php tags?

 
 

Drupal is a registered trademark of Dries Buytaert.