Drush is a command line shell and scripting interface for Drupal.

learn more… | top users | synonyms

2
votes
0answers
9 views

How to capture git's output in drush make?

We use drush to clone a number of git-repositories during build. Most of the time this "just works", but on (a rare) occasion, a cloning fails. Unfortunately, all that we get from drush in such cases ...
0
votes
2answers
30 views

Drush pm-disable needs a higher bootstrap level to run

I keep having this periodic issue with the pm-disable (amongst other) commands in Drush. I have kicked the tires on configuring Drush -- I have the datbase connect set to 127.0.0.1, have php.ini in ...
-1
votes
1answer
10 views

Cannot change Drush version from 6.1.0 to 7.0

I am trying to update my version of Drush to include the Omega commands. For this I think I need 7.0. I have run composer global require drush/drush:7.0.0-alpha5 and this installs the package but when ...
0
votes
0answers
10 views

Upgrading to Drupal 7 from Drupal 6 - Drush command terminated abnormally due to an unrecoverable error

When upgrading locally via Drush site-upgrade @alias, I receive an unrecoverable error on step, "Major Upgrade 12-a". Just before the error, the html markup for garland Site off-line is printed. My ...
0
votes
0answers
15 views

Unable to load autoload.php

I've looked through all similar issues reported but none of them solves my problem. I always install drush with composer and installing 6.4.0 is working just fine, but when I install dev-master then I ...
0
votes
0answers
32 views

How do you install Drush 7 for Drupal 8? Installed composer and still doesnt work.

I'm trying to install drush 7 for drupal 8, but im hitting a snag. I installed composer and now i downloaded drush 7 and unzipped it to /opt/drush7 I get the follow error when running drush even ...
0
votes
1answer
14 views

Drush 6 installed on a centos server. How do i find out where its installed and upgrade it?

how do i find where is drush installed? its currently on drush 6 and looking to update it to drush 7 for drupal 8. Whats an easy way to find where its installed and update it?
0
votes
0answers
18 views

Drush system_watchdog() function causes system.module to be given early bootstrap status when clearing caches with drush cc all [closed]

When sudo drush cc all is executed in the command prompt it eventually calls the drupal_flush_all_caches() function within Drupal. The last step of drupal_flush_all_caches() in Drupal 7 is to ...
0
votes
0answers
10 views

drush pm-updatecode hangs

I have a strange problem with Drush. My environment is CentOS release 6.5 (Final) PHP 5.4.32 (cli) (built: Aug 22 2014 07:07:38) Zend Engine v2.4.0 Xdebug v2.2.5 Composer version ...
1
vote
1answer
24 views

Drush hangs while executing any command

