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

learn more… | top users | synonyms

1
vote
0answers
7 views

New Drush install instructions use Composer for install, even on Drupal 7?

The current Github install instructions for drush (http://docs.drush.org/en/master/install/#git-clone-ie-manual-install) say as the last step: From Drush root, run Composer to fetch dependencies. ...
1
vote
0answers
48 views

Drush : Missing $settings['hash_salt'] in settings.php

I just setup a new Drupal environment with Mamp. I can access my website just fine, but whenever I want to run drush cr I get the following error : exception 'RuntimeException' with message 'Missing ...
-4
votes
2answers
50 views

Drush does not support Drupal?

My Drush 5.x was working normally and then suddenly threw this message. I upgraded to Drush 6 using the Windows installer but I am getting the same message. This is a Windows 7 machined and I stress ...
3
votes
2answers
30 views

Possibility to apply a patch to a target directory with Drush make?

Is there any way to declare target directory for a patch in a Drush make file? I need to apply a patch to a subfolder of a module. The reason is that CiviCRM's project is composed from multiple ...
-2
votes
0answers
30 views

Drush unable to bootstrap

I have installed Drush on 2 separate servers (using composer) and I'm getting the same problem on each. The current one is Centos 6 with Plesk. My site is displaying fine on the front end, so the ...
0
votes
1answer
6 views

user_load() and EntityFieldQuery not found when running script via Drush

I'm trying to run a php script from the command line via Drush. When I tried to use EntityFieldQuery... $query = new EntityFieldQuery; I got the error: PHP Fatal error: Class 'EntityFieldQuery' ...
0
votes
1answer
22 views

Drush commands report “hostname: Name or service not known”

Many drush commands are reporting this error once or more: hostname: Name or service not known The commands seem to run fine, but it bugs me, and I'm not sure that there may not be things that ...
6
votes
1answer
117 views

How do I disable a module when Drush or the GUI doesnt work?

My site just gives a WSOD and throws this error: Error: Unsupported operand types in sites/all/modules/rules/includes/rules.state.inc, line 620 Since I can't even get to my site now without a ...
0
votes
1answer
18 views

Drush site upgrade: Contributed extensions were not upgaraded

I am using Drush site upgrade module for D6 to D7 Upgrade. In step 15, drush asks me to update only one module i.e. path_access, and for all the modules it says "following contributed extensions were ...
0
votes
1answer
13 views

Omega Tools Transform Theme Name error

I am getting the following error when trying to create an omega-sub-theme on my local machine (OSX) using drush on Acquia Dev Desktop. PHP Fatal error: Call to undefined function ...
0
votes
0answers
13 views

Using drush into remote host is showing me local data

I have an alias setup for my remote host with the following in the script: 'domain.com:/home/user/public_html', 'uri' => 'domain.com', 'remote-user' => 'user', ); ?> But when I drush using ...
0
votes
1answer
11 views

Changing Drush make default subdir for install profiles

I have a drush make file which has a default subdir for projects: defaults[projects][subdir] = contrib This places all modules into the sites/all/modules/contrib folder, which is great. The ...
0
votes
1answer
23 views

Can I change the path to Drush?

I am trying to use omega-wizard but I think I am using the wrong version of Drush. I want to use the drush the is in Acquia Dev Desktop but when i type which drush I get the one that was last ...
0
votes
0answers
6 views

Option to make drush sql-sync us bulk inserts

Is there an option to force drush sql-sync to use bulk insert statements? I have a database several Gigs in size. The many single insert statements generated by sql-sync's dump, while wonderful for ...
0
votes
1answer
26 views

Drush command using chef causing error “Command needs a higher bootstrap level to run”

Expected process to exit with [0], but received '1' ---- Begin output of /usr/local/drush/drush -y en views ---- STDOUT: STDERR: Command pm-enable needs a higher bootstrap level to run - you will ...
2
votes
1answer
26 views

Attaching Callbacks to Standard Drush Commands

I would like to add a callback to fire after anyone runsdrush cc all. Ideally this behaviour would be enabled in a drush alias file. Is this possible? By way of example, in this particular instance I ...
0
votes
1answer
13 views

how to correctly write drush sql-sycn using drush_invoke_process()

