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
2
votes
1answer
543 views

How to execute a VBO using Drush

So I want to execute a VBO using drush, taking advantage of vbo-execute command to change my workflow state in my views, based on few resources I found this is the command I'm using: drush vbo-...
-1
votes
0answers
10 views

iterate on views in order to get views total rows programmaticaly, for each organic group member [closed]

In order to get the number of rows a view returns, I could add an element on Header, from the interface. I can cLick "Add" in header section and then add a "Global: Result summary" field. If i have ...
1
vote
0answers
19 views

How to attach xdebug to drush in docker

How can I "attach" xdebug to drush in a docker container? By that I mean, how can I have xdebug show me a history of an import script? And to look at the single variables that are defined and ...
2
votes
1answer
3k views

Why doesn't composer install drush on $HOME/bin directory?

I'm trying to learn to to use drush. I installed composer to my $HOME/bin/directory: $ ls ~/bin composer composer.phar subl sublime sublime_config.sh sublime_text Then I tried to install drush ...
0
votes
2answers
404 views

Translate untranslated strings

I downloaded and enabled translations for my Drupal core and modules using these Drush commands: drush dl l10n_update && drush en -y $_ drush language-add lt && drush language-enable $...
0
votes
1answer
30 views

Drush does not run command, but prints the php script

We have a special server that runs php5.x and relies on drush 5.x. PHP 7.0 is installed, but the sites on the server all run PHP5, because PHP7 breaks them. We have previously had drush 5 on it, but ...
0
votes
2answers
818 views

Drush cache-rebuild breaking menus [closed]

We have had an issue with an expanding menu on a drupal 8 website that stops working when the command drush cache-rebuild is used. MORE INFO ON ERROR: When triggered, the error causes menus set ...
2
votes
1answer
512 views

cannot use some drush commands

I am running into some trouble with drush I can't pm-enable the modules I just downloaded with it. I did some research but none of the solution worked for me, most cases involved switching "localhost" ...
0
votes
1answer
355 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 ...
0
votes
0answers
23 views

How to solve “Query failed” error in drush sql-sync output 2?

I have the exact same problem as in How to solve "Query failed" error in drush sql-sync output?, exact same output. That user found the answer as the password in settings.php was wrong, but ...
0
votes
3answers
368 views

Drush can't DL modules - xml error

I'm working in a Linux server with PHP 5.3.3 installed along with Drush 6.2 (?) I'm unable to dl modules to the server. When I add --verbose to the command, I see the following. Executing: wget --...
12
votes
4answers
15k views

Running Drush returns an error

I am running Drush version 6.2.0 and the latest Drupal 8 beta on Dreamhosters. When I run drush cc all within the sites directory, I receive the following error immediately after executing the command:...
1
vote
2answers
356 views

Drush dl not working on Ubuntu with postgresql backend

