Closed (won't fix)
Project:
Commerce Stacking Dimensions
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2016 at 16:44 UTC
Updated:
9 Aug 2016 at 10:56 UTC
Jump to comment: Most recent
When trying to enable the module via drush I get the following error:
drush en commerce_stacking_dimensions
The following extensions will be enabled: commerce_stacking_dimensions
Do you really want to continue? (y/n): y
exception 'FieldException' with message 'Attempt to create field name[error]
<em class="placeholder">stacking_dimensions</em> which already exists
and is active.' in
/wwwroot/modules/field/field.crud.inc:85
Stack trace:
#0
/wwwroot/sites/all/modules/2765639/commerce_stacking_dimensions.install(18):
field_create_field(Array)
#1 [internal function]: commerce_stacking_dimensions_install()
#2
/wwwroot/includes/module.inc(922):
call_user_func_array('commerce_stacki...', Array)
#3
/wwwroot/includes/module.inc(490):
module_invoke('commerce_stacki...', 'install')
#4
/home/[user]/.composer/vendor/drush/drush/commands/core/drupal/environment_7.inc(143):
module_enable(Array)
#5
/home/[user]/.composer/vendor/drush/drush/commands/pm/pm.drush.inc(1165):
drush_module_enable(Array)
#6 [internal function]: drush_pm_enable('commerce_stacki...')
#7
/home/[user]/.composer/vendor/drush/drush/includes/command.inc(364):
call_user_func_array('drush_pm_enable', Array)
#8
/home/[user]/.composer/vendor/drush/drush/includes/command.inc(215):
_drush_invoke_hooks(Array, Array)
#9 [internal function]: drush_command('commerce_stacki...')
#10
/home/[user]/.composer/vendor/drush/drush/includes/command.inc(183):
call_user_func_array('drush_command', Array)
#11
/home/[user]/.composer/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(65):
drush_dispatch(Array)
#12
/home/[user]/.composer/vendor/drush/drush/includes/preflight.inc(64):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#13 /home/[user]/.composer/vendor/drush/drush/drush.php(12):
drush_main()
#14 {main}
The command does enable the module even with the errors listed.
Drush version is: 8.0.1
Drupal: 7
Commerce: Kickstart 2
Module version: 7.x-1.x
I found it interesting that doing a manual enable through the UI did not flag any errors or warnings.
Comments
Comment #2
liamanderson commentedComment #3
joshmillerMight be related to the fact that it's a sandbox module and the drush command isn't understanding the naming convention you're using (the folder can be named anything, technically).