I need to execute a drush command from a custom module, Im using drush_invoke_process() but I do not know how to write it correctly How would you write this command for use with ...
0
votes
1answer
20 views

running “drush @remote status” gives “bash: drush: command not found”

I tried to follow solution here: Why does drush say "command not found" when I try to execute remote commands? But it did not work for me, the url /usr/local/zend/bin does not exists in my ...
3
votes
2answers
102 views

Drush installation - setting symlink to /usr/local/bin/drush is a must?

Refering to https://www.drupal.org/node/2132447, I would like to install Drush in /usr/slocal/abc directory, and I tried the following steps: $ cd /usr/slocal/abc $ wget --quiet -O - ...
0
votes
1answer
134 views

Can't update Drupal core to 7.34

I am trying to update Drupal core from 7.32 to 7.34 using drush. It initially appears to be sucessful, however the status report and /modules/system/system.info still show the version number as 7.32. ...
0
votes
1answer
27 views

Decoupling Drupal 7 from Ubuntu/Debian package management

I'd like to decouple my Drupal 7 installation from the OS package management. This is because Ubuntu's current LTS version (14.04) has Drupal 7.26, imported from the Debian packages at the time of ...
0
votes
0answers
11 views

Drush site-upgrade target database

When using the drush site-upgrade (drush sup) to do a D6 to D7 upgrade, does the target database need to be pre-filled with D6 tables? Or can it be completely empty? Thanks
3
votes
1answer
56 views

Drush site-upgrade : “Unknown option: --uninstall”

I'm trying to upgrade a Drupal site from 6.34 to 7.x using Drush. When I run drush site-upgrade @alias, everything goes well until step 12-a where it ends up throwing this error : Unknown option: ...
0
votes
2answers
22 views

How to create Subtheme of Omega while Omega Tools and Drush both has some disclaimer and Moved to Github?

I am a beginner in Drupal. I am using Drupal 7. I wanted to create Subtheme in Omega. Theses are the methods to create subtheme (With Omega Tools, Drush and Manually)in Omega. I have install new ...
0
votes
1answer
28 views

drush rsync among sites

