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

learn more… | top users | synonyms

1
vote
2answers
144 views

Minimally working end-to-end example of drush batch job execution

I'm trying to make drush run my batch jobs. There's some amount of documentation at Processing batch jobs with drush, however, I can make no sense of it. I would like to see real code, and the CLI ...
0
votes
2answers
55 views

How to inspect a variable when testing with `drush test-run`.

When testing with my SimpleTests, I want to inspect a variable. var_dump() and the likes are not being rendered in the output of Drush, Xdebug interactive debugger does not work due to the simulated ...
3
votes
1answer
44 views

When using a dev version of a module, how can I easily get a notification of the next stable release?

From time to time I need to install a dev release of a frequently updated module (Views, etc.) Usually, this is because I need a patch that has been applied to the dev branch that has not yet made it ...
2
votes
1answer
43 views

Pitfalls when updating a site without entering maintenance mode?

Assuming there are no module updates that require doing a database update, if it's just an update to a newer minor release of Drupal core, as well as of contrib and custom modules, what potential ...
2
votes
1answer
107 views

How do I restore a site using drush?

I have been learning drush and I loving it. i am having a tough time understanding how to backup and restore my site. Often I bork my site and just need to quickly restore it. These are the steps I am ...
2
votes
1answer
78 views

Way to prevent drush from eating custom profiles when updating core?

I use drush make with a stub .make file to download a custom profile via git. that profile has all of the modules I want all of my sites to start out with. If I then go into that site, and run ...
2
votes
1answer
488 views

How to completely wipe and rebuild drupal menus?

A while ago I found a cool blog post that detailed how to empty the menu tables, and rebuild the menu system with a drush php call, a necessity since the site will be unusable after emptying those ...
2
votes
1answer
235 views

Aegir Drush Drupal 6

I am using the Hosting module through Aegir. I created a module with some extra fields such as "site_name," "fields," and "description," which was done successfully. I want to use these fields on a ...
1
vote
1answer
166 views

Possible to use drush to list overrides for all features?

I believe that drush features-diff will list the overrides for a specific feature and that drush features-list will list all features. Is it possible to list all of the overrides for all features, ...
1
vote
1answer
110 views

Command line submit node

Previously I'm using combination of cURL and sed to submit to Drupal 6 website. It was very flexible but it will works if I submit very frequently. If I want to submit 2 posts in one week, it will ...
0
votes
1answer
26 views

Drupal 7 Login doesn't go anywhere, admin not given permissions, Fresh Install via Drush on CentOS 6.3

I've spent quite a few hours trying to figure out what the problem is. The issue is: Login works but the page doesn't change once I log in as admin. I know that the login works because wrong ...
0
votes
1answer
16 views

Using Drush with ENVVARS

I use EnvVars (vhost) to set my MySQL settings so I can have cross-server settings.php file without having to update it 3 different times. I am wondering if there is a way to get drush to do one of ...
0
votes
1answer
43 views

drush core-config causes 'Permission denied'

When I use command as follow: drush core-config and then enter 1 a error displayed: sh:/etc/php.ini: Permission denied how to solve this problem?
0
votes
1answer
24 views

How can I get views_save_view($view) to return TRUE when using Drush?

I have a script that calls various views API functions, namely views_save_view() or $view->save(). When using Drush 5 to run the script, these functions return false. However, when I run these with ...
0
votes
1answer
50 views

drush perm-grant gives “The drush command 'perm-grant' could not be found”

I am using drush -u 15 perm-grant --roles="site administrator" but the command returns: The drush command 'perm-grant' could not be found. any ideas about that? according this documentation the ...
0
votes
1answer
51 views

How do I install the Spark distribution using only Drush?

How do I fire up the Spark Distribution via a drush command?
0
votes
1answer
42 views

site created using drush arr failing with missing index.php

I am using drush archive to copy a live site to a test environment. The test environment is on my local machine, the live site is on a hosted platform. The arr command seems to complete successfully ...
0
votes
1answer
253 views

