I tried 3 times to install MEDIA but the site crashes and I can not do anything (luckily I always backup the db).
The error is this (table file_display already exists):

DatabaseSchemaObjectExistsException: La tabella <em class="placeholder">file_display</em> esiste già. in DatabaseSchema->createTable() (linea 657 di /homez.548/tuxsa/www/includes/database/schema.inc).

Comments

marcoka’s picture

Status:Active» Fixed

i had that with other modules and other tables. Often this results after doing some "unclean installing/reinstalling".
just uninstall media and remove all media tables manually. then download and install again. this should fix your problem.

Status:Fixed» Closed (fixed)

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

leewoodman’s picture

I had this issue on my local VM using Drush sql-sync. Turned out that drush sql-sync wasn't removing the file_display table (by design see https://drupal.org/node/716412) on the existing db so when it came to run the hook_update to install media module and subsequently trying to enable file entity the table was still there from the old db. Removing all tables before drush sql-sync fixed the issue for me anyway you could also append --delete-all-tables to the drush sql-sync command.