Closed (fixed)
Project:
D7 Media
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 22:35 UTC
Updated:
20 Jan 2012 at 03:40 UTC
Using Media 7.x-1.x-dev from May, 26th and Styles 7.x-2.0-alpha8 on Drupal 7.2, I get the following error when I try to upload a file or browse the files library :
PHP Fatal error: Call to undefined function file_view_file() in /docroot/sites/all/modules/media/media.module on line 1055.
Comments
Comment #1
steinmb commentedHi
This comes from the sub-module, file_entity module, the function is in file_entity.file_api.inc and that file get's included in "file_entity.module"
I do not know what causes this, but I have also had code braking in media and 3-part modules like media_youtube/vimeo that are finding/loading these include files. Anyone willing to shed some light on issues like this, is this a core thing?
Comment #2
mrf commentedLooking at the info file it looks like file_entity is now a dependency for Media. I got this error when updating the dev branch through Git without first uninstalling the module.
Enabling file_entity removed the error message for me.
Comment #3
gollyg commentedSounds like this is no longer an issue, unless there is an issue around the upgrade path?
Comment #4
dave reid