Upgrade drupal using drush: Failed to check available update

I am trying to upgrade Drupal from 7.14 to 7.18 using drush up command. Nothing gets updated and I see a bunch of failed warnings: Failed to check available update data for CCK. Failed to check ...
0
votes
1answer
60 views

Segmentation fault at search_cron()

Whenever I try to run cron on the search, using drush php-eval 'search_cron();' I get 'Segmentation fault' error. I have not this problem for any other tables. The site contains hundreds of ...
3
votes
0answers
34 views

Drush make and svn:externals

I'm planning to use drush "make" function for my new D7 projects. I would like to know if there is a way to detect, in my project, the repertories managed by "svn externals". I mean, is "drush ...
2
votes
0answers
36 views

Drush Fails to Connect to MySQL DB Server Using PDO SSL Options

Question: How do you force Drush to use all of the PDO options specified in a site's settings.php file? Background: I am using Drupal 7.22 with Apache and the Drupal files (and Drush 5.8.0) on one ...
2
votes
0answers
39 views

So running Drush update messed up your SVN repo

I'm working on a client's site. We had the sites folder as the root of an SVN repository. At some point we ran drush to do module/core updates but drush was (mistakenly) set to ignore the repository. ...
2
votes
0answers
98 views

drush only runs with sudo

When I run Drush without sudo I get the header plus: drush is designed to run via the command line. Drush with sudo works as intended. I have read that: You do not need root-level permissions to use ...
1
vote
0answers
34 views

change drush module location

I am looking how i can change the location that drush deals with when updating modules. i want to set it to /sites/all/modules/contrib. I have suceeded in changing the download (drush dl) location ...
1
vote
0answers
140 views

Drush, post receive hooks and git branches/tags

I am stuck with a nagging issue in our deployment systems drush version 5.7 git version 1.7.7 Drupal 7.x We currently have a bare git repository (consisting of drush makefiles) on the production ...
1
vote
0answers
60 views

How to change textformat of many nodes at once?

How to change textformat of many nodes at once, module? drush? or script UPDATE (sorry I was on the run at first edit) I had imported hundred or more nodes I had to migrate from an old site. Did ...
0
votes
0answers
24 views

Create drush batch process

I want to create a simple file that will automate: delete any existing drupal folder run drush make cd into drupal folder run site install How can I achieve this, if possible?
0
votes
0answers
33 views

Config of Drupal site using drush make and install profile

I am getting started with using drush make and install profiles. I have been able to successfully have my site in a git repo and rebuild and install the site using drush. I have also been able to run ...
0
votes
0answers
24 views

How to create websites in shared folder using quickstart?

I am using quickstart and I am able to create websites, run all drush commands, etc. I am running Virtual Box on a Windows7 machine. i have setup a folder to be shared. My problem: I am not able to ...
0
votes
0answers
33 views

How to install COD (Conference Organizing Distribution) using drush make

I am trying to install COD for Drupal 7 use drush, this is what I've done (leaving out 'cd' commands): Step 1: git clone --branch 7.x-1.x http://git.drupal.org/project/cod.git cod7 Step 2: drush make ...
0
votes
0answers
25 views

Disable Drush backend messages by default

I am having a problem with drush backend message, how do I disable "--backend" by default ? command: $ drush make drupal-org.make drupal result: $ drush make drupal-org.make drupal ...
0
votes
0answers
52 views

How to parse mysql query output as variable into another command in linux via Drush?

Currently I'm doing a mysql query via the command line using Drush and I want to parse the query output and grab the Node ID #, then put that ID # into a drush php-cli 'node_delete(X)' command. How ...
0
votes
0answers
132 views

standalone rsync and ssh work, but drush gets me a “Permission denied (publickey)”

I've got a production site (on shared hosting for now) of which I just want to have backups at this stage. and I've got a backup instance which I want to overwrite with the prod site. This is my ...
0
votes
0answers
69 views

