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

Comments

heather’s picture

this 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!

ekes’s picture

StatusFileSize
new993 bytes

The 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.

heather’s picture

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

ar-jan’s picture

Thanks, I was wondering why my RSS feeds were broken... Fixed :)

alex ua’s picture

Status: Needs review » Fixed

Committed. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.