Questions tagged [drush]

drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

See http://drush.ws, the homepage for the drush project. It contains many important resources for drush users.

[A list of modules that include Drush integration.][3]

(drush is not a module)

[3]: http://A list of modules that include Drush integration.

346 questions
1
vote
3 answers

Drupal create node with body programmatically

I am trying to create nodes in Drupal 7 using a php script I then execute using Drush. While I am able to create a basic node with a title, I am not able to set the body for some reason. I have tried two different approaches using different advice I…
aaa90210
  • 11,295
  • 13
  • 51
  • 88
1
vote
0 answers

Get rid of the message 'Changed current directory to /home/MYUSERNAME/.composer'

Problem/Motivation On ubuntu 14.04 when I open a new terminal window or tab I get this message: Changed current directory to /home/MYUSERNAME/.composer I installed drush via…
Achraf JEDAY
  • 1,936
  • 5
  • 24
  • 33
1
vote
0 answers

Is there any difference between System cache clear and drush cc all in Drupal 7.53

I am facing a unique issue with the clear cache. The issue is coming in Drupal 7.53 project. When someone clear the cache from performance page then it removes some java script files from the DOM and UI is disturbed in absence of Javascript in the…
Sunil Kumar
  • 63
  • 1
  • 7
1
vote
1 answer

Error using composer to install Drupal: The system cannot find the file specified. (code: 2)

I've been trying to troubleshoot this error in many ways (including re-installing composer, clearing the cache, diagnosing composer, checking for an empty AutoRun folder in the registry etc.) I've also tried installing Drush first but get the same…
Lance
  • 11
  • 1
1
vote
3 answers

Drupal upgrade to 8.2.3 failed

I had a fresh installation of Drupal 8.2.2 running and followed https://www.drupal.org/node/2550801 to update it with drush, but I got: $ drush pm-update drupal Update information last refreshed: Fri, 11/18/2016 - 22:02 Name Installed Version …
umpirsky
  • 9,902
  • 13
  • 71
  • 96
1
vote
2 answers

php fatal error: Undefined class content drush

When I ask the drush status while im in the folder of the website I get this message /volume1/web/drupal8 $ drush status PHP Fatal error: Undefined class constant 'MYSQL_ATTR_SSL_CA' in phar:///usr/local/bin/drush/lib/Drush/Sql/Sqlmysql.php on…
Joehoe
  • 183
  • 3
  • 13
1
vote
0 answers

Composer - Drush - You must enable the openssl extension to download files via https

I hope you can help me on this one. I'm trying ton install drush on Windows 8 using Composer. So I execute this command line: composer global require drush/drush:8.* And composer return this error: You must enable the openssl extension to download…
1
vote
1 answer

How to install drush for a vagrant project?

I have drush installed in my system but drush does not work inside vagrant. It works for MAMP though. Here is drush status drush status Drupal version : 7.41 Site URI : http://default Default theme : garland …
neha
  • 195
  • 1
  • 9
1
vote
1 answer

Why is drush failing with command terminated error message?

Everytime I try to run drush cc all in a Drupa 7 environment, I get the following error message Drush command terminated abnormally due to an unrecoverable error. [error] Error: Cannot redeclare xxxx()…
Hello Universe
  • 3,248
  • 7
  • 50
  • 86
1
vote
0 answers

"The requested page was not found" errors everywhere except the homepage

I created a Drupal site running on a Vagrant virtual box. However, I can't display anything beyond the homepage. I've included the vagrant bootstrap.sh code below: sudo apt-get update echo "mysql-server mysql-server/root_password password root" |…
Nicholas Tomlin
  • 195
  • 1
  • 3
  • 11
1
vote
2 answers

Drush site-install dkan fails - "All parts of a PRIMARY KEY must be NOT NULL"

I'm trying to make a DKAN site via drush, and I'm currently running into some issues with the site-install. I've downloaded drush, dkan, and mysql, and the mysql server is currently running with version mysql Ver 14.14 Distrib 5.7.13, for osx10.11…
Nicholas Tomlin
  • 195
  • 1
  • 3
  • 11
1
vote
1 answer

Install a global Drush via Composer

I entered vi ~/.bash_profile, but the file is not empty. Where should I put export PATH="$HOME/.composer/vendor/bin:$PATH"?
bingo bin
  • 109
  • 2
1
vote
1 answer

Enabling a Feature via Drush

When I enable a Feature through the site UI, everything goes as expected. However, when I enable a feature from drush with drush pm-enable, the following don't happen: Strongarm configurations not applied module_disable (in a new custom module) not…
Kevin
  • 13,153
  • 11
  • 60
  • 87
1
vote
0 answers

How to upgrade drush version 5.4 to 7 or 8 for drush8

I am user drush version 5.4 for drupal 7. its is working fine but I am unable to use drush this version with for drupal 8. I need to upgrade drush version. please provide any solution.
1
vote
1 answer

Drush command not recognized after installing globally via Composer

I recently installed Composer globally on my system (following instructions found on getcomposer.org). After that, I attempted to install Drush via composer. As the first step in the Drush install, I added composer's bin directory to my system path.…
Travis
  • 53
  • 1
  • 7