I am experiencing a strange problem while running drush commands on newly installed server and newly installed drush(it's been installed with composer). Exact the same configuration works fine on my ...
5
votes
1answer
68 views

How do you Drush download Drupal 8 Alpha via the command line?

I usually download the latest drupal 7 using the command: "drush dl drupal --select" But drupal 8 isn't listed there. What are some nice and quick ways of download the latest version of Drupal 8 even ...
1
vote
1answer
31 views

Drush 7 site-upgrade

I'm trying to determine if I can migrate a site from 6 to 7 with Drush 7. I get this, "Error: Call to undefined function drush_sql_empty_db()", and I did some searching and this function does not seem ...
1
vote
3answers
32 views

Executing multiple drush commands

I manage a lot of Drupal sites and drush is a lifesaver. I usually script what I need done and then loop over all of the sites. Many times I need to execute several Drush commands on the same site. ...
1
vote
1answer
18 views

drush coder-review in specified folder [duplicate]

How can i perform code review with coder_review command in a specified folder? I see that i can give it contrib or core directives, but i would like to only check a folder in my modules folder like ...
0
votes
0answers
24 views

Database issue with Drush aliases on Windows

I'm having issues getting the drush sql-sync command working, and it seems to be related to how my site aliases are set up. When I try to run the sql-sync command with my local and production aliases, ...
0
votes
2answers
32 views

Drush can't connect to local MySQL through socket on WAMP

Trying to set up Drush with in a local dev environment on Windows 7 and can't get MySQL properly configured. A test command I've been running via Cygwin, with the resulting error, is as follows: $ ...
0
votes
1answer
31 views

How to pass custom variables into drush site-install?

I'm installing drush profile via: drush site-install my_profile --db-url=db.url --account-name=admin --account-mail="admin@example.com" --site-mail="admin@example.com" --site-name="My Site" But how ...
1
vote
2answers
41 views

Drush returns “sh: php: command not found, code: 127”

Drush returns "sh: php: command not found, code: 127" I just managed to get Drush working finally on my MacBook-Pro (2008). For the longest time Drush would not interact with the Drupal ...
0
votes
1answer
38 views

Unable to install drush on mac 10.9.2

Lately I was trying to install drush for the first time. This is what I did.. Installed the drush tool manually Extracted and renamed the tool to /Library/Drush Gave the /Library/Drush/drush tool ...
0
votes
2answers
27 views

Drush hangs when trying to bootstrap Drupal

Running Ubuntu 12.04 with the 14.04 backports for Drush (meaning we are running Drush 5.10.0) After importing the database (with drush sqlc < dump.sql), Drupal is no longer able to be bootstrapped ...
0
votes
2answers
73 views

Drush on Macbook Pro cannot read Dupal Correctly NOW RESOLVED!

Tried to get Sass & Compass working on Windows, but ran into too many problems. Now I have purchased a vintage Macbook Pro (2008). I finally got Drush working on Windows, but I can't seem to get ...
0
votes
0answers
20 views

Error after upgrading drush from version 5 to version 7

I am using Centos and I performed the following steps: Downloaded drush, uncompress and copied to /usr/local/share/ or any directory you have installed already Downloaded composer curl -sS ...
-1
votes
1answer
42 views

Drush site install without drop/crate database

I am from Ukraine, so sorry for my bad English... Please help me to fix a problem. I trying to install drupal with drush on the shared hosting. I use command drush site install. On localhost ...
0
votes
2answers
20 views

My local site directs to install.php after update from production site af drush sync

Just set up drush for a site, database and site root set up in MAMP. I've updated the local directory using these drush commands: drush rsync @alias.production @alias.local drush sql-sync ...
0
votes
2answers
27 views

To suppress this error, add the option --strict=0 Drush

My custom Drush commands use options(--ver,--env,etc). Whenever the option is used, I get message: Unknown option: --ver. See `drush help build-asset` for available options. To suppress this error, ...
0
votes
0answers
20 views

too many arguments error after updating drush to latest dev

I am getting the following error when I try to run any command in drush. Error in argument 1, char 2: option not found r /home6/whereisa/.composer/vendor/bin/drush: line 124: [: too many arguments ...
0
votes
0answers
21 views

xdebug hangs every time drush_invoke_process in Drush command

I am trying run xdebug with PHPSTorm while developing DRush commands. Everything seems to work, except it hangs whenever my custom drush command call drush_invoke_process. In drush debug mode, this is ...
0
votes
1answer
45 views

Drupal issues - DB and modules in folder that doesn't exist

Ok, so I ran into an issue today that completely baffles me... I have a staging server that I have about 30 sites on. Most are WordPress and about 5 are Drupal. Yesterday I worked on a Drupal site ...
1
vote
2answers
36 views

how to run “cd” command in drush

I like to have drush command 'go_to' that will move my shell into different directory. My custom implementation does not move the shell directory. How come? here is the script so far: #!/usr/bin/env ...
0
votes
0answers
11 views

drush ne-import doesn't import field_tags

I'm using module node_export to migrate contents from my local to live. The content type has several fields with field_tags (multi-field term reference) being one. The exported file was created just ...
1
vote
1answer
59 views

Drush - “Failed to get available update data” for all modules

Problem I'm trying to use drush to update a module. However all updates fail and automatically rolled back because it can't find any update data: Failed to get available update data for one project. ...
0
votes
0answers
13 views

Drupal batch_set for drupal_http_request()

Created one menu callback to download XML file. function download_xml () { // webservice logic ..... ..... $result = drupal_http_request($url, $options); if ($result->code != 200) { ...
0
votes
0answers
24 views

Drush site-install and extra settings for the settings file?

We are developing a site with a make file, profile and drush-si. Thus far it's great, but i cant find a way how to add some slightly more complex settings to the settings.php file. For the beginning, ...
3
votes
1answer
29 views

drush_get_commands() does not return Feature Drush commands

I am expecting that drush_get_commands() will return all drush commands including from modules such as 'feature', but it is not when called within my Drush custom command. How to retrieve all drush ...
0
votes
1answer
101 views

drush omega-guard and missing or unreadable gemfiles

My machine is running Archlinux and and I am new in drush and omega theme. I have installed drush and then run bundle install to install the dependencies of my subtheme. When I run drush omega-guard, ...
0
votes
2answers
22 views

How to remove entity type from drush?

How do I remove an entity type via drush? List of entity types I can get via: drush eval 'print_r(array_keys(entity_get_info()));' Array ( [0] => node [1] => taxonomy_term [2] ...
0
votes
1answer
17 views

How to list all available entity types?

How to list all available entity types in Drupal using drush? Related: get ALL node types
2
votes
4answers
90 views

execute drush command from devel/php drupal

Can any one please tell me how can I execute drush command from devel/php? I can execute PHP codes from devel/php. But I don't know how can I execute drush command from devel/php. (As we know ...
0
votes
1answer
24 views

Drush won't clear uploaded temporary files

So, working on a unix system, it's common that /tmp has the sticky bit set (i.e. only the owner of the temporary file can write/delete it). This is an issue when running drush cron. If I upload a ...
-1
votes
1answer
24 views

update drush 6.0 to 6.5

I have drush 6.0 and recently installed drush7 as well with composer. Now i would like to update drush 6.0 to latest release in drush version 6. Is there any work around to achieve? Thanks, Swaroop.
0
votes
1answer
42 views

Drush: how to set access to MySQL

When I run command "drush status" I cannot see any MySQL settings (user, password or database). I cannot use commands like "core-quick-drupal" because it requires access to MySQL, before ...
0
votes
1answer
29 views

drush sql-sanitize: exclude user #1?

When I run drush sql-sanitize, is there a way to exclude user #1 (or specific other users, for that matter) so his email address and password are not changed?
1
vote
2answers
33 views

Drush within Multisites

I am using drush on ubuntu 14.04. I have more than 20 site on my localhost /var/www with virtualHost setting. I have a question that whenever i go to /var/www/site1 and run drush dl module_name. It ...
0
votes
1answer
25 views

How can I restart the PHP environment installed with Drush for Windows?

I have installed Drush for Windows, works great, but it installs its own version of PHP in a subdir of the install directory. I've increased the memory limit and execution times in that ini but how ...
0
votes
1answer
14 views

Drush version component error

I am trying to enable drush aliases in linux so that I can use Acquia, but I am getting the following error when I run: drush @dev status Drush command terminated abnormally due to an unrecoverable ...
0
votes
1answer
39 views

Drush issue: Cannot enable modules on new drupal installation

I've been using Drupal for 8 months and Drush for the past 3.In short, I have Drush installed on a vagrant VM and it works with one of my dev sites and partially with my new dev site. I am able to ...
0
votes
0answers
12 views

Can I use drush to add an html file as content type “Blog entry”?

My site is endlessly attacked by hackers and spambots. This year they have been successful but I believe I am now holding them back with Mollom, HoneyPot and ZBblock. I now try to use Drush in ...
0
votes
2answers
86 views

How do I prevent Drupal raising a segmentation fault when using a Node.js theming workflow?

Symptoms: Some drush commands fail; Some Drupal pages are blank. The failing drush commands report "Segmentation fault: 11" The Apache log (e.g. php-error.log in MAMP) also shows the same error. ...
0
votes
1answer
17 views

drush -v @live status can't find remote php

I can't seem to get drush to execute fully using ssh. If I try: drush -v @live status The resulting error message is: /usr/bin/env: php: No such file or directory I can explicitly execute php ...
1
vote
1answer
48 views

How to configure drush command-specific archive-dump --tar-options in a site alias

The following command does exactly what I want — It dumps an archive, excluding all of the files and directories that I don't want: $ drush archive-dump --tar-options="--exclude=.git --exclude=*.psd ...