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
0
votes
1 answer

How to test drupal_goto within init function?

So have a function that does something like this: function mymod_init() { $ip = '123.123.123.123'; $newPath = mymod_redirect_calculate($ip); if (!empty($newPath)) drupal_goto($newPath); } This completely breaks unit testing. I have…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
0
votes
1 answer

drupal 7 drush cc all gives a bracket ( } )

When I do Drush cc all for my Drupal project it gives me a }. so somewhere in my code is a bracket } to much. I have more than 1000 php files. is there some way to find it easily? drush cc all } all cache was cleared in /opt/drupal web …
Glenn De Winter
  • 113
  • 1
  • 1
  • 4
0
votes
1 answer

How can I import content to Drupal 7 using drush?

How can I import content (not users) to Drupal 7 by using drush ?
tamirko
  • 499
  • 5
  • 12
0
votes
1 answer

Drush Drupal temp folder

I have two Drupal 7 sites. I want to keep them in sync with a drush command: drush sql-sync SOURCE DEST when I answer y to overwrite the databases I get the following error: mysqldump: Can't create/write to file '/tmp/filename.sql' (errorcode 2 -…
Jeff Brooks
  • 3
  • 1
  • 4
0
votes
2 answers

Drush enable error

when i what to enable module using drush I'm getting this error Im using mamp pro 3 and php 5.5.10

Additional uncaught exception thrown while handling exception.

Original

PDOException: SQLSTATE[HY000] [2002] Socket operation on…

Edin Puzic
  • 998
  • 2
  • 19
  • 39
0
votes
1 answer

Drush was not able to start the Drupal database

When I start drush en name_of_module in terminal i get this error Im using mamp and 5.3.27 php version Drush was not able to start (bootstrap) the Drupal database. [error] Hint: This may occur when Drush is trying to: * bootstrap a site…
Edin Puzic
  • 998
  • 2
  • 19
  • 39
0
votes
4 answers

After update: Drupal 7.35 Internal server error 500

After using drush up on my drupal installation to update from drupal version 7.34 to drupal 7.35, I get Internal Server Error 500. I have moved away .htaccess file and move it back without any result. I have uploaded /overwritten the files with the…
Angelin Calu
  • 1,905
  • 8
  • 24
  • 44
0
votes
1 answer

On Linux CentOS 7 OS how schedule jobs to run drush to re-index solr, run cron and clear cache for drupal 7 sites

HI a newbie to server management... We need to automate hourly script to run drush to re-index solr, run cron and clear cache on multiple servers. I'm sure there has to be .bat file or something?
0
votes
1 answer

openshift drush change user password

I need to change the user pass of admin in drupal by the opehsift rhc servers via drush command, so i used the : drush user-password admin --password="newpasswordhere" and i got the error: [drush2-drupal4ss.rhcloud.com openpublic]\> drush…
0
votes
1 answer

drush for installing new drupal project openshift rhc

I need to install new drupal project in openshift rhc company, SO i installed drupal package from its application page and it automatically install drush . so could i install new drupal project by using drush trough the ssh connection, i try to get…
0
votes
1 answer

Command pm-enable needs a higher bootstrap level to run

I have a problem using drush. After typing command for enabling module I get an error: Command pm-enable needs a higher bootstrap level to run - you will [error] need to invoke drush from a more functional Drupal environment to run this…
laci
  • 37
  • 6
0
votes
1 answer

drush does not work properly on vagrant

I am trying to create an omega subtheme and believe it's better to work with drush than manually. I have a test project on a vagrant box. In my Ubuntu I have installed drush, but I am probably doing something wrong. For example, drush dl works, but…
laci
  • 37
  • 6
0
votes
1 answer

Add servers/platforms from backend in Aegir using drush

I'm looking for automating the process of creating new server, installing packages, adding server and platform to Aegir host. I know how to do it with GUI for adding server and platform but not sure to do it from backend(CLI) using drush. Would be…
Swaroop Kundeti
  • 515
  • 4
  • 11
  • 25
0
votes
2 answers

Drush not recognizing drupal root folder

This one is driving me crazy. Whenever i use "drush dl" to download site_audit or drupalgeddon it downloads these modules inside the drush home folder ( /users/[user]/.drush ) instead of the current sites modules folder. the "drush status" and the…
user6820
  • 23
  • 3
0
votes
1 answer

Drush generates .make file on server but it is not in the working directory?

I am a Drupal newbie and trying to clone my site which is hosted on an Aegir server (using BOA). I ran 'Drupal generate-makefile' command in the working directory (the directory in which site is located) and the file did get generated - but it is…
nish238
  • 1
  • 1