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
Comment #1
moshe weitzman commentedAre 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.
Comment #2
kvanderw commentedmoshe
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
Comment #3
moshe weitzman commentedOK thanks ... Apparently DAMP does something non standard about placement of its settings.php. Perhaps someone could research that and post back here.
Comment #4
dodorama commentedI'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?
Comment #5
jbrauer commentedI'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.
Comment #6
jbrauer commentedUsing 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
Comment #7
jbrauer commentedOne final test. Setting this up with the DAMP db_url added to settings.php.
For reference here's the DAMP config added to settings.php