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

Driver not specified for this database connection: default

I have moved a drupal 9.5.9 from a staging server to another staging server. The site is working absolutely fine in the first staging server. But when I migrated the full website to the second server & run ./vendor/bin/drush cr to clear caches, it's…
0
votes
1 answer

'Package "drupal/core" is not installed' error even with local drush install

Apols, first time posting, not sure of protocol. I have similar problem to Package "drupal/core" is not installed Trying to install Drush. WAMP, PHP8, Windows 11 I have PATH to..\htdocs\drupal_test3\vendor\drush\drush in User variables in…
0
votes
1 answer

Package "drupal/core" is not installed

I have transfered locally (on a Wampserver with PHP 8.1.13 on Windows 10) a backup version of my existing Drupal 9 website. The files are on a subfolder C:/wamp64/www/BDV-dev. I have created a database ("bdv_dev") and I have edited settings.php to…
0
votes
0 answers

How can a Drupal module retrieve the list of Drush commands programmatically from within a Controller or .module file?

What is the way to programmatically retrieve the list of Drush commands defined by core or contributed modules in a custom Drupal 9 or Drupal 10 module? For example: I have a custom module and now I want to get the list of all the drush commands in…
0
votes
0 answers

how can i query to database using drush?

i installed drush using composer for my drupal9 project. but my drush cannot query to database. composer require drush/drush and used composer to install ckeditor iframe module composer require 'drupal/ckeditor_iframe but when i tried to enable…
0
votes
0 answers

issue enabling a drupal module using drush

I am facing issues enabling ckeditor iframe module in my drupal9 project. installed drush using composer composer require drush/drush and used composer to install ckeditor iframe module composer require 'drupal/ckeditor_iframe but when i tried to…
0
votes
0 answers

Trying to run drush on Drupal 10 in different PHP version returns composer platform check error

I'm trying to run drush for a Drupal 10 project in PHP 8.1 while default PHP still being set to 8.0. What I did was to create a drush81 which basically runs something like env DRUSH_PHP=/usr/bin/php8.1 /usr/bin/php8.1 vendor/bin/drush When I now…
mpj
  • 3
  • 4
0
votes
0 answers

error during running drush for drupal 9.4.8 on docker linux

am trying to run a drupal project using drush on linux docker ,this is a backend project we use json api to connect to frontend nextjs. once i use any drush comman it give me this error : [warning]…
mmantach
  • 148
  • 10
0
votes
0 answers

Drupal 9, site url with port

I'm using drupal 9.4.5 on local url https://site.at:4430/ My problem is' that after going to https://site.at:4430/user/ it redirects me to https://site.at/user/login Why it's losing port number from url ? Drupal 9 don't have $base_url config so how…
IProSoft
  • 173
  • 1
  • 8
0
votes
0 answers

Trouble making a drupal drush site-install through docker exec

I am trying to develop an automatic Drupal installer which creates an already configured Drupal docker container ready to be used with one single command execution. In order to achieve this, I have this docker-compose.yml: version: "3" services: …
pabpazjim
  • 13
  • 2
0
votes
1 answer

Error: Class not found in include_once() in Drupal 7

In doing a module upgrade, I had set the minimum PHP version too high, so when the hook_update functions ran, I got the following error. Drush command terminated abnormally due to an unrecoverable error. …
jgreep
  • 2,111
  • 4
  • 23
  • 31
0
votes
1 answer

Updated Drupal via Drush up command. Now I have a Server 500 error

I have a Drupal install on my local machine. Ran Drush up command to update the core files. Now I just get a Server 500 error. Before I ran drush up, my drupal installation folders permissions looked like: drwxr-xr-x 27 uName staff 918 ... After…
Chris
  • 4,762
  • 3
  • 44
  • 79
0
votes
2 answers

Drupal 9 upgrade from 8: Drush overwrites database namespace value from settings.php

I am in the last stages of an update from drupal 8 to 9 using composer and drush. I am at the stage of running the database update. However: vendor/bin/drush updatedb:status fails with Error: Class 'Drupal\mysql\Driver\Database\mysql\Connection'…
Paul P
  • 1
  • 3
0
votes
1 answer

Drush in ddev returns BadRequestHttpException

When I try and run any drush commands within ddev (even just drush itself), I get a BadRequestHttpException. My drush version is 11.0.9 . I have tried ddev restart, ddev stop/start, and ddev delete; all have the same outcome. I ran ddev composer…
PartyHatPanda
  • 712
  • 8
  • 14
0
votes
0 answers

Python unable to capture errors with carriage return output

So I'm trying to capture the output from drush via python. The main problem is that when drush fails in a task (e.g. unable to make a select) it gives an output in non standard format. I want to control this in order to put in on a loop and then if…