Warning: Cannot modify header information - headers already sent by (output started at /Users/kurtvanderwater/bin/drush/includes/drush.inc:434) in /Users/kurtvanderwater/Desktop/acquia-drupal-1.2.4/includes/install.inc on line 618

Warning: Cannot modify header information - headers already sent by (output started at /Users/kurtvanderwater/bin/drush/includes/drush.inc:434) in /Users/kurtvanderwater/Desktop/acquia-drupal-1.2.4/includes/install.inc on line 619

Installed in ~/bin/drush
did command:
sudo ln -s ~/bin/drush/drush.php /usr/local/bin/drush
ran 'drush' and got the errors above.

While it does say Warning.... it seems to interfere.
Also, the 'drush sql' commands don't seem to work. My guess would be the DAMP installation, but I would have thought that the reading of sites/default/settings.php would have given the information for the 'drush sql conf' command. It prints an empty array.

mds-65-64-83-177:acquia-drupal-1.2.4 kurtvanderwater$ drush sql conf
Array
(
[driver] =>
[username] =>
[password] =>
[port] =>
[host] =>
[database] =>
)

don't worry, the IP address changes about 5 minutes after this message... probably WAY sooner :)

I am in the root of the acquia drupal site.
It does not know where the mysql command is.

I will play with it more tomorrow.
Thought someone would like to know of the results of the installation.

I'm pretty sure I followed the instructions properly from the README....
I'll check again.

Thanks

Kurt

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

Are you using the default dir under sites or some other multi-site. if a multi-site, you have to use the --uri option to specify a URL.

Acquia Drupal on Windows is on the outer limits of what we can support. It should work, but you are kinda on your own if it doesn't.

kvanderw’s picture

moshe

I am using the DAMP default.

This is on a MAC - Note the Issue title :)

I installed DAMP in /Users/me/Desktop/acquia-drupal-1.2.4
I installed drush in /Users/me/bin/drush

Note some additional details here

moshe weitzman’s picture

OK thanks ... Apparently DAMP does something non standard about placement of its settings.php. Perhaps someone could research that and post back here.

dodorama’s picture

I'm having exactly the same issue, using MAMP on a mac. It's strange cause it worked for a while.
Does anybody know what the error message "Cannot modify header information - headers already sent by" means?
I'm not using any particular dir under sites. I just have multiple drupal folders that live side by side in my htdocs dir and I'm trying to run drush from inside what of this folder (a perfectly functional drupal installation).
Any clue?

jbrauer’s picture

I'll be looking at DRUSH/DAMP shortly. In the meantime DAMP uses the standard settings.php and does nothing special with location. What the earlier poster was likely observing is thad DAMP places a database connection at the end of settings.php which effectively overrides any earlier declaration in the settings.php when importing a site.

jbrauer’s picture

Using the PHP shipped with DAMP the sql conf command produces this:

Array
(
[driver] => mysql
[username] => drupaluser
[password] => *******
[port] => 33006
[host] => 127.0.0.1
[database] => acquia_drupal
)

Running updates etc. Seems to work with DRUSH/DAMP as well.

In case it makes a difference here's my execution command (I have several *AMP stacks installed):

/Applications/acquia-drupal/php/bin/php drush.php sql conf

jbrauer’s picture

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

One final test. Setting this up with the DAMP db_url added to settings.php.

  PHP configuration : /Applications/acquia-drupal/php/bin/php.ini
  Drupal Root       : /drupal/acquia-drupal-site/acquia-drupal
  Drupal version    : 6.14
  Site Path         : sites/local2.localhost
  Site URI          : local2.localhost:8006
  Database Driver   : mysqli
  Database Hostname : 127.0.0.1
  Database Username : drupaluser
  Database Name     : local2
  Database Password : 
  Database          : Connected
  Drupal Bootstrap  : Successful
  Drupal User       : Anonymous

For reference here's the DAMP config added to settings.php

///////////////////////////////////////////////////////////////////////
//             Don't edit anything below this line!                  //
// This section is autogenerated by Acquia Drupal Control Panel      //
///////////////////////////////////////////////////////////////////////
//<@@ADCP_CONF@@>
$base_url = 'http://local2.localhost:8006';

//D6 DB config
$db_url = 'mysqli://drupaluser@127.0.0.1:33006/local2';

//D7 DB config
if( !isset($databases) )
      $databases = array();
$databases['default']['default'] = array(
    'driver' => 'mysql',
    'database' => 'local2',
    'username' => 'drupaluser',
    'password' => '',
    'host' => '127.0.0.1',
    'port' => 33006 );
//</@@ADCP_CONF@@>