I tried several times to install media module, it always fails. So I made a clean standard installation of druapl 7.21 and then use Drush to download and enable media module, it get error when installing ctools as dependence, here is the output:

03:52 PM
Project media (7.x-1.3) downloaded to                                  [success]

E:/www/second/sites/all/modules/media.
Project media contains 3 modules: media_internet, file_entity, media.
The following projects have unmet dependencies:
media requires ctools
Would you like to download them? (y/n): y
Project ctools (7.x-1.2) downloaded to                                 [success]

E:/www/second/sites/all/modules/ctools.
Project ctools contains 9 modules: views_content, stylizer, page_manager, ctools
_plugin_example, ctools_custom_content, ctools_ajax_sample, ctools_access_rulese
t, bulk_export, ctools.
The following extensions will be enabled: media, ctools, file_entity
Do you really want to continue? (y/n): y
WD php: PDOException: SQLSTATE[HY000]: General error: 7 Error on         [error]

rename of '.\second\file_managed.frm' to '.\second\#sql2-15e8-cf.frm'
(Errcode: 22): ALTER TABLE {file_managed} ADD `type` VARCHAR(50) NOT
NULL DEFAULT 'undefined' COMMENT 'The type of this file.', ADD INDEX
`file_type` (`type`); Array
(
)
 in db_add_field() (line 2812 of
E:\www\second\includes\database\database.inc).
Cannot modify header information - headers already sent by (output     [warning]

started at C:\Documents and Settings\All Users\Application
Data\Drush\includes\output.inc:37) bootstrap.inc:1212
PDOException: SQLSTATE[HY000]: General error: 7 Error on rename of '.\secon
d\file_managed.frm' to '.\second\#sql2-15e8-cf.frm' (Errcode: 22)
: ALTER TABLE {file_managed} ADD `type` VARCHAR(50) NOT NULL DEFAULT 'undef
ined' COMMENT 'The type of this file.', ADD INDEX `file_type` (`t
ype`); Array
(
)
 in db_add_field() (line 2812 of E:\www\second\includes\database\database.inc).
Drush command terminated abnormally due to an unrecoverable error.       [error]
 

I noticed the error was on ctool installation phase, so i start over, but this time i install ctool first and then install media. this time, there is no error when install ctools, but when install media, the same error ocurrs on file_entity module (it is within media module package) installation:

04:08 PM
Project ctools (7.x-1.2) downloaded to                                 [success]

E:/www/second/sites/all/modules/ctools.
Project ctools contains 9 modules: views_content, stylizer, page_manager, ctools
_plugin_example, ctools_custom_content, ctools_ajax_sample, ctools_access_rulese
t, bulk_export, ctools.
The following extensions will be enabled: ctools
Do you really want to continue? (y/n): y
ctools was enabled successfully.                                            [ok]

Project media (7.x-1.3) downloaded to                                  [success]

E:/www/second/sites/all/modules/media.
Project media contains 3 modules: media_internet, file_entity, media.
The following extensions will be enabled: media, file_entity
Do you really want to continue? (y/n): y
WD php: PDOException: SQLSTATE[HY000]: General error: 7 Error on         [error]

rename of '.\second\file_managed.frm' to '.\second\#sql2-15e8-ff.frm'
(Errcode: 22): ALTER TABLE {file_managed} ADD `type` VARCHAR(50) NOT
NULL DEFAULT 'undefined' COMMENT 'The type of this file.', ADD INDEX
`file_type` (`type`); Array
(
)
 in db_add_field() (line 2812 of
E:\www\second\includes\database\database.inc).
Cannot modify header information - headers already sent by (output     [warning]

started at C:\Documents and Settings\All Users\Application
Data\Drush\includes\output.inc:37) bootstrap.inc:1212
PDOException: SQLSTATE[HY000]: General error: 7 Error on rename of '.\secon
d\file_managed.frm' to '.\second\#sql2-15e8-ff.frm' (Errcode: 22)
: ALTER TABLE {file_managed} ADD `type` VARCHAR(50) NOT NULL DEFAULT 'undef
ined' COMMENT 'The type of this file.', ADD INDEX `file_type` (`t
ype`); Array
(
)
 in db_add_field() (line 2812 of E:\www\second\includes\database\database.inc).
Drush command terminated abnormally due to an unrecoverable error.       [error]

04:09 PM

i also tried install media module through normal web browser module installation interface ,the same error ocurrs when enable file_entity module, so I guess the problem is in file_entity module.

Comments

chris matthews’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Component: File entity » Code
Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team