I have tried both the HEAD and the 6.x-2.0 versions of Drush. I have installed them to a directory below Drupal (../public_html/drush and ../public_html/drupal/...). I'm on a VPS and I can't use "ln", so, as per the README.txt file, I created an alias: alias drush='php ~/path/to/drush/drush.php'.
When I type "drush" when in the Drupal directory, it prints the list of examples up to "sql cli" and then prints the following error(s):
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/sitename.net/public_html/drush/includes/drush.inc:434) in /home/admin/domains/sitename.net/public_html/test/includes/install.inc on line 618
Warning: Cannot modify header information - headers already sent by (output started at /home/admin/domains/sitename.net/public_html/drush/includes/drush.inc:434) in /home/admin/domains/sitename.net/public_html/test/includes/install.inc on line 619
Additionally, if I try and execute a drush command, like "drush status" or "drush dl" nothing happens. If I try those commands with the "-v" option, the following is printed:
Invalid input: -v needs to be followed by an argument. [error]
The command 'drush.php status' could not be executed. [error]
I am at a loss as to why this is. I've made sure my permissions match those who have Drush working, and the alias obviously works, since Drush will print the list of commands, but nothing else works.
Help!
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | drush_455848.patch | 1.47 KB | drewish |
| #10 | drush_455848.patch | 1.09 KB | drewish |
Comments
Comment #1
dcaillibaud commentedI had the same pb with drush-6.x-2.0-alpha2, but with drush-HEAD-all-versions.tar.gz of 2009-May-07 solved it :-)
Comment #2
gallamine commentedI have installed the latest HEAD version (May 07). The "Cannot modify header information" warning goes away.
However, drush still won't execute any commands. None of the commands seem to do anything. When i run them with the -v command, I get the following sort of error:
Any thoughts?
Comment #3
dcaillibaud commentedIf you have a multi-sites install, don't forget the -l argument !
Comment #4
gallamine commented@dcaillibaud,
That worked! I'm only using one site, and I've never messed with "multi-site" (that I know of) but that seemed to do the trick. Thanks a ton!
Comment #6
druvision commentedThe multi-site was my issue. once I copied the site definitions to the default site profile, the issue was resolved.
Comment #7
jazzslider commentedHello!
I'm still experiencing this issue using the latest release of drush 3.0 (RC4, I believe), and not using a multi-site.
Command output:
Couple of important points I've noted:
Anyone have any ideas?
Thanks!
Adam
Comment #8
mpettitt commentedThere are some modules around that can interfere with Drush - mobile_tools springs to mind (it does the platform detection and modifies headers at a very early stage of loading), but I'm guessing this is a fresh install if you're aiming to get admin_menu onto it?
Comment #9
jazzslider commentedYeah, this is a a clean install of Drupal 6.16; no custom or contrib modules present at this point.
Comment #10
drewish commentedI was having this problem when E_ALL is enabled on a new site with a settings.php file but no database connection string.
Comment #11
drewish commentedactually might as well fix the D7 version too.
Comment #12
drewish commentedMarked #753454: drush-HEAD commands (all) failing @ "undefined index" w/ latest pressflow6 as a duplicate.
Comment #13
perusio commentedWell I patched drush with your patch and the annoying PDO error is gone. But now I get this:
Here's my php -m output
Any ideas? Thanks.
Comment #14
moshe weitzman commentedseems harmless so i committed this ... #13 is a different issue
Comment #16
marekbirkholz commentedHello I try using drush working on my drupal site, but I am stuck with this, I get the following while try to enabling modules :
MacBook-Air-2:all mari1$ sudo drush en -y custom_breadcrumbs custom_breadcrumbs_views custom_breadcrumbsapi custom_breadcrumbs_paths
Command pm-enable needs a higher bootstrap level to run - you will [error]
need to invoke drush from a more functional Drupal environment to run
this command.
The drush command 'en custom_breadcrumbs custom_breadcrumbs_views [error]
custom_breadcrumbsapi custom_breadcrumbs_paths' could not be
executed.
Drush was not able to start (bootstrap) the Drupal database. [error]
Hint: This may occur when Drush is trying to:
* bootstrap a site that has not been installed or does not have a
configured database. In this case you can select another site with a
working database setup by specifying the URI to use with the --uri
parameter on the command line. See `drush topic docs-aliases` for
details.
* connect the database through a socket. The socket file may be
wrong or the php-cli may have no access to it in a jailed shell. See
http://drupal.org/node/1428638 for details.
Drush was attempting to connect to:
Drupal version : 7.30
Site URI : http://default
Database driver : mysql
Database username : root
Database name : d7_mb
Default theme : garland
Administration theme : garland
PHP executable : /usr/bin/php
PHP configuration :
PHP OS : Darwin
Drush version : 6.2.0
Drush configuration :
Drush alias files :
Drupal root : /Applications/MAMP/htdocs/drupal
Site path : sites/default
File directory path : sites/default/files
thanks a lot for tips
Marek