Hi all
i've recently moved my updated D6 site from a dev url (still on the web) to the production URL. I also had to merge the dev db with the content from the production db.
Anyway, i have everything working EXCEPT the feeds produced by views. If i try to link to my rss feed in firefox, i get
"XML Parsing Error: not well-formed
Location: file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/test2.xml
Line Number 1, Column 2:<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://www.radarmusicvideos.com/briefs" xmlns:media="http://search.yahoo.com/mrss/" xmlns:dc="http://purl.org/dc/elements/1.1/">
-^"
in IE I get
"Invalid at the top level of the document.
Line: 1 Character: 1
<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://www.radarmusicvideos.com/briefs" xmlns:media="http://search.yahoo.com/mrss/" xmlns:dc="http://purl.org/dc/elements/1.1/">"
and in Opera I get
XML parsing failed: syntax error (Line: 1, Character: 0)
Reparse document as HTML
Error:unexpected text (non-whitespace text outside root element)
Specification:http://www.w3.org/TR/REC-xml/
To make this problem a little wierder, if I go to my view and preview my feed, it spits out the appropriate xml code. I can take that output xml, copy it, save it to an .xml file, upload it to my drupal folder, and it will render properly.
So somewhere between producing the .xml and creating the link, Drupal screws up.
You can see an output from the views feed at www.radarmusicvideos.com/test2.xml
Thanks for any ideas
Mark
Comments
Hi all, I can manually
Hi all,
I can manually reproduce the above error if I add a space before the opening tag in a static (working) .xml file.
So, is drupal adding white space before the first tag?
Mark
and one more thing in the
and one more thing
in the firefox error, there is the line
Location: file:///C:/DOCUME~1/Owner/LOCALS~1/Temp/test2-2.xml
why is it looking for something on my localhost? Is there something in the database pointing views to my localhost?
I've run cron and update.php. I don't think there's anything in the system.table about this. I'll check the views table
mark
bump
bump
I'm only guessing, but since
I'm only guessing, but since you're having trouble getting a reply, I'm assuming Firefox is saying it's downloaded the response /into/ the temporary file on your disk that it says.
If it were me, I'd have a look in that location, open up that file in something such as Notepad, and see what the first few characters are and report them here (put them between <code></code> so they don't get mangled if there's angle brackets etc in it.
But I don't really know anything about feeds.
hey, thanks for the idea.
hey,
thanks for the idea. Indeed, the file does have some 'bad' characters at the start of it.
The start of the file has 3 characters before the first tag. I would copy them here, but they don't seem to copy. they are 3 small dots, but at mid line-height. So they are not periods(.).
Anyone know why this could happen?
mark
The 3 dots very much look
The 3 dots very much look like a 'horizontal ellipsis" (…) but at mid-line height. HTML codes for this are
'…' and '… ;'But why are they there?
Just to repeat, these dots do not show up in the views preview of the feed, and my text editor ( flashDevelop) does not show/copy them.
Mark
bump, any one ?? any ideas?
bump, any one ?? any ideas?
Almost certainly these are
Almost certainly these are the 3 characters that editors such as Windows Notepad quietly stuff into the start of your file if you have 'fancy' characters in your text. It's part of the penalty of using Windows, perhaps you should switch to a decent system like Linux or Mac! ;)
Seriously though, you can read about this in http://en.wikipedia.org/wiki/Byte_Order_Mark though it probably tells you more than you fancy knowing and I'm unsure whether that will move you closer to a solution.
If it were hitting me, I'd try to identify whether it's a general issue with some aspect of Drupal, or just within Views (in which case try raising the issue on that module, e.g. http://drupal.org/project/issues/views
well, i can't find any info
this is a problem only on 1 installation, not on all of my sites. So I can't see/don't understand how windows could be the issue
Mark
My suggestions: First, look
My suggestions: First, look at that file with a hex editor, so you can report the content of the initial bytes of that file accurately.
Then try http://drupal.org/project/views, in particular down the end of that page looking at issues and support requests -- if you don't find anything relevant try submitting one.
Sorry you're not having any joy so far.