Hi guys. I am struggling to embedd a youtube rss feed on my website. I 've had created:
A importer is configured with Youtube Parser, Http fetcher, Node Processor with the fields mappings Video title->Title, timestamp->Published date, GUID->GUID,Video URL->video (media_internet).
A content type named youtube_item with the fields Title, Body and a Multimedia Asset field called video.;
I tried a lot of different setups and in the all cases I had the same error. Everything I try to do with Youtube Parser, I get the same error again and again.
I tried different url, that I created on Youtube Data API.
I last tested with http://gdata.youtube.com/feeds/base/users/NBAHiighlights/uploads?alt=rss
When I use the default parser, there is no error but I do not get embedded video. Only a Image with the link to the youtube.
Am I doing something wrong ? I want every item of the feed imported as a post, with the video embedded inside it. There is a way to do it ?
Did I do the correct thing ?
An error has occurred.
Please continue to the error page
An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /drupal/batch?render=overlay&id=66&op=do StatusText: OK ResponseText: Fatal error: Call to a member function attributes() on a non-object in /var/www/mysite.com/htdocs/drupal/sites/all/modules/feeds_youtube/FeedsYoutubeParser.inc on line
314
Thank you in advance and sorry about my poor english.
Comments
Comment #1
torgospizzaGetting this as well. I know Media had been updated recently, makes me wonder if this module needs something fixed to work with new Media code?
EDIT: It looks like the "media" namespace is not being propagated. This line:
which is found in both functions parseAtom() and parseRss2(), appears to not be correctly getting the namespace of media nodes from the feed.
Unfortunately I don't know enough to fix this on my own. Help is greatly appreciated!
Comment #2
ezfranca commentedI just updated the Drupal to 7.4 and the modules were updated too, to the last versions.
this is the error I got.
Anyone have any idea ?
Comment #3
Dale Baldwin commentedI think this may actually be an issue with the feeds module itself not necessarily this parser. I'm trying to get this parser working on one site and xpath parser on another site and have been having huge amounts of trouble and constantly getting ajax errors regardless of what parser is in use.
Comment #4
torgospizzaThis might be a duplicate of #1059586: Fatal error: Call to a member function attributes() on a non-object when unsupported type of feed is provided. Has anyone experiencing this error tried the latest dev version (dated September 8th)?
Comment #5
zwacklmann commentedYou are using the wrong source for the feed.
Try swapping "base" for "api" in your url, like so:
http://gdata.youtube.com/feeds/api/users/somerandomusername/uploads?alt=rss
Comment #6
cpelham commentedSwapping "base" for "api" in the url allowed the import to take place without an error message, but all of the videos now show as "unavailable."