When I search for a youtube video from the youtube tab, I get the following notice, and no results are returned.

Notice: Undefined property: stdClass::$data in _media_retrieve_xml() (line 40 of C:\wamp\www\drupal\sites\all\modules\media\includes\media.xml.inc).

Comments

aaron’s picture

emptyvoid’s picture

That's great, so that is great that we don't have duplicate issues.

But does anyone have any ideas on why the service doesn't work any longer.

emptyvoid’s picture

I'm guessing it may have something to do with the "security" changes in 7.20? Perhaps?

aaron’s picture

Project: Media: YouTube » D7 Media

In my case, it turned out that PHP's openSSL module was not enabled. This exposes another problem, in the media module, which expects $result->data, which might not exist if an error is returned.

vfspostwork’s picture

StatusFileSize
new75.27 KB

I' even can't paste youtube and vimeo url into the web-tab ... any clue ?

"http://www.youtube.com/watch?v=RuqpLOiFCfo could not be added. Only the following types of files are allowed to be uploaded: video"

Media version = "7.x-2.0-unstable7+37-dev"
Media_Youtube version = "7.x-1.0-beta5"
Media_Vimeo version = "7.x-2.0-rc2"

denix’s picture

I have exactly the same message with:
Media version = "7.x-2.0-unstable7+37-dev"
Media_Youtube version = "7.x-2.dev" and "7.x-2.0-rc2"

It does not seems to be a proxy issue.
Denis

aaron’s picture

Please do not hijack this issue, and also make sure that when you open a new issue, you post it in the media: youtube project issue queue. Note that with the video url that you provided, I did not get that problem, although I was using the 7.x-2.x branch of development.

devin carlson’s picture

Assigned: Unassigned » devin carlson
Status: Active » Needs review
StatusFileSize
new2.59 KB

A patch to add error handling for cases where the URL can't be retrieved using drupal_http_request().

devin carlson’s picture

Status: Needs review » Fixed

Tested #8 using a similar case as described in #4 by disabling PHP's openSSL module and attempting to retrieve a HTTPS URL which left $result->data unavailable.

Committed to 7.x-2.x.

Status: Fixed » Closed (fixed)

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