Beta 3 was working just fine. I updated to Beta 4 and got the following message:
Fatal error: Call to undefined function media_include_browser_js() in /sites/all/modules/media_gallery/media_gallery.module on line 370.

I did a new D7 install and used beta 4 but I still get the same error message.

website is 1.thesports-store.com

Comments

joebest’s picture

Title: Fatal error message when using beta 4 » Fatal error message when using Media beta 4
kbm065’s picture

I get the same error. The update failed, and now I can't post content, because I get the same error as mentioned here.

johntarling’s picture

I think this will need to be moved to the media gallery queue as this is most likely to be with the update of media to use file entities as noted here #1086958: Switch from Media Entity to File Entity comment #25 states that other modules such as media_gallery will need to be updated to cope with this change.

embloo’s picture

I agree with #3, i only noted this exact same error after updating the Media module itself. I did note, however, that the 'galleries' work fine once logged out. i tired creating a new gallery to see if it would workaround, and while it completed creating the new gallery, the same error appeared afterwards, when trying to access it. i'm not much of a coder, but thought these symptoms might provide some clues.

camdarley’s picture

Get the same error. Should we move this to the media_gallery module?

ruski’s picture

I also get a fatal error after upgrading to beta4, however it is triggered when I click on the "Add Media" Icon in Wysiwyg/CKEditor.

Error as follows:

Fatal error: require_once() [function.require]: Failed opening required '/home/mysite/public_html/client/sites/all/modules/media/media.browser.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/mysite/php') in /home/mysite/public_html/client/includes/menu.inc on line 499

ruski’s picture

I've since opened up the menu_router table, changed all references of media/media.browser.inc to media/wysiwyg_plugins/media.inc and flushed all caches repeatedly. This seems to have restored media functionality for me. Hope I haven't broken something else :)

Mac Ryan’s picture

subscribe

JacobSingh’s picture

Status: Active » Closed (duplicate)

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.

joebest’s picture

I made a new install using:
media_gallery-7.x-1.x-dev.tar.gz
media_youtube-7.x-1.0-alpha4.tar.gz
media-7.x-1.0-beta4.tar.gz
multiform-7.x-1.0-beta2.tar.gz
styles-7.x-2.x-dev.tar.gz

And It's working fine

ronald577’s picture

Title: Fatal error message when using Media beta 4 » Re:Fatal error message when using Media beta 4

I tried uninstalling and reinstalling but facing the same error.