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

learn more… | top users | synonyms

1
vote
1answer
17 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
23 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
1answer
9 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
1answer
48 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
10 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
31 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
0answers
10 views

Local site using drush [closed]

I started a site on my local VM and also changed my /etc/hosts file for the site name. What URL do I put in the browser to login to the admin? I've tried variations off "sitename.local/" but it ...
0
votes
2answers
18 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
18 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
15 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
16 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
36 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
33 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
8 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
37 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
11 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
22 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
25 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
53 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
18 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
13 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
66 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
19 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
37 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
23 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
29 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
24 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
34 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
11 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
1answer
36 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
14 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
42 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 ...
0
votes
1answer
27 views

Drush error on Mac

I installed Drush using Composer globally but when I try to clear the cache I get the following: No Drupal site found, only 'drush' cache was cleared. [warning] 'all' cache was ...
0
votes
0answers
21 views

Problems with additional trailing slash in when using drush rsync

If I use drush rsync the output is as follows: user@drupal:~/html$ drush rsync @live @local You will destroy data from var/www/ and replace with data from root@eso- ...
0
votes
1answer
24 views

Drush ard is working for DR6, not for DR7 > bootstrap error

Noticed something strange today: drush ard @sites is working in the folder /drupal6/sites/, but not in /drupal7/sites/. When i go to a specific folder, the command runs as expected (drush ard ...
0
votes
1answer
24 views

Drush and batch

i got an array of items. On each item, a process is executed wich manipulates data, write things to the database,... When i execute my drush script (ex: drush mycommand) i start a batch process: ...
0
votes
1answer
41 views

Drush bootstrap level error

Im running onto some issues with Drush. I worked with php 5.3 and after upgrading to 5.5, i ran into some issues and decided to downgrade my PHP version back to 5.3. Now im running into the issue that ...
3
votes
2answers
57 views

Drush for Drupal 4.7

I'm trying to find a version of Drush that is compatible with Drupal 4.7. I know it's old and lame and long time ago deprecated but I really need it for a project I'm currently involved in. I've tried ...
0
votes
0answers
12 views

Shouldn't drush update --s list what would be updated and new versions?

When I run drush update --s I get this: Simulating backend invoke: ssh -p 2222 -o "AddressFamily inet" dev.cd44f1e9-a5f7 ...
0
votes
1answer
50 views

Problems to sync databases with drush

Hey drush gurus all over the stackexchange network I have some problems with drush sql sync function When the password promt comes up I've used the linux root user pass of the remoot servers root ...
1
vote
2answers
28 views

What is the drush sql-sync arguments for modules, themes, sites, but “not core”?

My live/staging Drupal site on remote host was installed without git version control (I don't even recall, but I guess I used wget). Also it has content, modules and themes I wish to keep. The new dev ...
0
votes
2answers
128 views

Drush was not able to start (bootstrap) the Drupal database - MySQL Access denied error

I've installed Drush 7 using Composer and working with Drupal 8 and 7 on Ubuntu 12.04 with PHP 5.4.31, mysql 5.5.38 Drush will dl modules and themes just fine but when I want to en a module then it ...
2
votes
4answers
193 views

Drush doesn't detect drupal installation under sites sub-directory

I have been using Drush 4 and 5 with no problem. Now that I have downloaded and installed new Drush 7.0-dev using composer, I am having problem i.e it doesn't by-default detect drupal installation ...
0
votes
0answers
11 views

how to call drupal_static_reset from drush

I have a live site that needs a variable_set run from drush. I try using devel module execute php to do a variable_get and I am sometimes getting the correct result. Sometimes not. I have cleared ...
0
votes
1answer
61 views

Drush is unable to update my site

I'm trying to update my drupal core though drush. But how hard i trie, it won't work. I''m using drush pm-update but it fails. Below the output of the drush debug. Tnx in advance Drush bootstrap ...
2
votes
1answer
51 views

How to replace text in many nodes?

We're upgrading from Bootstrap 2 to 3. Now I need to replace CSS classes in the body fields of many nodes. This needs to be done in at least 5 sites. What is a good way to replace text in all nodes of ...
0
votes
1answer
19 views

drush 6.2.0 reports no version control found for core updates, but DOES find and use svn for module updates (pm-update)

for drush 6.2.0, when running: drush pm-updatecode --version-control=svn --svnsync --svncommit on a drupal 7 site that only needs module updates, drush will properly commit the changes to svn as ...
0
votes
1answer
31 views

Drush Hangs on wget but wget Works

Every drush command I run hangs on wget. However, if I run wget outside of drush, it works just fine. I am behind an http proxy and suspect that's factoring into the problem. I don't understand why ...