I was able to download Drupal 6 just fine, but then when attempting to download modules and themes, I get errors:

[user@ngp-lamp-03 html]# drush --debug dl ngp
Found command: download [0.043 sec]                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.044 sec]   [bootstrap]
Initialized Drupal 6.14 root directory at /www/dccaucus.com/html        [notice]
[0.056 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.057 sec]   [bootstrap]
Initialized Drupal site default at sites/default [0.057 sec]            [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()      [bootstrap]
[0.057 sec]
Undefined index:  scheme [0.058 sec]                                    [notice]
Undefined index:  user [0.058 sec]                                      [notice]
Undefined index:  host [0.058 sec]                                      [notice]
PDO support available, but the  driver has not been installed.       [bootstrap]
Assuming success. [0.058 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.059    [bootstrap]
sec]
Successfully connected to the Drupal database. [0.059 sec]           [bootstrap]
Cannot modify header information - headers already sent by (output   [warning]
started at /var/www/html/drush/includes/drush.inc:482) [0.064 sec]
Cannot modify header information - headers already sent by (output   [warning]
started at /var/www/html/drush/includes/drush.inc:482) [0.064 sec]
Drush command could not be completed. [0.064 sec]                    [error]

Not really sure what all I'm looking at there. Any tips?

Comments

seanr’s picture

Tried it as a different user, still getting the same error:

[ngpadmin@ngp-lamp-03 html]$ drush --debug dl ngp
Found command: download [0.047 sec]                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.05 sec]    [bootstrap]
Initialized Drupal 6.14 root directory at /www/dccaucus.com/html        [notice]
[0.063 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.064 sec]   [bootstrap]
Initialized Drupal site default at sites/default [0.064 sec]            [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()      [bootstrap]
[0.064 sec]
Undefined index:  scheme [0.065 sec]                                    [notice]
Undefined index:  user [0.065 sec]                                      [notice]
Undefined index:  host [0.065 sec]                                      [notice]
PDO support available, but the  driver has not been installed.       [bootstrap]
Assuming success. [0.066 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.066    [bootstrap]
sec]
Successfully connected to the Drupal database. [0.066 sec]           [bootstrap]
Cannot modify header information - headers already sent by (output   [warning]
started at /var/www/html/drush/includes/drush.inc:482) [0.072 sec]
Cannot modify header information - headers already sent by (output   [warning]
started at /var/www/html/drush/includes/drush.inc:482) [0.072 sec]
Drush command could not be completed. [0.072 sec]                    [error]
[ngpadmin@ngp-lamp-03 html]$
seanr’s picture

Found this issue which suggested adding PDO, but it looks like it already was:

http://drupal.org/node/567062#comment-2017190

[ngpadmin@ngp-lamp-03 html]$ drush --debug dl ngp
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_mysql' already loaded in Unknown on line 0
Found command: download [0.052 sec]                                  [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.053 sec]   [bootstrap]
Initialized Drupal 6.14 root directory at /www/dccaucus.com/html        [notice]
[0.065 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.066 sec]   [bootstrap]
Initialized Drupal site default at sites/default [0.066 sec]            [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration()      [bootstrap]
[0.066 sec]
Undefined index:  scheme [0.067 sec]                                    [notice]
Undefined index:  user [0.067 sec]                                      [notice]
Undefined index:  host [0.067 sec]                                      [notice]
PDO support available, but the  driver has not been installed.       [bootstrap]
Assuming success. [0.068 sec]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.068    [bootstrap]
sec]
Successfully connected to the Drupal database. [0.068 sec]           [bootstrap]
Cannot modify header information - headers already sent by (output   [warning]
started at /var/www/html/drush/includes/drush.inc:482) [0.073 sec]
Cannot modify header information - headers already sent by (output   [warning]
started at /var/www/html/drush/includes/drush.inc:482) [0.073 sec]
Drush command could not be completed. [0.074 sec]                    [error]
[ngpadmin@ngp-lamp-03 html]$

So all that did was get me two extra warnings and it still doesn't work. WTF??

jonhattan’s picture

The code printing the "PDO support available.." message is this:

drush_log(dt('PDO support available, but the !type driver has not been installed. Assuming success.', array('!type' => $type)), 'bootstrap');

your debug log shows a missing value for $type. I suggest you to debug it by doing a print_r($creds) in includes/environment.inc at line 900.

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)
greg.1.anderson’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

No feedback. Please re-open with more information if needed.

greg.1.anderson’s picture

Status: Closed (works as designed) » Closed (fixed)
unitedwallabies’s picture

Figure out, which directory contains the pdo.ini and pdo_mysql.ini on your system. Then, set environment variable PHP_INI_SCAN_DIR to contain that directory and rerun drush.