The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [drush]

Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).

Filter by
Sorted by
Tagged with
0
votes
2answers
431 views

Cannot install Drupal via drush in the root of site

I am going absolutely insane. I have been up for several hours scouring the internet, installing, removing, installing, removing, and I CANNOT get Drupal (7 or 8) to install at the root of a site (...
0
votes
2answers
374 views

How do I reset all user passwords to 123 with drush or SQL?

For testing purposes I like to reset all user passwords to 123. Is this possible in Drush or SQL? I guess the query will be someting like this but cannot find the exact yourhash: UPDATE `<...
0
votes
1answer
213 views

Updated drush, but status shows old version

I have a D7 site running in a Vagrant VM. I was getting the following error when attempting to run drush updb from the site folder: Command updatedb needs a higher bootstrap level to run - you ...
0
votes
1answer
83 views

How to limit “drush pm-updatestatus” to check only given project?

When I run the drush pm-updatestatus drupal it keeps checking all other projects like: drush pm-updatestatus drupal Checking available update data ... ...
0
votes
1answer
80 views

Create folders in custom installation profile fails when usind drush site-install

I am working on a custom installation profile, and am using $_SERVER['DOCUMENT_ROOT'] as part of creating custom folders inside <drupal-root>/sites/sitename.tld/. It works as expected when using ...
0
votes
1answer
29 views

Module(s) doesn't enable properly with Drush

I have installed Acquia's DevDesktop 2 to create local sites and while testing D8.3.6 I have found an interesting issue. When I enable various modules with drush (drush en paragraphs (example)) drush ...
0
votes
2answers
1k views

Could not open input file: drush

I have a relatively fresh instance of Ubuntu 16.04 running a Drupal 7 site, with php5.6 installed instead of php7. The drupal site runs well. I am trying to get drush installed so that I can easily ...
0
votes
1answer
56 views

Drush suddenly stopped working can't use PM command

Suddenly having errors in drush with aquia dev desktop...it's been working fine for a year at least and now this: C:\aquiasites\fixing\sites\all\modules>drush en color_field -y Command pm-enable ...
0
votes
0answers
44 views

delete all drush installations

I've built a Drupal 8 site without using Drush because I was couldn't figure out how to uninstall, or upgrade, the 5.7-drush on my computer. I can't remember which method I installed Drush by in the ...
0
votes
0answers
406 views

Drupal Commerce 2 Installation

I tried to install drupal commerce using following command as described in http://docs.drupalcommerce.org/v2/getting-started/install.html composer create-project drupalcommerce/project-base mystore --...
0
votes
0answers
98 views

Drush command with Url::fromRoute PHP Fatal error: Allowed memory size of

If i create a custom drush command than run a method than exec a loop than 2000 items. For each item i call a Url::fromRoute method: $url = Url::fromRoute('route.custom', [ 't' => 'text, ...
0
votes
1answer
50 views

Drush Installation

I have a Drupal 8 site that was installed manually. I would like to install Drush to ease Core Updates/etc. Is there anything that I need be concerned about doing this, since the site wasn't ...
0
votes
1answer
22 views

Drush set block setting only working for one value

If I disable the powered by block, and use drush to enable it, the block shows back up again. I use: root@vagrant-ubuntu-trusty-64:/var/www/drupal# drush config-get block.block.bootstrap_powered ...
0
votes
1answer
2k views

Use drush instead of vendor/bin/drush

I try to get drush to run by calling just 'drush' and not 'vendor/bin/drush', I'm working with OSX Sierra. This doesn't work out as I want hope someone can help me with this. When i follow the ...
0
votes
3answers
23 views

Find the password for user admin from a replicated old version of site

I have access to a copy of an old version of a production site on a dev server, but the owner of the website on prod has lost his credentials to admin and doesn't know his ssh login credentials. The ...
0
votes
1answer
65 views

Unable to manually install the http_proxy module

We are behind a corporate firewall, so the first thing I do with new Drupal 7 is to manually download, unzip, & use Drush to enable the http_proxy module ($ drush en http_proxy.) Once that is ...
0
votes
2answers
764 views

Drush not working after install

I just installed drush using "composer require drush/drush". It ran correctly and when it completes a navigate to vendor/drush/drush/ directory where the drush.php file is located Then I run the ...
0
votes
1answer
65 views

How do I change the transport for remote drush alias calls

We're moving to an environment where our drupal instances will live inside docker containers managed by kubernetes. Currently I've got scripts for things like checking module security status across ...
0
votes
0answers
91 views

Issue with site local Drush and MAMP [duplicate]

Im trying to set up Drush 8 with MAMP Pro. Short version: Ive got Drush working so that when I cd to my project root and enter a command like vendor/bin/drush en ban it works fine. Ive followed ...
0
votes
1answer
145 views

Changing Drush path

I previously had Drush working on my VPS, but for some reason since a server update Drush can no longer be located. If I do 'which drush' the output is '/root/.composer/vendor/bin/drush' which ...
0
votes
0answers
55 views

Drush 7 is not recognizing my Drupal sites, which were moved to new Virtual Host directory

On my laptop, i’ve moved all my Drupal sites from a defunct AcquiaDevDesktop set up (stopped working!) into a new Virtual Host set up. I named the folder DevSites. In trying to get the Drupal sites ...
0
votes
1answer
417 views

Unknown engine type outputformat

Hello I've just updated Drupal (to version 7.53) and now in Drush when I try launch the commands: "drush @theflyingeye.org up" (to update my website) or "drush @theflyingeye.org cc" (to clean chache) ...
0
votes
2answers
55 views

Is there an easy way to move user data between 2 sites?

I am totally new in Drupal, and I am using Drupal 7. I was asked to move data between two sites that don't even have the same structure, and have different fields. Can anything bei done with a tool ...
0
votes
1answer
287 views

Error When Changing User Role in Drush?

I wanted to see if there is a way to change a user role using drush. I found this post explaining how to do it but I get an error. I replaced the actual username with "USERNAME". drush user-add-role ...
0
votes
1answer
83 views

Drush pm-updatestatus No JSON output on success

My sites are running Drupal 7, Drush 8.0.3. I'm creating a dashboard to check what core and module versions my Drupal sites are running (they're all on the same server). I use a shell script to get ...
0
votes
1answer
513 views

How to correctly start a website using Git/Drush/Composer workflow?

I am trying to follow this article to start a D8 site: https://www.drupal.org/node/803746 The article is for D7 but I think there are no much differences. These are the steps I followed so far: ...
0
votes
1answer
158 views

How to test upgrade availability with drush exit codes?

I need the test to only do a backup before an upgrade will take place. I use version 8.01 and I use the following command: drush up -n This seems to return zero when there are no updates and 75 ...
0
votes
1answer
93 views

Drush field-clone with specified label

The following command clones the field with the same label. drush field-clone field_tags newtags As you see, the cloned field has the same title Tags. So how can I clone the existing field with ...
0
votes
2answers
607 views

Drush config-import/export [duplicate]

I'am trying to export menu items but the generated yaml files does not contains any reference to this elements. All menu files look like this: uuid: 12....04 langcode: en status: true dependencies: { ...
0
votes
1answer
170 views

Trying to turn on theme debug, but getting an error: Drush command terminated abnormally due to an unrecoverable error

I'm new to Drupal and Drush and so am hoping someone can shed some light on this. I tried to turn on Theme Debug with Drush: drush vset theme_debug 1 But I keep getting an error I don't entirely ...
0
votes
1answer
198 views

How to stop drush displaying a Drupal error message?

This question is a follow-on from this one about creating managed files. If you look at the question in the link, you'll see that I am writing a drush command to detect all the inline-images in a just-...
0
votes
1answer
575 views

Which alias do I use to run it with another PHP version?

The Server available for our new Drupal project uses an old PHP CLI Version by default. But I have setup an alias in .bash_profile like so: alias php7=/path/to/php7 and that is working fine. I would ...
0
votes
1answer
25 views

Move a site hosted on IIS/MS SQL Server across to LAMP stack

I have a Drupal 7 site which is currently hosted in a Windows servers environment (e.g. IIS and MS SQL Server). The site needs to be moved over to Platform.sh, which is using the LAMP stack. I am ...
0
votes
1answer
52 views

drush cc segmentation error when clearing theme-list

I'm working on Vagrant/Virtual box and get a segmentation error when I drush cc theme list (8). I'm new to Drupal and Vagrant and have no idea what this means. Would anyone be able to point me in the ...
0
votes
1answer
53 views

Bug API migration with postgreSQL

i have an issue concerning the API migration. I have an existing drupal 7 website with a MySQL database. Now i want to migrate this website in a new drupal 8 instalation with a postgreSQL database. ...
0
votes
1answer
145 views

How to clean up multiple Drush Composer installs?

I've been setting up a new Ubuntu 16.04 laptop for Drupal development. I had trouble installing Drush using Composer, but eventually got things working. Today, while setting up Drush tab completion, I ...
0
votes
1answer
69 views

Deploy to production with git using Acquia like localserver

I'm using Acquia to export my local proyect to production proyect but when I did git push just the code was saved, the changes that I did in UI was not saved for example I created a user in local UI ...
0
votes
1answer
34 views

Prevent drupal_messages in drush

I am creating a bash script to automate some stuff including drush commands. When using drush vget I always get Drupal messages, but I only want the value of the variable. This prevents me from ...
0
votes
1answer
78 views

Drush do not autocomplete files and directory names

I'm using Linux Mint 18 XFCE. Drush perfectly works, except for this annoying issue that it does not let me autocomplete file or directory names in a drush command. Lets say that I want to sync my ...
0
votes
1answer
1k views

Drush does not work invoking the local Drush

I have installed new D8 on a remote server using this way https://github.com/drupal-composer/drupal-project . I have pulled files from GitHub and I have run 'composer install' for getting the all ...
0
votes
2answers
574 views

Drush 8 issue under Linux: 'drush up' ends with 'pm-updatestatus failed' while 'drush ups' works correctly

I'm hosted on a Linux server with Apache 2.2, PHP 5.5, MySQL 5.6 installed. I still run D6 sites for the moment, whose some modules I can update by using Drush 8 combined with the myDropWizard module. ...
0
votes
1answer
28 views

Drush over local network share?

Can drush be run on a site when I have the server connected to my machine as a network share? I am running Win10 and the server is Windows based with IIS. The website folder mounted as a drive, so the ...
0
votes
2answers
228 views

Drush rsync and drupal composer wrong destination dir

I'm trying to sync two D8 sites. Both set up with drupal composer which means that the directory structure is a bit different than usual. Composer puts drupal files inside web sub directory like this: ...
0
votes
2answers
29 views

Get a notification if a new version (tag) is created

Before there was a RSS fead that got update if a new release of drush is available, see question: Getting an email notification when a new Drush version is available. But after drush is moved to ...
0
votes
1answer
41 views

How does Drush figure out modules that have updates?

How does Drush get information about installed and disabled modules and updates for them? I'm facing issues since drush is trying to update modules that AREN'T in the modules directory nor in the ...
0
votes
1answer
32 views

Error after upgrading ecommerce kickstart is breaking my start

I'm working on someone else's project that hasn't updated its "Commerce Kickstart" (commerce_kickstart) module in a long time. After I upgrade it using Drush, the site breaks and I'm left with the ...
0
votes
1answer
129 views

Where to place sar module? [closed]

I want to replace some of the links which I am using in my website, i came to know there is a module called Drush Search & Replace. I have installed also to use this module. But I am not getting ...
0
votes
2answers
287 views

Drush cc gives only two options even when I am in root folder

I am working with drupal 8, MAMP version 3.5, and drush version 8.1.3. I have installed drush globally and when I enter drush st it gives me complete information and shows that drush is installed but ...
0
votes
1answer
202 views

Installed a module, broke my site. And now I have no way to turn it off

I'm still wrapping my head around Drupal 8 and installing modules during my learning process. Now I installed this module: https://github.com/iwhitcomb/foobar and it totally broke my site: In Drupal ...
0
votes
1answer
346 views

How to configure drush with Acquia DevDesktop on Windows to access through proxy?

There are some answers to similar questions using WAMP, but now drush is not recommended under Windows (unless using DevDesktop, which I am). And this is seriously frustrating. I followed the ...