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
20 views

How to get Drush to be able to query the DB?

I am getting the following error trying to run Drush on Win10, WSL2, and DDev. I can run other Drush commands, but not all of them. How do I fix it? Command self-update was not found. Drush was unable ...
0
votes
0answers
64 views

Issues with Drush 10.3.5 version in Ubuntu 20.04

I installed Drush 10.3.5 version via composer in Drupal 9.0.7 but I am getting a website error as follows after I ran command drush cache-rebuild. I can not access the admin page as well. The website ...
3
votes
2answers
104 views

How can I export only one paragraph type, the fields, the form settings and the display settings?

Some days ago I've exported and imported a full configuration with drush cex and drush cim. What are the steps to export 1 paragraph type including the fields, form settings, display settings etc ... ...
0
votes
0answers
18 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
1answer
29 views

How do I generate-content of a particular type with drush 9.x+

root@0a581055a6ad:/opt/drupal# drush genc 10 --types=article The "--types" option does not exist. devel-generate:content [--kill] [--bundles [BUNDLES]] [--authors [AUTHORS]] [--feedback [...
0
votes
0answers
34 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
25 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?
2
votes
1answer
31 views

Drush download, what port does it use?

I work on a Drupal 7 intranet site for a large company. The firewall on the server it is housed on currently does not allow any access to the Internet. I've been upgrading Drupal core and modules by ...
-4
votes
1answer
38 views

Why is drush dl <module_name> removed and how to use composer properly to download modules via the command line now? [closed]

Sorry but I'm a bit out dated on the new composer methods of installing modules. I was used to installing modules via dursh dl webform, but now it seems that we require to use composer require drupal/...
-3
votes
1answer
162 views

It's 2020, What is the best way to install Drupal 8 on a brand new install of Ubuntu 20.04 server? [closed]

It's been awhile since I worked on a Drupal 8 site. I have a freshly installed Ubuntu 20.04 server. Is there a simple one liner or script to install Drupal 8 now? Is drush still used or do people use ...
0
votes
0answers
25 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
30 views

How do I update an old project?

I have been tasked with updating my code shop's long-abandoned Drupal 7 codebase to the most recent Drupal core, in order to bring in the latest security fixes (it's currently using v7.67). But all ...
0
votes
1answer
27 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 ...
1
vote
1answer
30 views

How do I set a Boolean config variable to false?

I can't set a boolean config value to FALSE with drush. I'm using Drush 8.9.4. pk@DC:~/$ lando drush config-set advagg.settings enabled 0 -y // Do you want to update enabled key in advagg.settings ...
1
vote
1answer
14 views

Replacement for _drush_file_private_path()

I'm trying to get File Permissions working in Drupal 8.9 with Drush 9. The old code calls _drush_file_private_path(), which doesn't exist anymore, and _drush_file_public_path() is probably a no-go as ...
1
vote
0answers
28 views

Database dump without revisions?

Are there methods to exclude revision data in a database dump? The purpose would be to reduce the file size for developers that want a db dump for local development. I know that drush sql-dump has an ...
1
vote
0answers
59 views

PHP Fatal error: Class 'Drush\Commands\DrushCommands' not found

