Hi

1. Enable media module 7.x-1.0-beta1 - first time
2. I get a lot of errors about file permissions so I do chmod 755 on all files in media module folder.
3. Error - GD is not enabled in PHP
4. Enable GD in PHP and restart Apache
5. Enable media module 7.x-1.0-beta1 - second time

Now I get this error:

DatabaseSchemaObjectExistsException: Table media_type already exists. in DatabaseSchema->createTable() (line 621 of /home/tps/data/data/d7/drupal-7.x-dev/includes/database/schema.inc).

I might have taken a wrong path installing the media module but now it seems I am stuck.

Any help would be appreciated.

Thanks

Thomas S

Comments

JacobSingh’s picture

Title: Error installing media module - DatabaseSchemaObjectExistsException » Media should do a requirements check before installing via hook_requirements.
Category: support » bug

Hi Thomas,
Thanks for the report, I'm renaming the issue to articulate the actual problem that media should do a requirements check before installing via hook_requirements.

In your case, it got 1/2 way done installing, and then died due to lack of requirements. You tried to install again, and hit the error. You'll have to either manually clear out any media related tables or re-install Drupal and enable media probably.

You did have a backup before adding an unstable D7 module right? ;)

Best,
Jacob

JacobSingh’s picture

Priority: Normal » Minor
JacobSingh’s picture

Status: Active » Closed (fixed)

I think this is fixed because media requires image module which checks for these things. Please confirm