RSS feeds created with the Views module (for Drupal 6) include an invalid tag:
0="xmlns:media="http://search.yahoo.com/mrss/""
I traced the bug to this line in the emfield module (emfield.module line 680 in the HEAD version, emfield.rss.inc line 123 in v1.1.2.2):
$rss[] = array('namespace' => array('xmlns:media="http://search.yahoo.com/mrss/"'));
It should be:
$rss[] = array('namespace' => array('xmlns:media' => 'http://search.yahoo.com/mrss/'));
The corrected line produces the right XML code: xmlns:media="http://search.yahoo.com/mrss/" (without the invalid 0)
I created a patch for the HEAD version (v1.25) which fixes that line. (In earlier versions it might be simpler to change it manually.)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | emfield.rss_.inc_.20080927.patch | 993 bytes | ekes |
| emfield_fix_rss_namespace.patch | 730 bytes | thebuckst0p |
Comments
Comment #1
heather commentedthis works a charm! thank you so much, thebuckstop!
i have a small welt in my forehead from banging my head against a wall. i wasn't even doing anything with the emfield module... so i was very stumped.
thanks to aaronwinborn for pointing me in the right direction.
what relief, yay!
Comment #2
ekes commentedThe change is correct. The rest of the code around the line isn't needed either anymore. It was there to solve a problem (in d5) that has changed by making the namespace the key (hence stopping duplicates).
Patch on current DRUPAL-6--1 attached.
Comment #3
heather commentedEkes actually caught me in IRC to tell me this, and I am using the changes he made above, and it works perfectly well! Thanks Ekes and all :)
Comment #4
ar-jan commentedThanks, I was wondering why my RSS feeds were broken... Fixed :)
Comment #5
alex ua commentedCommitted. Thanks!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.