Hello,
Firefox can't interpret my RSS feeds generated by Views. Instead of reading the feeds in the browser itself, it attempts to download them. If I download the file and open it manually I get the following error from Firefox.

XML Parsing Error: XML or text declaration not at start of entity
Location: file:///C:/etc/etc...
Line Number 2, Column 1:<?xml version="1.0" encoding="utf-8"?>

I don't see a problem with that line. Does anyone?

You might notice that this declaration is located at line number 2. Line number one is blank. Could that be causing the parsing error in Firefox? I took a look at views-view-rss.tpl.php and I'm pretty certain the blank line is not coming from that file.

Comments

dawehner’s picture

Yes. This causes the error. Perhaps you do anywhere a print for debugging.

culturehub’s picture

@dereine: I wouldn't know where to begin. My knowledge of this project and php for that matter is very little.

Is anyone else having this issue with this version of Views? If not, it must be another module that's adding the space.

UPDATE: I disabled all of my contributed modules (except Views) but the same problem persists. Any ideas?

dawehner’s picture

Perhaps its also a custom theme issue?

Here it works fine.

culturehub’s picture

Nope, not coming from a theme. I came across some others who are having the same issue, http://drupal.org/node/521118. A custom module was the cause for one of them. It's gotta be the same for me. I'll keep looking and let you know if I find a solution. Thanks for the suggestions.

merlinofchaos’s picture

Status: Active » Closed (won't fix)

I believe there's nothing we can do to fix this; it's almost certainly something custom in your site (template.php IS the most common culprit but any file that gets included normally during the Drupal process can be at fault; also double check any ?> that might be at the end, because a whitespace after that can also cause this problem)

sun-fire’s picture

This problem can be caused by parasitic tags, who are been added to xml file by devel themer module. When i disable devel module, all works fine.