Questions tagged [drush]
Use it for questions about the command line shell and Unix scripting interface for Drupal (a.k.a. Drush).
404
questions with no upvoted or accepted answers
0
votes
0answers
23 views
Drush not picking up rsync parameters from site alias
In self.yml I've got two site aliases defined like this:
dev:
root: /var/www/example-dev/web
uri: https://dev.example.co.uk
paths:
public: 'sites/default/files'
private: '../private'
...
0
votes
0answers
57 views
Drush can't bootstrap sites
I have an Ubuntu 18.04 server where I have one Drupal 8 and two Drupal 7 sites. I have installed drush 8.4.5 which works great for the Drupal 8 site but on the 7 ones it can't bootstrap.
After some ...
0
votes
0answers
27 views
drush_backend_invoke_concurrent() alternatives
Release notes for Drush 10 claim that most of the Drush 9 commands will still run on Drush 10. So I wonder what is the alternative for drush_backend_invoke_concurrent() from backend.inc?
0
votes
0answers
40 views
Drush Launcher looking for Drush in public_html when using updb
I have a drupal 8 website up and running on a server. On this server I use the Drush Launcher to work with Drush on my site.
For some reason the Drush command drush updb doesn't work I get the ...
0
votes
1answer
28 views
It doesn't work without public_html symlink
I have just updated to Ubuntu 20.04 so have a fresh install of everything.
I have a working Drupal 7 site I'll call mysite.
I have Drush-launcher installed globally at /usr/local/bin/drush
The file ...
0
votes
1answer
217 views
Drush failing to load drush.php file
I have Drupal 8 project on my local machine, which is set up with composer and I got drush included. When I'm in project root I can call drush like:
vendor/bin/drush -v
And that work well (...
0
votes
0answers
63 views
PHP Segfault error when running a migration
I ran drush migrate-upgrade on a Drupal 8 fresh installed site, and it generated the migrations (from Drupal 7 to Drupal 8).
After that, I tried to run drush mim upgrade_d7_user (after roles and ...
0
votes
0answers
27 views
migration plugin works but fail to migrate in drupal database
I try to migrate old blog article to a drupal website here is my migration class :
class Article extends SqlBase {
/**
*{@inheritDoc}
*/
public function query() {
$query = $this->...
0
votes
0answers
26 views
Multi site Image cache issue
actually i am new to drupal and i have migrated my drupal site from 8 to 9. This site is multi site, every thing is working fine but the issue is related to the images. When i cleared the cache using ...
0
votes
0answers
108 views
Drush cr is responding with Bootstrap Failed
I have a Drupal 8.9 site I built on my development server. I've now copied it over to my production server (Ubuntu 16) and set up the database. I need to run drush cr to finish the process but when I ...
0
votes
0answers
32 views
How do I change local site alias?
I've recently upgraded from Drush 8 to Drush 9. In Drush 8, I use drush @project.local.sitename status; in Drush 9, I have to run drush @project-local.sitename status.
How can I replace the hyphen ...
0
votes
0answers
279 views
Drush commands are not working in Xampp on Windows
In Xampp 2 Drupal sites are there.one is drupal 7.0 and another one is drupal 8.8.7.
Drush version is 8.3.5, PHP version is 7.2.22 ,composer 1.9.2
When I try enabling module in Drupal 7.0
drush en ...
0
votes
0answers
24 views
Updated to 8.9.1 getting 'content_moderation_state plugin does not exist' message
Updated a drupal project to 8.9.1, all seemed to go smoothly. After i run drush updb and I got the following message. Anyone know what's this about and how to resolve? All other update were run ...
0
votes
2answers
174 views
Problem with drush and site alias (Drupal 8.8.6 / Drush 10.3.1)
I've installed two drupal sites on a share hosting (OVH), in two folders :
dev.www
www
I've installed drush 10.3.1 and create two alias, but when I try use alias (drush @dev status), I have the ...
0
votes
1answer
48 views
Can't find migration when running drush migration:status
I'm trying a tutorial to migrate users data from a CSV file.
From here: https://u.group/thinking/drupal-8-csv-migration/
I've created a module as suggested. Here is the code:
/config/install/...
0
votes
0answers
69 views
How can I execute one Drush 10 installation from any of my different sites (NOT multi-site)?
What is the proper way to install Drush 10 if I have a domain and several independently installed subdomains like described below? I want to avoid multiple drush installs.
On my shared hosting account,...
0
votes
0answers
147 views
How to migrate content using migrate-manifest?
English is not my native language so please be patient.
I'm totally new to Drupal development so I was learning how to migrate from Drupal7 to Drupal8 due to some work necessities to test a POC, the ...
0
votes
0answers
8 views
Schedule a current state of a content to be publish is not working
I'm having some issues with drupal/core 8.7.7, when i crate a new content or use a content already published , i want to schedule that content to be changed from one state to another. ex:
But when i ...
0
votes
0answers
94 views
Drush on Acquia Dev Desktop is terribly slow
I'm running version 2, built Jan 9 2020, on a Windows 10 machine. I'm opening the command line via the dev desktop interface (via the small, black command line icon), and all drush commands run ...
0
votes
0answers
106 views
Running drush updb for a multisite alias is not working
I have a multisite enviroment and I'm trying to run drush updb and drush cim for the multisites using aliases.
To achieve this i created a wildcarded alias file like this in drush/sites:
alias.site....
0
votes
0answers
17 views
search-index with drush fails on field_collection error
I've been rebuilding my search index using "drush search-index" for the better part of the day. There have been a few odd errors that I have handled as I went along, making some fixes in the process ...
0
votes
0answers
69 views
Does drush stop events from firing and/or bypass event subscribers?
I'm running some migrations and have logic dependent on their Events
public static function getSubscribedEvents() {
$events[MigrateEvents::POST_IMPORT][] = ['onMigratePostImport'];
return $...
0
votes
0answers
27 views
Error using drush to generate YML file
I am attempting to use the Migrate File Entities to Media Entities module, https://www.drupal.org/project/migrate_file_to_media
I am running Drupal 8.7.10 and drush 9.7.2. in Acquia DevDesktop ver. 2....
0
votes
1answer
67 views
Use drush to install a module on all of the sites of a multisite at once
I have a Drupal 8 multisite, setup with 6 different sites. I want to install Admin Toolbar on all of them on my local dev environment (mamp / terminal / drush). I have downloaded that module using ...
0
votes
0answers
55 views
Could not initialize PECL extension even though memcached installed
I am migrating a site from one remote server to another. I have set up the new server will all the prerequisites installed memcached server and its extension too. But when I try to run drush cr I get ...
0
votes
0answers
38 views
I can't clone a project
I have a locally multi-site. Locally Drush works perfectly fine. But When I try to clone this project in different machine I get this error in Acquia Dev Desktop:
I also tried to run a Drush command ...
0
votes
0answers
73 views
How can I create a content type field?
How do i create a content type field using Drush or Drupal Console? I tried both ways but nothing seems to work. I am using Drush Commandline Tool 9.7.1 and Drupal Console version 1.9.4.
Drush: $ ...
0
votes
0answers
140 views
How can I change the site settings email using Drush?
Env: D8/drush-9.5.2
I need to use drush to change the site details (Home->Administration->Configuration->System)
Site name, Slogan, and Email address.
I found the configuration key by running: ...
0
votes
0answers
16 views
Using lock_acquire for Drush batch operation
I am trying to improve a batch function so that it uses lock_acquire(), in order to prevent users from trying to run a large batch if it is already running.
To do this, I try getting the lock in the ...
0
votes
1answer
92 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
41 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 ...
0
votes
0answers
62 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 ...
0
votes
1answer
250 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
86 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
112 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 ...
0
votes
0answers
95 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
37 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 ...
0
votes
0answers
68 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
124 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
92 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
0answers
33 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 ...
0
votes
0answers
757 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 ...
0
votes
0answers
241 views
Drush isn't connecting to my database
I have a Drupal install on a CentOS development server. Running drush from outside my web directory returns as you'd expect (a list of Drush commands).
Running drush from inside my web directory ...
0
votes
0answers
61 views
How can I create a user with a term reference field in a Behat test when using the Drush Driver
My Behat test has the following Given statement. (field_regions is a taxonomy reference field)
Given users:
| name | mail | roles | field_regions |
| Joe User | joe@...
0
votes
0answers
154 views
What does “The Language field needs to be updated.” mean?
It may be a stupid question, but I don't quite understand how to go around drush entity-updates from Drupal Version 8.7 on.
For example on /admin/reports/status, it says:
Textbox
The ...
0
votes
0answers
71 views
The drush command 'variable-get' could not be executed
Command variable-get requires Drupal core version 6 or 7 to run.
The drush command 'variable-get' could not be executed.
drush st
Drupal version : 8.7.3
Site URI ...
0
votes
0answers
97 views
Drush behaves strangely on Windows 10 with Acquia Dev Desktop
After having istalled drush via composer locally I had to make the following changes inside sites\default\settings.php for it to work:
Create the database connection array
$databases['default']['...
0
votes
0answers
40 views
Priority of aliases files for Drush
I have an installation with lando. On the project, we have a directory drush with an aliases file for the project. This file defines aliases with the root specific for the lando architecture.
In my ...
0
votes
0answers
106 views
Errors while updating core to latest version
I have a website I had worked on but never finished, last year. It is at version 8.5.4.
I've imported it (from a devdesktop environment) into a Docker/Docksal environment. At this point I can see a ...
0
votes
0answers
468 views
How to change the drush default timeout of 14400?
We face a major problem for our client.
To put it in context, this is a Drupal 8 with commerce that has a large number of products that come from a PIM. To be clearer, the products are not managed in ...