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

learn more… | top users | synonyms

0
votes
0answers
8 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
18 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
0answers
13 views

How to debug memory hogging site with Fatal errors online and segfault with drush? [on hold]

My site is broken: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in modules/block/block.module on line 165 The error messages vary, it's in different ...
0
votes
1answer
23 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
15 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
46 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
16 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
22 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
33 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
19 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
27 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
21 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
13 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
19 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
16 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
9 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
39 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
23 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
17 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
23 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
22 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
29 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
11 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
41 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
27 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
83 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
178 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
10 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
56 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
48 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
17 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
26 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 ...
0
votes
1answer
24 views

How to disable a module dependents module? Not the module but the feature

Hello I have the module BEF better exposed filters installed and enabled and together with it is the BEF Test Content module (feature of BEF better exposed filters moduke). I just enable the features ...
0
votes
2answers
42 views

Why doesn't my watchdog() function run when I execute my custom module from Drush

I have a custom module that performs an import from an xml file. It can be invoked two different ways. From a menu callback or a custom drush command. The import works fine and all of it's many ...
1
vote
0answers
44 views

How to update a library through drush or git url? what about update chosen library?

I am new with Drush and git... previously I use to work with Ftp so at the moment I would like to know How I can update a common library by using drush or by using git (library url). I know that in ...
0
votes
1answer
31 views

Using drush to install multiple sites, how?

I'm executing the following commands in /var/www/html on a clean Ubuntu 14.04 installation: drush dl --drupal-project-rename=Platform cd Platform drush site install standard -y --db-url=[mysql ...
0
votes
1answer
26 views

drush alias files aren't being found

I'm working locally on my OSX and I have my drush alias files at ~/.drush/[hostname].aliases.drushrpc.php but no matter what project I'm in, only one of the alias files are being read, as confirmed ...
0
votes
1answer
27 views

How to Retrieve Env Var in Drush

Is there a way to retrieve shell variables in Drush? I cannot find anything in Drush API docs. If there is no way, how does one handle environment (dev, staging, testing etc.) configurations? Any help ...
1
vote
3answers
59 views

MAC -> Drush higher bootstrap level?

Since a couple of days now, i switched from a ubuntu machine to a macbook pro retina for my development works. I installed XAMPP on it, without to much trouble. But I have been struggeling with drush ...
2
votes
1answer
90 views

How to download directly to ~/.drush folder?

I've created a project that is basically a drush command with a starterkit folder. I noticed the make_local project will but I haven't figured out how it does that. I've tried the approach ...
-1
votes
1answer
34 views

How do you sql-sync a site with multiple databases?

I have a site that uses two databases. I would like to sql-sync both of those databases to the development version of the site. Is this possible? // Default drush sql-sync @prod @dev // Optional? ...
3
votes
1answer
52 views

drush default site alias

Is there a way of specifying a default site alias ? couldnt find it in drushrc example nor aliases example. motivation i am sclerotic and lazy :) usually running drush from the dir where the site ...
0
votes
1answer
79 views

Drush MAMP not working

I'm running with a big problem for hours now and it's driving me crazy, maybe one of you already know the answer. Drush seems to not want to work on my OSX (10.8.5) with MAMP (3.0.5). When I execute ...
0
votes
0answers
12 views

Migrate comments from D6->D7, comments not working

I can't figure out why my comment migration isn't working - the page node and user are in the D7 database, but running drush mi on the page migration isn't adding the comment to the comments table: ...
0
votes
0answers
36 views

Debugging solr in drupal

I have configured Solr with drupal modules, now my issue is when i tried mark all content and do a reindex iam getting the following log for few content type WD Apache Solr: HTTP Status: 0; Message: ...
3
votes
1answer
32 views

Block drush rsync command when specific alias is set as destination

I already have policy.drush.inc inside my Drupal drush directory at sites/all/drush. Also, I have a policy set to prevent sql-sync if the @staging alias is set. Thus, drush sql-sync @dev @staging ...
0
votes
1answer
39 views

Where do custom Drush hooks go?

I am attempting to sanitize my database as described in this Acquia guide. For my site, I need to sanitize all the usernames as well; I would like to sanitize the usernames exactly the same as the ...