drupal-boilerplate icon indicating copy to clipboard operation
drupal-boilerplate copied to clipboard

Fatal errors with drush build command when display suite module is enabled

Open davereid opened this issue 10 years ago • 1 comments

When running the drush build command with a site with the Display Suite module enabled, you get the following error:

drush: You need to set a name for your layout. Type "drush help ds-build" for help.
Drush command terminated abnormally due to an unrecoverable error.

This is due to the fact that the Display Suite drush integration's ds.drush.inc file has a function named drush_ds_build:

/**
 * Create a basic template and configuration file for a new Display Suite layout.
 */
function drush_ds_build($name = NULL) {
  // Determine the layout name.
  if (!isset($name)) {
    $name = drush_get_option('name');
  }
  if (!$name) {
    drush_die(dt('You need to set a name for your layout. Type "drush help ds-build" for help.'));
  }

The drush --debug output, with an added backtrace in drush_ds_build():

Returned from hook _drush_build [12.22 sec, 44.43 MB]                                                                                                                                                                           [debug]
Calling hook drush_ds_build [12.22 sec, 44.44 MB]                                                                                                                                                                               [debug]
#0  drush_ds_build()
#1  call_user_func_array(drush_ds_build, Array ()) called at [/home/davereid/Sync/opt/drush/includes/command.inc:362]
#2  _drush_invoke_hooks(Array ([description] => Runs database updates, reverts features and clears caches.,[callback] => drush_command,[bootstrap] => 5,[command] => build,[command-hook] => build,[invoke hooks] => 1,[callback arguments] => Array (),[commandfile] => build,[path] => /home/davereid/Sync/lullabot/projects/Publisher7_bravo/drush/commands,[engines] => Array (),[primary function] => _drush_build,[sections] => Array ([examples] => Examples,[arguments] => Arguments,[options] => Options),[arguments] => Array (),[required-arguments] => ,[options] => Array (),[sub-options] => Array (),[allow-additional-options] => ,[examples] => Array (),[aliases] => Array (),[core] => Array (),[scope] => site,[drupal dependencies] => Array (),[drush dependencies] => Array (),[handle-remote-commands] => ,[strict-option-handling] => ,[bootstrap_errors] => Array (),[topics] => Array (),[hidden] => ,[category] => build,[argument-description] => Array ()), Array ()) called at [/home/davereid/Sync/opt/drush/includes/command.inc:214]
#3  drush_command()
#4  call_user_func_array(drush_command, Array ()) called at [/home/davereid/Sync/opt/drush/includes/command.inc:182]
#5  drush_dispatch(Array ([description] => Runs database updates, reverts features and clears caches.,[callback] => drush_command,[bootstrap] => 5,[command] => build,[command-hook] => build,[invoke hooks] => 1,[callback arguments] => Array (),[commandfile] => build,[path] => /home/davereid/Sync/lullabot/projects/Publisher7_bravo/drush/commands,[engines] => Array (),[primary function] => _drush_build,[sections] => Array ([examples] => Examples,[arguments] => Arguments,[options] => Options),[arguments] => Array (),[required-arguments] => ,[options] => Array (),[sub-options] => Array (),[allow-additional-options] => ,[examples] => Array (),[aliases] => Array (),[core] => Array (),[scope] => site,[drupal dependencies] => Array (),[drush dependencies] => Array (),[handle-remote-commands] => ,[strict-option-handling] => ,[bootstrap_errors] => Array (),[topics] => Array (),[hidden] => ,[category] => build,[argument-description] => Array ())) called at [/home/davereid/Sync/opt/drush/drush.php:92]
#6  _drush_bootstrap_and_dispatch() called at [/home/davereid/Sync/opt/drush/drush.php:61]
#7  drush_main() called at [/home/davereid/Sync/opt/drush/drush.php:16]

davereid avatar Jun 30 '14 17:06 davereid

cc @ericduran

davereid avatar Jun 30 '14 17:06 davereid