I am trying to migrate data using csv source to Drupal 8 installation using Drush and Drupal Migrate Tools. I am able to execute all the drush commands including the one to check the migration status (...
0
votes
1answer
23 views

drush arr (drush archive-restore) says: Missing required argument: file

I have been requested, against my better advice, to try to ensure that a Drupal site for an associated part of our organisation is up to date, although the site developers left no admin maintenance ...
0
votes
1answer
40 views

The commerce_product.field_produit_labels field needs to be updated

almost every time I delete a field in my product types I get this message popping up in my dashboard : ENTITY/FIELD DEFINITIONS Mismatched entity and/or field definitions The following changes were ...
0
votes
2answers
70 views

Hook on drush cache:rebuild

Is it possible to hook on drush cache:rebuild before the command is executed? I've seen some hooks for afterwards, but I am trying to compile my less files into css before cache the is rebuild. I'd be ...
0
votes
1answer
35 views

Why will drupal not recognize my configuration?

I am trying to import configuration from one site to another. I have copied the directory full of config files from an older site to my new site. When I try to run Drush cim, the files all show up ...
1
vote
1answer
33 views

user:role:add for email addresses in Drush 9/10?

In Drush 8, you can add a role to an email address like this: drush user-add-role "power user" --mail=penguin@example.com In Drush 9, the --mail option no longer exists for user:role:add. ...
0
votes
0answers
35 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 (...
-1
votes
1answer
38 views

How do I fix the error given from “drush en nodejs -y”?

When I run drush en nodejs -y, I get this error. In PmCommands.php line 247: Unable to install modules nodejs due to missing modules nodejs. How do I fix that error? I am using Drush 10.2.2 and ...
0
votes
0answers
45 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 ...
2
votes
1answer
39 views

How can I suppress the “connection to @remote closed” message?

I'm running Drush 10 and have set up site aliases for my local and the remote Drupal site. When I run the following command for my local alias: drush @local dd This returns: var/www/html/abc But ...
0
votes
0answers
20 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
2answers
69 views

Is there a cli equivalent of the web ui with underspecification?

background I run drush cget markdown.settings and see: dependencies: module: - markdown parser: id: michelf/php-markdown-extra render_strategy: type: none settings: ...
0
votes
0answers
24 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 ...
3
votes
1answer
85 views

How do I replace drush_set_error()?

Just updating a module for Drupal 9 and Drush 10 and drush_set_error() no longer appears as a function in the Drush code (as far as I can see). What should I be using instead?
0
votes
1answer
119 views

Exception: In BootstrapHook.php line 32, how can I consistently resolve this?

My build process is (mostly working), but sometimes when I swap out to a new project, I am winding up with an error which looks like the output below. I have found this error message extremely ...
0
votes
0answers
53 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
31 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
109 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
21 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 ...
1
vote
1answer
50 views

Workaround for missing migrate-deregister command in Drush 10.3.1?

I'm trying to migrate and upgrade a site from Drupal 7 to Drupal 8 (version 8.9.1). The migration cannot be accomplished with the UI, since I need to make some changes to the content types and ...
1
vote
0answers
30 views

Unable to set author and created time when translating node programmatically

I am adding translation to a node programmatically using a script which I run with drush scr. Everything works as far as adding translation and copying all the fields over. However, I am not able to ...
0
votes
2answers
77 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 ...
2
votes
1answer
38 views

How to ensure successful update after system failure during updb causing the site to remain in maintenance mode?

Running drush updb to upgrade drupal core or other modules, puts the site in maintenance mode. I recently faced an issue (probably an edge case) where the site was stuck in maintenance mode after ...
0
votes
1answer
41 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
43 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
146 views

'[warning] Drush command terminated abnormally.'

Drush won't run at the command line in any Drupal 8 subdomain installation: [warning] Drush command terminated abnormally. I am using GreenGeeks hosting for several Drupal 8.8.7 sites, one 8.8.6 site, ...
1
vote
2answers
277 views

How to overcome error caused by non-existent service “entity.manager”?

I am running drush first time in my Drupal 9 project and getting the following error In CheckExceptionOnInvalidReferenceBehaviorPass.php line 86: The service "sanitize.userfields.commands"...
1
vote
1answer
67 views

How can I upgrade to core 9?

I have Drupal 8.8.* and I would like to migrate to Drupal 9 using Drush 8. I know, we can use composer however I just wanted to confirm, whether we can do by using Drush command? I tried using Drush ...
1
vote
1answer
23 views

How can I use config-set to “unset” the value of a variable?

I am trying to use config-set to "unset" a variable. In this case, I have a media image field that has required crop types on it, which is breaking my behat tests, so I want to use drush to ...
0
votes
0answers
81 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
1answer
27 views

Cannot export theme settings to the .info file

I am using Drupal 7. After modifying a setting for my theme in the Appearance menu, I get the following alert message on my site's homepage: The settings for this theme are currently served from a ...
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
110 views

Drush database issue

I have encountered an issue with Drush. I am missing a number of commands. When running a command with --debug I am told [Symfony\Component\Console\Exception\CommandNotFoundException] Command rq was ...
0
votes
0answers
70 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 ...

1
2 3 4 5
38