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

Querying a multisite for all webforms using the file upload component

We recently had a security breach and those making the decision opted to remove the capability of end users to create the file upload component. What I am hoping to do is two-fold: 1.) Use drush sql-...
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 ...
2
votes
4answers
3k views

How can I use Drush in a project installed with Composer?

I have installed Drupal 8.5 using composer create-project drupal-composer/drupal-project:8.x-dev my_site_name_dir --stability dev --no-interaction. This command installs many files. I found drush-...
1
vote
1answer
84 views

How to update Drupal custom module after changing .install file

I am working on a pre-created Drupal 8 project that has a custom module called CCA(named out of project title). I have done the below update in the .install file to add a new column to the backend via ...
1
vote
1answer
845 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 ...
1
vote
2answers
348 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"...
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) ...
1
vote
0answers
15 views

Drush 10, Drupal 9, views-bulk-operations:execute using entity:delete_action:node seems to work but won't save its changes

I'm trying a command: drush -vvv views-bulk-operations:execute -d deleteme_content entity:delete_action:node where deleteme_content is a View with translations of entities that I want to delete. The ...
0
votes
1answer
857 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 [...
1
vote
0answers
30 views

“Drupal root not found. Pass --root or a @siteAlias in order to see Drupal-specific commands”

I have multiple sites inside the same htdocs directory. In one, I removed all the folders except vendor under Web. Now drush will not work (it worked before I moved the folders). But now, it cannot ...
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
358 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 ...
12
votes
5answers
33k views

Drush command not found after Drush completely installed

I installed Drush 8 with composer. composer require drush/drush:~8 Unfortunately, error drush command not found after Drush completely installed. Why's the drush command can't be use? Installing ...
13
votes
8answers
6k views

Drush does not acknowledge release of new core update

I am trying to update my drupal 7.31 core to 7.32 via Drush. I ran the following commands $ drush pm-releases Project Release Date Status drupal 7.x-dev ...
9
votes
4answers
12k views

How can I change theme?

I tried drush disable theme-name and afterwards drush enable theme-name, but it didn't work. How do you change theme with Drush?
0
votes
0answers
35 views

“Error: Allowed memory size issue”

I have Drush installed on my Inmotion hosting server. For one Drupal 7 site, it works just fine but for the other one, which is nearly identical, it doesn't work so well. Some commands it allows (like ...
0
votes
1answer
434 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 ...
2
votes
2answers
566 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
1answer
550 views

How can I prevent some configuration settings getting overwritten?

I tell drush this: drush @live cim --skip-modules=system,swiftmailer and Drush replies with this: Collection Config Operation swiftmailer.transport ...
1
vote
3answers
491 views

Drupal installed with Drush doesn't display home page

I installed Drupal with Drush and it all works fine and the welcome page appears as well. But when I try to log in (with whatever account) it shows me the: "Object not found! The requested URL was not ...
0
votes
1answer
1k views

“PHP Fatal error: Call to undefined method Consolidation\AnnotatedCommand\Hooks\HookManager::getHookOptions()”

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 ...
0
votes
1answer
332 views

Error when uploading file through Drush on S3 volume

I am using Amazon S3 volume to store the node's attachment. I keep having the following message: file_put_contents(public:///.htaccess): failed to open stream: "DrupalPublicStreamWrapper::stream_open"...
0
votes
1answer
47 views

Is there any way to capture only the updates from “drush cex”?

I did a cex to "reset" my config being exported. I then made a bunch of changes to a bundle. Now when I do a new cex I see only the yml files containing my most recent changes. Is there any ...
1
vote
1answer
29 views

“drush cc” fails

Does anyone know why Drush doesn't recognize the Drupal 7 installation when I run drush cache:clear? It gives me the following error message. Command cache-rebuild requires Drupal core version 8+ to ...
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
2answers
754 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
711 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
533 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 ...
0
votes
1answer
1k 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 ...
0
votes
0answers
36 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
1answer
491 views

Drush make unable to determine mime type for js

On every .js library that needs to be downloaded, I keep getting errors like: https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js. Unable to determine mime type for jquery-ui.min....
1
vote
1answer
718 views

Is it possible to use drush to save a theme setting?

I need to set a theme setting via a scripting mechanism (specifically phing). Is it possible to use drush to set a very specific theme setting, without passing JSON? drush vset {theme_setting} {...
2
votes
1answer
91 views

Is it possible to set a single member of a complex-variable inside the variable table

I want to use Drush vset to modify a subset of values stored in the 'variable' table's theme_themeName_settings record. I've found references to vget and vset but all I've found so far is for the ...
2
votes
1answer
388 views

Why is the --uri option needed to return absolute URLs?

I want to execute a View and export the JSON file to the files directory. I am using Views Data Export and VDE drush add-on modules. My view has a file/PDF field and I want to provide a direct link to ...
0
votes
0answers
88 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 ...
1
vote
1answer
874 views

Why do I get “Command pm-disable needs a higher bootstrap level to run”?

Running drush dis varnish in the Drupal directory gives give me this message. Command pm-disable needs a higher bootstrap level to run. Running drush --debug dis varnish -y gives the following ...
1
vote
1answer
1k views

Config import constantly showing configs to import

Recently after doing a config import via drush (drush cim sync), the config files don't seem to import properly, as the files are listed after a supposed successful import. (and doing a cex sync shows ...
3
votes
2answers
120 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
3answers
590 views

Why doesn't my watchdog() function run when I execute my custom module from Drush

I have a custom module that performs an import from an xml file. It can be invoked two different ways. From a menu callback or a custom drush command. The import works fine and all of it's many ...
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
34 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 [...
2
votes
1answer
546 views

drush perm-grant gives “The drush command 'perm-grant' could not be found”

I am using drush -u 15 perm-grant --roles="site administrator" but the command returns: The drush command 'perm-grant' could not be found. any ideas about that? according this documentation the ...
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?
0
votes
0answers
36 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 ...
2
votes
1answer
33 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 ...
0
votes
2answers
345 views

Drush cc gives only two options even when I am in root folder

I am working with drupal 8, MAMP version 3.5, and drush version 8.1.3. I have installed drush globally and when I enter drush st it gives me complete information and shows that drush is installed but ...
1
vote
2answers
340 views

Upgraded Drupal 7.37 to 7.38 using Drush and its not working. update needs a higher bootstrap level to run - Error

I am new to Drupal. I am reading a book called Definitive Guide to Drupal 7. I had installed Drush on Windows 7 with Git as well. It was working last week. Since 7.38 is released I tried to ...
2
votes
2answers
2k views

Install Drush on shared hosting with SSH access?

I have SSH access on shared hosting and I followed this guide to install the composer: https://getcomposer.org/download/ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php -...
-3
votes
1answer
178 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 ...
4
votes
2answers
3k views

How can I execute Drush commands programmatically?

I'm working on a Drupal 8 site, and part of the requirement is giving the client a page where they can click a button to do a particular task. I am able to do this using a Drush command from the ...

1
2 3 4 5
39