I have the following alias group set in the setA.aliases.drushrc.php: $aliases[‘site1'] = array( 'root' => '/var/www/site1', 'uri' => '88.88.88.11/site1', 'remote-host' ...
0
votes
1answer
30 views

Failed opening install.inc' when upgrading Drupal 7.x core with Drush 7.x

I have Drush 7.x installed and when I run 'drush up', on a Drupal 7.x codebase, I get the following error: Drush command terminated abnormally due to an unrecoverable error. [error]Error: ...
0
votes
1answer
52 views

drush site-install error: /var/www/drupal7 does not contain a valid Drupal installation

I am totally new to Drupal. I am running on Windows 7 Enterprise and have done to following to set up my site: Downloaded and installed Virtual Box VirtualBox-4.3.18-96516-Win.exe Downloaded and ...
0
votes
0answers
21 views

After drush arr - cannot login

php 5.5.x, mysql 5.5, drush 5.x, drupal 7.33, backed up drupal: 'drush ard default --destination=/manual_backup/backup_site_2014_11_15.tar' switched to new 14.04 Ubuntu server, installed drush, ...
0
votes
0answers
18 views

Problems with Terminus SSL on a Windows machine using Drush

Specs: my drupal site is hosted at pantheon (getpantheon.com), I'm using Drush on a Windows 7 x64 machine. ...I was reading this article on commands using Drush + Terminus (a special Drush extension ...
0
votes
1answer
76 views

Updating to Drush 7 on OSX

I had a working drush 5.6 (manually installed) on OSX (Yosemite) and decided I wanted to upgrade to the latest drush 7 version. I ended up with version 6.0-dev. I followed the installation ...
1
vote
1answer
18 views

“global” keyword does not work from within drush script

I have the following script: <?php $GLOBALS['foo1'] = "foobar1"; function g1() { echo "g1 " . $GLOBALS['foo1'] . "\n"; } $foo2 = "foobar2"; function g2() { global $foo2; echo "g2 " ...
3
votes
2answers
35 views

Can drush accept piped commands for aliases?

Can drush take piping commands for a multisite command using an alias? I'm trying to setup a simple refresh function from my prod to dev/staging. Any pointers or tips would be welcome. just started ...
0
votes
1answer
41 views

Running drush from a minimal shell

My goal is to pipe mail with Postfix into a drush command. I made a simple bash script that redirects stdin to the drush command, and I configured Postfix to pipe mail to the script. But executing ...
2
votes
2answers
50 views

Load Aegir's site credentials from a php function

I'm using Aegir and want to inject some data into a site's vhost. And I managed to do it thanks to this post. My problem is I can't find an Aegir function to load a site's dabase configurations from ...
0
votes
0answers
64 views

Notice: Undefined index: #ajax in ajax_form_callback() (line 391 of /var/www/html/includes/ajax.inc)

I'm having an a field set as unlimited in the options in my custom content type, whenever I'm clicking on "Add another item" the page is only loading AJAX and I'm getting this message in error log : ...
1
vote
1answer
110 views

How to uninstall drush via composer?

There is method of installing drush via composer: composer global require drush/drush:dev-master But how to uninstall it using composer?
0
votes
1answer
111 views

How to find non-existing terms based on the list?

I've few thousands terms in my vocabulary. I'd like to find out which one still are missing (without adding them) based on the list of term names. I believe this can be achieved by some anti-join sql ...
0
votes
0answers
28 views

Command […] needs the following module(s) enabled to run:

I try to make a custom command called findpath based on instructions found there (http://www.freelock.com/comment/1965#comment-1965) When I execute my script, I have an error : Command findpath needs ...
0
votes
0answers
12 views

Drush on windows xp not working, stuck with no output at all

I'm having serious trouble running drush from the command line in windows xp. Php is working fine, and execution of some test scripts work just fine. When i try to execute drush, both from the folder ...
0
votes
1answer
49 views

How to sql-sync database between two remotes which share the same host?

I've two remotes: @source and @destination. I'm trying to transfer the database from dev to test environment by using sql-sync: $ drush -vy sql-sync @source @destination But at the end drush ...
0
votes
1answer
35 views

How to exclude the user table using the drush sql-sync command

Could anyone tell me how to exclude drupal's user table from drush's sql-sync command? Thank you.
1
vote
1answer
33 views

How to rsync files between two remotes which share the same host?

I've two remotes: @remote.dev and @remote.test. I'm trying to rsync between these two remote Drupal instances by: $ drush -vy rsync @remote.dev @remote.test But rsync complains that: The ...
0
votes
1answer
51 views

Update drupal modules without updating core in one drush command

Is there a way to update all contrib modules without updating core in one drush command. For example: drush up updates all modules and core. Is there a way to ignore core and just update the ...
1
vote
2answers
34 views

How do I get drush to run remote drush not in a path?

A remote server doesn't have drush, so I put it in my ~. Adding a $PATH works fine for myself being logged in, but since ssh [command] wont open a shell, $PATH is never picked up when I use drush ...
0
votes
1answer
42 views

How to drop all MySQL tables using drush?

Normally I could drop and create database from scratch, but what if user doesn't have permission to do that? Also I wouldn't like to specify my credentials in the command-line (1. it's hard to type, ...
5
votes
4answers
175 views

Is there any management utility for multi-site deployment?

I'm creating a multi-site instance for a client that makes heavy use of Webform. It's going to be a survey tool of sorts with a single base domain (no sub-domains) and a single SSL certificate. ...
2
votes
2answers
132 views

Drush not updating Drupal core

I've been wrestling with this since yesterday and have reinstalled drush 3 times, rebooted, restarted mysql(mariaDB) and a few other things but nothing works. I'm trying to update my core from 7.14 to ...
6
votes
3answers
140 views

What is the easiest way to install clean Drupal from scratch?

What is the easiest/quickest way to install clean Drupal from scratch on empty folder for testing purposes by using drush (without resorting to shell scripts or aliases).
4
votes
2answers
143 views

Drush updates core successfully to 7.32 but is still 7.31

I'm developing a site on Drupal 7 and using drush 7.0-dev to keep the core and modules up to date. I've run drush pm-update several times successfully in the past, until Drupal core version 7.32 came ...
3
votes
1answer
49 views

How to best handle “sudo: no tty present and no askpass program specified”

Mac 10.9, Drush Version : 7.0-dev I have custom Drush commands that contain shell commands with 'sudo' included. This results in an error when calling with remote alias to execute on remote ...