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
0answers
25 views

Database connection is not defined: default

I have installed Drupal, and Drush with composer require drush/drush:9.7.2. $ vendor/bin/drush status Drupal version : 8.8.2 Site URI : http://recommended-project.dd:8083 PHP binary : C:...
2
votes
1answer
60 views

Drupal recommended-project missing Drush [closed]

I am looking to transform from drupal-project to recommended-project and seeing some difference in the folder structure. drupal-project contains a drush folder outside'web' folder and 'composer....
0
votes
1answer
32 views

Undefined function json_decode()

When attempting to update a Drupal 7 site through the UI or Drush, I get Error: Call to undefined function json_decode() in home/xxxxx/drush/includes/output.inc, line 403 , code: 255) The server is ...
0
votes
0answers
20 views

drush commands fails if user not logged in on server

I have a task schedule in windows server 2012 R2 that triggers a batch file to generate a random password for an account in drupal and then apply that password with drush using the command "drush user:...
0
votes
0answers
17 views

Cannot disable module “monitoring” after failed upgrade

I just updated to Drupal 8.8.1 (composer update drupal/* --with-dependencies now says I'm up to date, even though I know that 8.8.2 is actually the most recent). After doing this, I can use most of ...
1
vote
0answers
30 views

Drupal Commerce 2 updating with composer

I am a retired civil servant -- NOT a developer by a long shot -- and while I have used Drupal for about 19 years, I am new to composer and drush and Drupal Commerce 2. I was able to successfully ...
1
vote
0answers
21 views

Migration executes from drush but not from UI

I have a list of migrations (custom ones but following the guidelines). The migrations have no problems being executed from console with drush mim but if I try to execute them from the migrations UI I ...
0
votes
1answer
27 views

Custom Drush command and Settigns::get(), Config::get()

how can I access site configuration when in Drush command? Global variable $config === null and when I use Config::get('key'), I get Error: Using $this when not in object context in Drupal\Core\...
1
vote
0answers
21 views

Start migration via rest or from a button within a view

I have a bunch of migrations that update a bunch of nodes. I want to automate the process and also be able to rollback / add / update specific nodes for specific migrations. Basically I need a ...
0
votes
1answer
43 views

Drupal 8 url after installation using drush site-install

I used Composer to download and install Drupal 8.8.1 on Linux and used drush site:install command for setup. Only the following lines/messages were shown after I entered drush site:install command. ...
-1
votes
1answer
37 views

What are the differences between Drush 9 and 10

We are using Drupal 8.8 with Drush 9. What are the main risks and benefits of upgrading to Drush 10? The official release description is rather vague.
0
votes
0answers
31 views

Drush says “DB credentials are invalid,” but my credentials in my settings-local.php are valid

If I run drush cc all or drush --root=/path/to/my/docroot cc all, I get... No Drupal site found, only 'drush' cache was cleared. If I run drush -vd, in amongst the output I see... DB ...
1
vote
1answer
62 views

How should I setup Drush to work with Drupal 8.8.1 using Git Bash on Windows 10 [closed]

I am using a Windows computer and using Git Bash, I just installed a new 8.8.1 site and also did 'composer require drush/drush'. I can't use Drush from anywhere so I am wondering if I should have ...
1
vote
0answers
198 views

How may I fix this warning message when executing Drush commands? [closed]

I reinstalled drush 8.0.0 with the command $ composer global require drush/drush:8.* but I get this message that keeps coming up. count (): Parameter must be an array or an object that implements ...
0
votes
0answers
39 views

Why are there no pending db updates when i reset system.schema entry?

I am confused about a few things to do with db updates. I have a messed up site caused by commerce and importing configuration. I want to re-run the commerce updates to ensure that they were done (as ...
-2
votes
1answer
49 views

How do I create the database tables?

I installed composer-Git and drush and was continuing with the installation of Drupal 8 from the command line. I read that you can create the database directly from drush, while in other parts I read ...
0
votes
1answer
138 views

Bootstrap failed

I have Drupal 8.8.1 and Drush 10.1.1, both installed with Composer. I'm running the following to update my site DB: $ drush updb In BootstrapHook.php line 32: Bootstrap failed. Run your command ...
0
votes
0answers
38 views

How can I force Drush to use PHP7 [duplicate]

I have PHP5.6 and PHP7.2 installed. "php" runs 5.6 and "php72" runs 7.2. For Drupal8, I want to run 7.2, which is fine when it's called from the webserver, but when I run drush it uses 5.6. I've ...
3
votes
1answer
51 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 ...
0
votes
1answer
32 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
0answers
38 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
1answer
40 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
1answer
49 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
38 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 ...
2
votes
0answers
59 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
56 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 ...
0
votes
0answers
63 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. ...
0
votes
0answers
19 views

Drush Connects to Wrong Database in Nested Site Directories

Drush is not connecting to the correct database in a nested site structure. What can I do to debug and fix? We have a website that consists of several nested Drupal installs/sites. I.E. The domain ...
-3
votes
1answer
48 views

How to login as any user with Drush

How do you login to a Drupal site if you do not have the password of the admin user or user 1 but still have access to the command line? Can I use drush to login to the Drupal site
0
votes
0answers
17 views

Back Up Migrate hangs and never completes

I am running into an issue where running drush bam-backup is never completing. It ran for about 18 hours and nothing happened.. The command works and completed on our staging server within about 45 ...
0
votes
0answers
35 views

drush cex re-creates files in config/sync while they already exist in module config folder

Having a config split which says that the location/configuration of the split/module is located under /sites/all/modules/custom/module/config/optional After it got imported with drush csim our_split ...
0
votes
0answers
33 views

Installing modules using UI vs Drush

I've been having quite a time trying to install Drupal Commerce using the UI on my Drupal 8 project. Lots of WSoD errors. I decided to try again installing using Drush and everything worked like a ...
0
votes
1answer
36 views

Moving “vendor/” in a different location and symlinking it breaks drush

I'd like to have vendor/ moved out of the Drupal 8 root and symlink it. Composer doesn't have any problem with that (all commands work) but when I issue any drush command, even drush --version, it ...
0
votes
0answers
61 views

Drush fails on D8 sites but works on D7 sites - PHP Version Issue?

We have a CentOS Linux 7 server with Plesk running several Drupal 7 and a few Drupal 8 sites. Drush commands work fine on all D7 sites, but on all D8 sites any Drush command returns: PHP Parse ...
0
votes
0answers
54 views

How do I fix this version error?

I have a Drupal 8 site that has been installed with Composer. Last week, I updated Search API 1.14 and Search API Solr 3.7. The module are in the good version, but when I run drush updatedb, the ...
0
votes
1answer
29 views

InvalidArgumentException: The specified translation (fr) cannot be removed

Configurations: "drupal/core": "8.4.3", "acquia/blt": "8.9.10", "acquia/lightning": "2.2.5", I am trying to run migration of workbench moderation to content moderation on drupal core version 8.4.3, ...
-3
votes
2answers
68 views

How to decrypt the password? [closed]

I want to decrypt the password by drush in drupal . is there any way for decrypt it or i have to decrypt with some command or use php code to solve it?
0
votes
0answers
63 views

Drupal Commerce Post Update Error using Drush updb

Just update drupal and am trying to run drush updb but getting commerce post update errors. Module Update ID Type Description commerce_order 10 post-update ...
1
vote
0answers
133 views

Drush cannot connect to the database when updating

I am trying to update Drupal from version 8.7.5 to 8.7.7. I installed Drupal using composer and had a really old version of Drush that I had installed from apt-get. I uninstalled the old version and ...
4
votes
1answer
74 views

Drush or Drupal console command to list modules with security updates?

Is there a command for Drupal 8.x that shows available updates? I added forms_steps 1.1 that has and SA and a security update required in the Web UI which is saying to update to 1.2 I tried drush pm:...
1
vote
1answer
132 views

Updating without Composer

I've previously used Drush to update my Drupal-installations. They are installed without using Composer, and currently on version 8.7.3. However, when I try to use Drush (drush v8.1.15, using drush up)...
2
votes
1answer
59 views

Is there a way to list permissions for a given module?

Using Drush 9, I am trying to automate the creation of a role and I need to assign permissions to it. I see that I can use drush role-add-perm to do the assignment itself, but I can't find a command ...
0
votes
0answers
23 views

Drush migrate can't find database

I am running a local Drupal 8 site via Aquia DevDesktop. I enabled the Migrate modules: Migrate, Migrate Drupal, Migrate Drupal IU, Migrate Plus and Migrate Tools. When I run a migrate command in ...
2
votes
2answers
85 views

How can I exclude some entities in “drush entity:delete” command?

I want to delete all content of custom entity type except some specific items, I found drush entity:delete CUSTOM_TYPE command to delete all contents but couldn't exclude some items from deletion in ...
0
votes
0answers
39 views

D7 to D8 site migration and location of migration log

I'm using drush to migrate a D7 site to D8. I'm getting several errors in the drush migrate-import --all step. D8 site is installed using a bash script that executes: drush site-install standard -...
0
votes
0answers
278 views

How do I uninstall Drush 9 and install Drush 8?

I take it I can't manage Drupal 7 sites with drush 9 so I'm trying to install Drush 8. But first I have to remove 9. I tried composer global remove drush/drush but it gives errors: drush is not ...
2
votes
1answer
78 views

Xdebug not working over Drush

I'm using Drupal VM and the Drush Launcher (0.6.0). Whenever I try to Xdebug, PhpStorm notices, but it never actually reaches my Drush command. It stops at running Drush. This seems to have started ...
0
votes
0answers
57 views

Drush 9.x fatal error when running drush status (or any other drush command) [duplicate]

I'm running Drupal 7.67 on a Debian machine with PHP 7.2 and MySQL 5.6. My drupal installation is working perfectly fine with no warnings to find under /admin/reports/status. I've installed Drush 9.x ...
1
vote
2answers
271 views

Deployment using Composer replacing old style install but issues with legacy Drush

I took a Drupal project that was created awhile back via downloading a tar file and recreated it on a local via composer with drupal-project. The recommended files were committed to git (i.e. no ...
-1
votes
1answer
30 views

User password reset link leads to access denied page

Command: drush uli Output: http://default/user/reset/uid/..../...hash.../login The output URL normally logs you in automatically, but it gets takes to access denied error instead.

1 2 3 4 5 37