Drush out of memory when php memory limit is 1024M on my dedicate server. (CentOS)

This happened when I restarted Apache because my site was down. Normally restarting Apache or other service doesn't break Drush, but today it happened. I'm sure on my server my php.ini has memory ...
0
votes
0answers
42 views

PHP syntax error because of Drush?

Today and the last few days I had lots of problems with drush. On last Thursday I downloaded Devel via drush and when i tried to install it but then i got the error PHP : Parse error: syntax error, ...
0
votes
0answers
48 views

Drush restore to proper folder level

Before working on a site, I take a quick dump of a site via drush arb --destination=/var/backup/latest.tgz --overwrite from the root level /var/www/html. However, on the rare occasion that I need to ...
0
votes
0answers
28 views

Running drush cache-clear via capistrano, output shown as errors

I'm deploying a Drupal 7 site using Capistrano + Drush, and using the following to clear the cache: run "#{drush} cache-clear all" The command runs fine, and give the following output: ...
0
votes
0answers
88 views

Crontab to trigger scripts with drush commands

I've read this question and the answers links through to Jenkins. Looked into it but was way over my head to install and set up. The other answer links to this page which talks about running cron ...
0
votes
0answers
41 views

Lost content when updating drupal 7 via drush in ssh for production site

I just did a drush update on drupal 7 production site and contents pages set up in views disappeared. Any suggestions for checklist before importing database backup? This has me wondering if I ...
0
votes
0answers
22 views

Drush site-alias via php doesn't return short alias

when I do "drush sa" in terminal I get : $ drush site-alias --short @site-drupal @i3f @kera @none But, when I do it in a php script passthru("/usr/local/bin/drush sa --short"); I get only @none ...
0
votes
0answers
23 views

Running recommender encounter an internal error

I'm using recommender module to generate prediction for product. But every time i run recommender, memory gets exhausted. Can anyone suggest me how to resolve this problem. Message - Running ...
0
votes
0answers
83 views

Whenever I try to enable or disable modules using drush, there is a WD form error displayed

drush en <modulename> ... WD form: Illegal choice split_test in status element. <modulename> was enabled successfully. An illegal choice has been detected. Please contact the site ...
0
votes
0answers
112 views

Upgrading Drupal 6.22 to Drupal 6.26 with Drush(wrong md5 checksum)

When i am trying to update Drupal from 6.22 to 6.26 using Drush i am getting below error File acquia-drupal-1.2.45.5853-update.tar.gz is corrupt (wrong md5 checksum) [error]. I am using the ...
0
votes
0answers
70 views

how to change the weight of the node to be the last one

i created aview that list all photos orderd by weight to be draggable , when i add new anode it take arandom weight but i want it to be the last one . i thought to set static weight using hook_insert ...
0
votes
0answers
104 views

body and image field of all current nodes no more displaying its values (D7)

I made update to drupal core from 7.4 to 7.15 and also some modules using Drush command tool. Everything was good, then I downloaded and enabled some more modules: Admin_menu, Module_filter and ...
0
votes
0answers
63 views

Drush clear cache breaks views relationship

I have a views display with 2 relationships. The display works fine. When I clear the cache using the admin interface everything works fine. But when I clear the cache using Drush (drush cc all) the ...
0
votes
0answers
49 views

Drush stopped working on Mac OS X 10.6

Drush worked until yesterday, now the system shows the following error whenever I enter a drush command. /usr/bin/php: line 19: /usr/bin/php.bin: No such file or directory. Any ideas on how to fix ...
0
votes
0answers
394 views

Drupal crash recovery - segmentation fault

A drupal 7 website I am developing is repeatingly crashing. After each crash, I can't access any further pages on the website, in any browser, until I restore the database from a backup and remove ...
0
votes
0answers
19 views

How do I create a “platform” and “site” from CLI, using the drush extension provision

I'm trying to figure out how to use Provision to create new sites from the CLI. I tried looking at what commands Aegir normally passes to Provision when setting up a new platform and then a new site ...