Installed latest from the Git and got this killer error.
PHP Fatal error: Call to undefined function media_include_browser_js() in /Users/heshan/.../modules/contrib/media_gallery/media_gallery.module on line 370

CommentFileSizeAuthor
#1 1136960_01.patch686 byteshypertext200

Comments

hypertext200’s picture

Status: Active » Needs review
StatusFileSize
new686 bytes

Reproduce use 7.x-1.x-beta3 media module and media_gallery

hypertext200’s picture

Status: Needs review » Closed (fixed)

Has been working fine with master versions.

vagrant’s picture

Version: 7.x-1.x-dev » 7.x-1.0-beta4

I am getting this same error using 7.x-1.0-beta4 on the media gallery and media modules. The patch from #1 is already installed in the beta4 version. This affects the "add media" link (there isn't one) and breaks the page load.

Any ideas where else to look? Thanks in advance

geert’s picture

Same fatal error on my site.

How it happened: after installing the modules, I went to the galleries tab that the module installs. As I do not have a gallery yet, I click the add new gallery on that page. upon saving, there is the fatal error: Fatal error: Call to undefined function media_include_browser_js() in C:\xampp\htdocs\Lenske\sites\all\modules\media_gallery\media_gallery.module on line 370

After going back to the site homepage, visiting the gallerie page, clicking the empty gallery, it gives the same error.

I use media beta4 and media gallerie beta 4

Geert

JacobSingh’s picture

This is actually because of #1106922: Clean up filenames, standardize on directories and it is already fixed in media_gallery 7.x-1.x: #1122330: Media module moved files around, need to update references

Update to the branch if you want it to work or patch. Another media_gallery release will come sometime soon.

triple5’s picture

Update to the branch if you want it to work or patch.

Thanks for the advice, since this is already an old post it would be good to have some information about the branch that should be checked out... Which exactly is a working version, and if you, why doesn't this become a beta5.

The other thing I want to remark is that drupal 7 has now a dependency control system, with which you can define exactly which version of the depending (or dependent?) module needs to be installed.
look at:
http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_pa...

that would be very cool...

triple5’s picture

It seems that media_gallery 7.x-1.x-dev from 25.04.2011 is working with media 7.x-1.0-beta4 hooray, it was very difficult to find this information though, please put this somewhere on the pages for the description.

rocbrook’s picture

Thanks triple5

fedik’s picture

For fix:
File: media_gallery.module
Need change line ~ 360 from this: module_load_include('inc', 'media', 'media.browser'); to this: module_load_include('inc', 'media', 'includes/media.browser');