When opening the Media browser with YouTube browser enabled, I get a white screen. The following error is found in my error_log:

PHP Fatal error: Call to undefined function media_access() in ../sites/all/modules/media_youtube/includes/MediaYouTubeBrowser.inc

Comments

rpsu’s picture

Try patch #2 in #2319117: Please select a video. - Can't select YouTube video, it solved this issue in my case. If it solves this issue, please change status of this issue to Closed (duplicate).

benstallings’s picture

Thanks, rpsu, but that patch does not appear to address this issue and does not fix the error message on my site.

What does help is changing the specified line where the error occurs from

    return media_access('create', $account);

to

    return file_entity_access('create', 'video', $account);

This is a fix for Media 2.x and would probably break Media 1.x.

devin carlson’s picture

codenamerhubarb’s picture

Thanks BenStallings, #2 works for me.
Updating this in MediaYouTubeBrowser.inc fixes the issue.