Closed (duplicate)
Project:
Media: YouTube
Version:
7.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2013 at 11:00 UTC
Updated:
7 May 2014 at 08:14 UTC
Jump to comment: Most recent
Comments
Comment #1
cbeier commentedWhich version of the media module do you use?
I can confirm the warning messages with media 7.x-2.x-dev and 7.x-2.0-alpha3.
With media 7.x-1.4 the messages does not appear, because the media_youtube_add() is here not called.
The differenct array/data structure comes already from the Youtube API. If the search query only returns one result, the XML contains the entry directly. So, we need to normalize the returned structure from Youtube to avoid problems in the further processing.
Comment #2
cbeier commentedOk, I have seen that the problem is already resolved in the current 7.x-2.x-dev branch.
So, I think we can close this issue. Marking as duplicate of #1668950: YouTube Tab: Fatal error: Cannot use string offset as array in sites/all/modules/media_youtube/media_youtube.module on line 175.