When I enable the File Entity and Media modules, then navigate to the Content >> Files page, I get a whitscreen. Likewise, the media browser is giving an error when I try to add Media to a node:

The website encountered an unexpected error. Please try again later.

The error_log file contains the following warnings:

[warn] mod_fcgid: stderr: PHP Fatal error:  Unsupported operand types in .../file_entity/file_entity.admin.inc on line 28, referer: http://example.com/admin/modules?filter=media&enabled=1&disabled=1&required=1&unavailable=1

[warn] mod_fcgid: stderr: PHP Fatal error:  Unsupported operand types in .../file_entity/file_entity.admin.inc on line 28

Comments

brylie’s picture

Issue summary: View changes
brylie’s picture

Using drush returns an additional error:

failed to open stream: No such file or directory theme.inc:565
include_once(): Failed opening  '.../media/file_entity/file_entity.theme.inc'
for inclusion (include_path='...' theme.inc:565

The media module directory is not on the include path.

Devin Carlson’s picture

Priority: Major » Normal
Status: Active » Fixed

It sounds like you've got a mix of files from Media 1.x and Media + File Entity 2.x as there is no file_entity folder in media/ with Media 7.x-2.x.

I'd suggest disabling and uninstalling Media and File Entity, deleting both folders and installing them from scratch. You may also need to manually remove any leftover tables in the database if the modules don't uninstall cleanly.

Status: Fixed » Closed (fixed)

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