modules can be added manually, but drush dl or drush en produce errors and will not download a module database section from settings.php $databases['default']['default'] = array( 'driver' => '...
1
vote
2answers
332 views

Update command won't work for multisites

I have a Drupal 7 site with a half-dozen multisites/subsites and I am trying to setup Drush so that I can run my modules updates from the command line for the subsites. Running Drush for the main site ...
0
votes
1answer
672 views

Drush command terminated abnormally

I'm using https://github.com/drupal-composer/drupal-project and get an error when starting drush: [~/public_html/drupal]# alias drush="~/.composer/vendor/bin/drush" [~/public_html/drupal]# drush [...
1
vote
1answer
36 views

I don't find something similar to drush field-create in Drush 9

I'm looking for a similar command drush field-create with Drush 9, I only find drush generate field but when I execut it I don't get nothing, also if I try drush generate field --help I get: Too ...
0
votes
0answers
33 views

Why does sql-sync fail?

I'm managing Drupal 7 and Drupal 8 sites, so I'm running Drush 8 as that's the only version that can manage both. The Drupal 8 sites are installed using Composer and my local setup runs on MAMP 5.5.1. ...
0
votes
0answers
33 views

Alter drush 9 @self alias

Forgive me as I'm new to Drupal and am getting confused about the defaults I'm seeing between different parts of the ecosystem... I'm using Drupal 8, Drush 9 and Composer to create my project and ...
1
vote
1answer
499 views

error on CLI when using drush config-import staging

I'm getting this error below whenever I try executing the commands drush config-import staging on the CLI. I'm basically in the process of migrating a drupal 7 DB to Drupal 8 and currently following ...
0
votes
0answers
30 views

Make Drush 9 @self path include full site

I've just upgraded to Drush 9 and the root path for @self is only the web-folder and therefore not the full drupal site. That behaviour isn't intended, right? The result is that changes within the ...
5
votes
10answers
7k views

Drush CC all returning “No Drupal site found, only 'drush' cache was cleared”

I've tried other solutions, but none of them are specific to my setup. I just started using the new Linux subsystem featured in the recent Windows 10 update. I'm using WAMP x64 v3.0.6, and have ...
3
votes
1answer
355 views

Migration of content with an UI

My goal is to import data of customers from a csv file to my custom entity. For that I wrote a migration with the migrate_source_csv module as source plugin. This works fine, but the problem is, that ...
0
votes
3answers
2k views

Update fails with undefined function system_rebuild_module_data in update.inc but the function is defined in system.module

When I run drush updb on my Drupal 8.3.1 site, I get: PHP Fatal error: Call to undefined function system_rebuild_module_data() in /var/www/mysite/web/core/includes/update.inc on line 46 ...
0
votes
1answer
390 views

Run a drush script from php system()

I have a Drupal module with a function that runs a system(“myscript.drush”); function _deploy_monitor_stream($submission_id) { header("Content-type: text/plain"); disable_ob(); // Outputs to ...
0
votes
1answer
341 views

drush cannot update commerce kickstart

I just installed Commerce Kickstart and got a prompt to upgrade from 7.x-2.20 to 7.x-2.21. drush cannot update throws error: The commerce_kickstart directory could not be found within the modules ...
0
votes
2answers
36 views

Composer requirement [closed]

I have been installing/managing Drupal 8 sites without the use of Composer or Drush. Main reasons being that I'm not planning to have complex modules with dependencies and I'm comfortable to perform ...
3
votes
3answers
1k views

Drush disable module updates email notifications

Is there a Drush command to disable email notifications about Module updates.
4
votes
6answers
14k views

Command pm-enable needs a higher bootstrap level to run [closed]

I've been scouting the forums for the past two days trying to get an answer to my problem, i'm new to Drush but pretty good with Drupal. my environment is as follows: centos 6 php 5.3.3 drupal 7....
0
votes
1answer
418 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) ...
2
votes
0answers
57 views

Dealing with installed modules/extensions in composer packages removed from composer.json [duplicate]

I had brought up a similar question on StackOverflow, but it hasn't gotten much traction because of a lack of understanding of Drupal, I think. The issue we are experiencing happens when a developer ...
2
votes
1answer
27 views

drush migrate-upgrade “[debug] key_value table not found. Database may be empty.”

I am trying to migrate a D7 site to D8 following the steps found here . Once I can manage it and make sure I have all the PHP components, Drupal modules and etc. I have 4 sites to update, and one ...
83
votes
10answers
55k views

How can I change a user's password?

How can I change a user's password from the command line using Drush?
2
votes
1answer
863 views

TypeError on “drush config-export”

I've been receiving the following error message when trying to do a drush config-export command. However, I am able to successfully do the configuration export from the Drupal admin page (admin/config/...
0
votes
1answer
522 views

How to get the drush command defined in migrate tools to work?

I have a D8 site since some months. Today I realised that I needed drush in order to migrate some contents (using the migrate tools module). Composer was not installed, so I installed it. Then I ...
1
vote
3answers
2k views

Drush install on RedHat 6 seems to do nothing

I'm trying to get drush installed on a RHEL6 server. I've done the install via pear and also by unpacking the tar ball to /usr/local/share. Both methods result in the same result: typing "drush" from ...
2
votes
1answer
161 views

Why does Drush need the --uri option to return absolute URLs?

I want to execute a View and export the JSON file to the files directory. I am using Views Data Export and VDE drush add-on modules. My view has a file/PDF field and I want to provide a direct link to ...
0
votes
2answers
840 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 ...
1
vote
2answers
403 views

The missing modules don't get installed after updating with Composer

To update a site locally, I cloned the code base with git to my local computer and imported the database, then ran "composer update --with-dependencies", there were no errors, then I went to /web ...
0
votes
0answers
55 views

Drush output comes with color in a directory root while it comes without color in another

I have set up two drupal virtualhosts in a VPS server under two different users. I had installed these at two different times so am not too sure about the specific install steps for Drush that I used. ...
1
vote
3answers
3k views

Drush Not detect Database connection

I'm using Acquia DevDesktop application on Mac, I installed a new website on that , everything seems Ok but when I got to the installed path and try to update Drupal core with drush up faced with ➜ ...
3
votes
1answer
2k views

Order of drush commands for automated deployment?

What order should the following drush commands be ran? config-import updatedb entity-updates Also, I see entity-updates fail a lot due to field_delete_data* tables existing. How can I delete them as ...
0
votes
1answer
498 views

Error consolidation/annotated-command

Trying to install Drush using Composer, i get an error concerning consolidation/annotated-command. What does it mean "locked at 2.0.3" and "requires 2.8.1"? This is the error: Your requirements ...
1
vote
1answer
617 views

Drush - nothing happens

if i'm in my drush console at my drupal dir /xampp/htdocs/drupal and type in something like "drush en color" nothing happens. why? @tunic same again
3
votes
2answers
283 views

Unable to use drush dl. No such file or directory filesystem.inc:267

I'm trying to download Drupal 7 using Drush 8.1.2, without success. It was working perfectly for months; now, I am getting the following error message on all modules and core downloads when I'm ...
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 ...
1
vote
1answer
493 views

Installing a New Site with Drush and Ansible

I'm trying to create an Ansible Role to run on a VM that creates a new site (so my colleagues don't have to memorize the drush si --db-url command and automate the entire process. I'm running into a ...
3
votes
1answer
165 views

sql-dump piping output to the screen

I am trying to dump a remote Drupal site to a local SQL dump file. In Drush 8 this worked a treat: drush @site.alias sql-dump > ~/Dumps/dumpy.2019-02-19.sql Now, if I run this command in Drush 9 (...
3
votes
2answers
1k views

Error: Class 'Drush\Sql\Sql' not found

This is my first attempt at installing Drupal using Composer. I have successfully installed Composer and the Drupal Project template, which comes configured with Drush. To install I use composer ...
16
votes
5answers
13k views

Import po-files using Drush

I have about 20 sites that have a common translation. I don't want to go into admin of each site each time the po-file is updated. Is it possible to import a po-file using Drush?
1
vote
1answer
63 views

Drush sql-dump with stored procedures

According to the current documentation I don't think this is possible, or is it? (drush sql-dump --routines doesn't work or anything like that) Aaaannndd... let's say it's not possible, and I want ...