I'm opening an issue here for the same Undefined function media_load() in mediafront.module on line 630 issue in the Mediafront module.

According to the maintainer, beta4 did work but with the dev branch the error 'Call to undefined function media_load() in ..\sites\all\modules\mediafront\mediafront.module on line 630' appears. I'm assuming that since the dev branch now has been refactored changing to using the file entity, this broke whatever worked with Mediafront. Maybe communicating the breaking changes back over there will move this along.

I tried downgrading back to the beta4 branch did that did not go so well, so I'm back on dev. Now I also have the issue of not being able to delete any of the media in my content library (I only have 1 video and 1 image, which aren't used anywhere - I deleted pretty much any test articles that were using them). What do I do to fix this (delete some records in some table)? I'm hesitant to do an uninstall/reinstall after reading some of the issues with that.

It looks like I'll be using MediaElement for now since that integrates well with WYSIWYG too.

Comments

wuffers’s picture

Solved the side issue of unused files not being able to be deleted from the media browser.

Went to file_usage table and decremented the count back to 0 and I could delete the "dirty" media.

imkamalkumar’s picture

Hello, I am having exactly the same problem. Please could you explain how do I fix this?

dwgassen’s picture

Drupal newbie here, this update completely breaks media view and mediafront with the undefined function. And I can't seem to uninstall media beta5 to go back to beta4. Uninstall says successful but module still shows in list so I can't install beta4. At least I backed up everything but....help!

dwgassen’s picture

Ok I am back to beta4 had to restore modules folder and database. beta5 clearly isn't ready for primetime.

webankit’s picture

+1

arthurf’s picture

Project: D7 Media » MediaFront

@travist pushing this one over to you. With beta 5 media now uses file entities which are defined in file_entity module. file_load() should work for you

travist’s picture

Status: Active » Fixed

Latest version fixes this issue.

Status: Fixed » Closed (fixed)

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