Hi, I got a problem on uploading photos, it always shows on a pop up Fatal error: Call to undefined function file_info_file_types() in /home/--------/public_html/sites/all/modules/media/media.module on line 1084, and the only thing i can to upload an image is to upload at library tab, but it says error getting media.

Can anyone help me to fix this up. Thanks in advance guys.

Comments

saltednut’s picture

Assigned: Nauruto911 » Unassigned
Status: Active » Postponed (maintainer needs more info)

Hi - can you try updating your version of File Entity, the Media module and Media Gallery to the latest dev versions and let us know if this is still an issue?

organicwire’s picture

Confirming this issue. I freshly installed media 7.x-1.4. After uploading an image, i get the following error. However, the image is uploaded to the server.

Fatal error: Call to undefined function file_info_file_types() in $SITE_ROOT/sites/all/modules/contrib/media/media.module on line 1085

Call Stack:
    0.0000     642696   1. {main}() $SITE_ROOT/index.php:0
    0.0484    6173856   2. menu_execute_active_handler() $SITE_ROOT/index.php:21
    0.0486    6176496   3. call_user_func_array() $SITE_ROOT/includes/menu.inc:517
    0.0486    6176864   4. media_browser() $SITE_ROOT/includes/menu.inc:0
    0.1050    7788384   5. media_browser_build_media_item() $SITE_ROOT/sites/all/modules/contrib/media/includes/media.browser.inc:25
    0.1050    7788384   6. media_get_thumbnail_preview() $SITE_ROOT/sites/all/modules/contrib/media/includes/media.browser.inc:371

Using media 7.x-2.0-alpha3, uploading works fine.

marco.b’s picture

I've had (maybe) the same problem with media 1.x because it has file_entity itself as a submodule and i used the https://www.drupal.org/project/file_entity module because it was required by other modules.
The solution was to migrate media to the 2.x-dev branch.

Moloc’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Fixed

From the file_entity project page:

File Entity is required by the 7.x-2.x branch of the Media module.

The File entity project is not compatible with Media 7.x-1.x. You must use the File entity module bundled with Media 7.x-1.x.

media 1.x has its own file_entity bundled and works only with that version.
media 2.x needs the file_entity 2.x version.

You cannot mix those versions, as they are incompatible.

Status: Fixed » Closed (fixed)

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