After enabling and configuring subdomain I have found that drush commands return the error

Drush command terminated abnormally due to an unrecoverable error.    [error]

Disabling subdomain returns drush to its normal functionality.

I having configured subdomain to work with organic groups and have patched it with http://drupal.org/node/1366682#comment-5818518

Asside from drush everything else appears to work properly.

Comments

beanjammin’s picture

I don't seem to be able to get php to log the error, however running drush with --debug produced the following:

ben@rockland:~/web/core$ drush --debug pm-list
Bootstrap to phase 0. [0.01 sec, 4.79 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.02 sec, 5.08 MB] [bootstrap]
Cache HIT cid: 5.0-commandfiles-0-a6c6d0dd059e9d802581732d753eca0a [0.04 sec, 5.09 MB]                                                                           [debug]
Bootstrap to phase 0. [0.14 sec, 11.02 MB]                                                                                                                   [bootstrap]
Bootstrap to phase 6. [0.19 sec, 11.03 MB]                                                                                                                   [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.2 sec, 11.03 MB]                                                                                   [bootstrap]
Initialized Drupal 7.12 root directory at /home/ben/web/core [0.25 sec, 15.03 MB]                                                             [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.26 sec, 15.04 MB]                                                                                  [bootstrap]
Initialized Drupal site default at sites/default [0.26 sec, 15.05 MB]                                                                                           [notice]
Cache HIT cid: 5.0-commandfiles-2-c32acd775c18a90c5b41d0fc9accf5ab [0.28 sec, 15.05 MB]                                                                          [debug]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.28 sec, 15.05 MB]                                                                         [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.29 sec, 15.07 MB]                                                                              [bootstrap]
Successfully connected to the Drupal database. [0.29 sec, 15.07 MB]                                                                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.31 sec, 16.04 MB]                                                                                  [bootstrap]
Drush command terminated abnormally due to an unrecoverable error. [0.96 sec, 63.67 MB]                                                                      [error]
beanjammin’s picture

I have tested with an unpatched subdomain-7.x-2.x-dev with the same results.

beanjammin’s picture

Status: Active » Closed (works as designed)

Turns out the mistake was mine. As was pointed out by greg.1.anderson in the drush issue queue (http://drupal.org/node/1558492) the --uri='http://site.url.com' argument needs to be added to drush when working with subdomain because it can't otherwise determine the URI of the site.