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
1answer
44 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 ...
-2
votes
0answers
31 views

Drush corrupts site [closed]

When using the drush command that makes a change to Drupal it is corrupting my Drupal 9 site. I have been using it steadily and think it may be a result of being updated. Any help would be GREATLY ...
-1
votes
1answer
210 views

Is it possible to update/remove/install 1 package with composer without updating everything?

I have seen a few posts answering this and saying that "composer require package" or "composer update package" will do this; but absolutely everything i do with composer attempts to update everything ...
1
vote
2answers
377 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' => '...
2
votes
1answer
597 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
28 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 ...
3
votes
1answer
600 views

Is it normal that a site changes to maintenance mode during a module update?

I have created a custom module with a .install file, which includes some hook_update_N() hooks, used to update existing nodes. Whenever I run drush updb, the site automatically enters maintenance mode ...
0
votes
1answer
345 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
0answers
34 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
31 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 ...
1
vote
1answer
28 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
15 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
29 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 ...
1
vote
1answer
725 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 ...
8
votes
4answers
5k views

Drupal 8, clear specific cache

In Drupal 8 we have the command drush cr which is the new version of the deprecated drush cc all. However we had drush cc menu and some more specific cache clear commands. If I try to execute them, I ...
0
votes
0answers
17 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
62 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: ...
2
votes
1answer
1k views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
0
votes
1answer
822 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 [...
4
votes
1answer
367 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 ...
-1
votes
0answers
57 views

'Drush cr' returns Symfony error

When I run 'drush cr', I get the following: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an instance of Symfony\...
0
votes
0answers
20 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 ...
2
votes
1answer
1k 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
355 views

Drush Hangs on wget but wget Works

Every drush command I run hangs on wget. However, if I run wget outside of drush, it works just fine. I am behind an http proxy and suspect that's factoring into the problem. I don't understand why ...
1
vote
1answer
51 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
547 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 ...
0
votes
1answer
43 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
1answer
425 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) ...
0
votes
1answer
421 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
371 views

Call to undefined function variable_get()

I have an ansible script that transfers a production database to my devel server, then runs a few Drush commands to prepare it (e.g. updating the filesystem settings, clearing the cache). A more ...
0
votes
0answers
38 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 ...
1
vote
1answer
335 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 ...
1
vote
2answers
601 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 ...
3
votes
1answer
832 views

Drush en failing

I was trying to install some modules via Drush 9 (9.2.3) on a Drupal 8 (8.5.3) site and I keep seeing the following. [error] Unable to install modules devel due to missing modules devel. [error] ...
2
votes
2answers
553 views

Drush rsync permission woes (files directory)

I'm rsyncing just the files directory (rest of the site is done through git) from my local Ubuntu setup to my centOS server. It worked at least (thankfully), but produced a ton of errors. First it ...
0
votes
2answers
1k 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 ...
2
votes
3answers
4k 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 ➜ ...
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
52 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
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
524 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 ...
4
votes
2answers
743 views

Pitfalls when updating a site without entering maintenance mode?

Assuming there are no module updates that require doing a database update, if it's just an update to a newer minor release of Drupal core, as well as of contrib and custom modules, what potential ...
0
votes
2answers
1k 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
1answer
683 views

Which alias do I use to run it with another PHP version?

The Server available for our new Drupal project uses an old PHP CLI Version by default. But I have setup an alias in .bash_profile like so: alias php7=/path/to/php7 and that is working fine. I would ...
1
vote
1answer
35 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 ...
0
votes
0answers
20 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 ...
4
votes
3answers
7k views

How to get one time login for all the users?

I want to send one time login for all the users, So I am using drush uli and getting link like: http://html/user/reset/1/1509979615/VBPx_FMfKeJUEt1moVcsSQGUMX_tFUSYEdEfRlmq7eA So if the user 5 ...
2
votes
1answer
37 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 ...
1
vote
2answers
745 views

Update website from 8.0.0 to 8.6.1

I'm pretty new to Drupal and I'm trying to update a website from 8.0.0 to 8.6.1. I've followed the guide here: https://www.drupal.org/docs/8/update/update-core-via-composer The composer part went ...
0
votes
1answer
863 views

How to fix drush issue “Could not bootstrap at phase 5”?

I installed drush via Composer. I am using drush 9.5.2 with Drupal 8.6.4. I mention that everything is fine on local. However, in a docker instance in GitLab CI, when I execute vendor/bin/drush ...

1
2 3 4 5
38