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

project/configuration sync from shell (not from ./admin)

With project/configuration (core 7.22 and configuration 7.x-2.0-alpha2), we can sync a new database to the exported .inc files via the admin gui, but need to be able to do it from drush. ...
0
votes
1answer
169 views

What is wrong with this drush command in Drupal 7 Ubercart 3 to delete orders in bulk via command line?

I am trying to delete my Ubercart 3 orders in bulk via the command line with just a one liner: for XX in {1..12}; do drush ev 'uc_order_delete($XX)' -v; done; It beats having to do it via the bulk ...
0
votes
1answer
425 views

Running drush sql-sync between linux drupal alias as source and windows drupal alias as target throws rsync:chgrp error

i can see from this post that rsync is trying to set group on the file which may not make sense for windows. The question is, how can i pass rsync options while running the sql-sync command as drush ...
0
votes
1answer
293 views

Whats wrong with my drush script when using sql?

Im running the following via drush scr $query = db_query('select node.nid AS nid from {node} node where (type="feed_item") AND (status="0") limit 1'); i am getting this error: WD php: ...
0
votes
1answer
183 views

drush core-config causes 'Permission denied'

When I use command as follow: drush core-config and then enter 1 a error displayed: sh:/etc/php.ini: Permission denied how to solve this problem?
0
votes
1answer
179 views

How can I get views_save_view($view) to return TRUE when using Drush?

I have a script that calls various views API functions, namely views_save_view() or $view->save(). When using Drush 5 to run the script, these functions return false. However, when I run these with ...
0
votes
1answer
538 views

Drush restore to proper folder level

Before working on a site, I take a quick dump of a site via drush arb --destination=/var/backup/latest.tgz --overwrite from the root level /var/www/html. However, on the rare occasion that I need to ...
0
votes
1answer
256 views

How do I install the Spark distribution using only Drush?

How do I fire up the Spark Distribution via a drush command?
0
votes
1answer
105 views

site created using drush arr failing with missing index.php

I am using drush archive to copy a live site to a test environment. The test environment is on my local machine, the live site is on a hosted platform. The arr command seems to complete successfully ...
0
votes
0answers
741 views

Crontab to trigger scripts with drush commands

I've read this question and the answers links through to Jenkins. Looked into it but was way over my head to install and set up. The other answer links to this page which talks about running cron ...
0
votes
1answer
239 views

Where to place drush in MAMP [closed]

I placed drush in MAMP folder outside of htdocs folder and downloaded drupal successfully but obviously to wrong folder. Where should drush be placed to have it work with drupal folder in htdocs ...
0
votes
1answer
91 views

How to retrieve data from set with drush_set_option() from within install profile

I've been messing around with trying to pass varabiles to an install profile based on a signup form, as descripbed in this post. I'm able to get the data out of the form and into drush using ...
0
votes
1answer
281 views

In an Aegir platform how do I change what modules drush enables when a site is created

So far I have successfully in setting up Aegir and seting up a number of Platforms using makefiles. Now I want to tinker with one of the platform by adding a number of modules and tweaking some ...
0
votes
2answers
2k views

user_login_finalize() logins the user, but I remain anonymous

I'm using user_login_finalize() in my code to login a user (right before the review page), and this works because I can see the log in drush watchdog-list. However, it only works behind the scenes: ...
0
votes
0answers
1k views

Drupal crash recovery - segmentation fault

A drupal 7 website I am developing is repeatingly crashing. After each crash, I can't access any further pages on the website, in any browser, until I restore the database from a backup and remove ...
0
votes
1answer
818 views

MIssing 'Drush configuration' and 'Php configuration' when running 'Drush status'

If a run the method 'drush status' in the terminal I see that the values for 'Drush configuration' and 'Php configuration' are missing. It give me not problem at all. But is this correct? Look the ...
0
votes
1answer
317 views

Why different available updates in Drush to admin/reports/updates?

e.g. in the GUI, I'm told (after running admin/reports/updates/update) that I can update 10 modules. But drush rf; drush up tells me that only three updates are available. Specific example: the GUI ...
0
votes
2answers
104 views

Running Drush on the server

I want to run Drush on a OpenSuse Linux Version 12.1 box 32-bit machine. I have a server admininistrator that takes care for the backend. What do I need to ask him, in order to get Drush running on ...
0
votes
1answer
832 views

Deploying to multiple hosts using Webistrano

We're using Webistrano to deploy our Drupal sites to testing and production. The recipe we're using is as follows: namespace :drupal do desc "symlink_files" task :symlink_files do ...
0
votes
1answer
295 views

Command line submit node

Previously I'm using combination of cURL and sed to submit to Drupal 6 website. It was very flexible but it will works if I submit very frequently. If I want to submit 2 posts in one week, it will ...
0
votes
1answer
42 views

How do I create a “platform” and “site” from CLI, using the drush extension provision

I'm trying to figure out how to use Provision to create new sites from the CLI. I tried looking at what commands Aegir normally passes to Provision when setting up a new platform and then a new site ...
0
votes
1answer
478 views

What steps do I need to take to use Drush Make on a Windows machine?

I have the Drush Windows installer. I download the Drush Make module and put it in the drush\commands folder. Still I don't have any luck with Drush Make on Windows.
0
votes
1answer
883 views

Drush, Views and Page Manager

I've got several custom modules I have written and they make liberal use of Views, Panels and the CTools page manager. I've exported the views, panels and page variants into the module code, and am ...
0
votes
2answers
35 views

Composer requirement

I have been installing/managing Drupal 8 sites without the use of Composer or Drush. Main reasons being that I'm not planning to have complex modules with dependencies and I'm comfortable to perform ...
0
votes
3answers
131 views

Error during config export

I have added one field in the content type. So when trying to export configuration it gives an error $ pwd $ /c/xampp/htdocs/Test/docroot/sites/testone.com $ ../../../vendor/bin/drush config:export -...
0
votes
2answers
898 views

Core doesn't update with Composer

We use commands: composer outdated drupal/* drupal/core 8.6.10 8.6.13 Drupal is an open source content management platform powering millions of websites and applications. It does show 8.6.13. We ...
0
votes
1answer
78 views

Drush 8.0.3 cannot update custom module [closed]

I have a few custom modules that updates are being served from a D6 site with the Feature Server (fserver) module. Before updating drush, the drush up command on a site would see there were updates ...
0
votes
1answer
89 views

Drush not installing correctly

I'm attempting to install Drush on a new system OSX 10.10.4. The process is no longer the simple one it used to be :( I've complied with the requirement to install via Composer (that was not small ...
0
votes
1answer
1k views

Drush rsync command failed: No such file or directory

I am new to use Drush. this following is my .drushrc.php file $aliases['server'] = array ( 'remote-host' => '162.243.78.240', 'remote-user' => 'root', ); $aliases["dxb"] = array ( '#name'...
0
votes
1answer
117 views

Upgrade Commerce Kickstart 1 site with drush

From http://www.drupalcommerce.org/blog/9072/updating-commerce-kickstart-2 I learned that it's possible to upgrade a CK2 site using drush. Is it possible to do a minor upgrade od CK1 using drush ...
0
votes
1answer
745 views

Drush cannot connect to mysql

I have a problem with Drush to enable or disable module. But downloading modules works perfect! However I want to use Drush in its full range. Yesterday, I saw my Drush would not succeed in ...
-1
votes
1answer
118 views

Is possible to transfer files with FTP? [closed]

I connected to a site using SSH with Drush. Is there a way to use FTP with Drush?
-1
votes
2answers
456 views

Is there a better way to install drush on Bluehost? [closed]

I registered Bluehost, because they are recommended by drupal and because I wanted shell access for drush. I tried to install drush, but got some problems. Bluehostforum.com doesn't seem to be online ...
-1
votes
1answer
136 views

How to change drush drupal folder

i install 3 drupal site without drush in xampp localhost in ubuntu and now install drush. how to use drush with 3 drupal local site??? first drupal site in dr7 folder second drupal site in drupal7 ...
-1
votes
2answers
36 views

Patch Status for 'cweagans/composer-patches'?

It seems that 'Drush Patch File' (https://bitbucket.org/davereid/drush-patchfile/src/master/) isn't compatible with Drush 9. It, however, has one important function - Patch Status - which enables ...
-1
votes
1answer
232 views

Where/how to install Drush when running multiple versions of Drupal

I use a Mac for Drupal development and am a long time user of Drush. Getting ready to develop a new Drupal 8 site and installed via "Option A" as described https://www.drupal.org/docs/develop/using-...
-1
votes
2answers
2k views

How do I set up PHP configuration?

I am running websites on my PC with following php5: /etc/php5/apache2/php.ini (this is what I can see when running phpinfo() command within website php code). How to set Drush, so it would use ...
-1
votes
1answer
276 views

Cygwin Drush throws error in Drupal folders [closed]

In my Windows machine I have installed Drush using Cygwin & PEAR. Though it runs fine when I run drush; shows me all the available commands but when I run any drush command inside a Drupal folder ...
-1
votes
1answer
71 views

Drush documentation

I'm curious if anyone else noticed how difficult it is to get drush working based on the available documentation? Drush is a great command line tool, and it's a pity that the official drush install ...
-1
votes
1answer
46 views

Downloading, extracting and deleting a Drupal archive all in one go [closed]

In a shared CentOS with Bash I ran under ~/public_html/example.com: composer require drupal/drupal The output was one dir and two files: vendor/ composer.json composer.lock That's not what I ...
-1
votes
1answer
400 views

Missing commands in drush 9.3 [closed]

I have installed drush 9 as dependency of my drupal 8 project as explained in: http://docs.drush.org/en/master/install/ cd ${D8_PROJECT} composer require drush/drush Then, I have installed drush ...
-1
votes
1answer
132 views

Migrating content type with different translations/languages

I'm currently migrating a specific content type that has 16,000 nodes with different translations (english, french and spanish). After entering commands drush ms. It's only showing only half what is ...
-1
votes
1answer
171 views

A database error is thrown, but mysql works

I am using Drupal 7.54, Drush version 8.1.10, and MySQL version 5.7.17 on Ubuntu 16.04. I mainly use drush for drush up to make sure my packages don't get too old. Last week, everything was working. ...
-1
votes
1answer
371 views

Drush cr command error's [duplicate]

I am using drush for drupal caches clear, module enable/disable and so more commands. My drush version is 5.4, it working fine for drupal 7 but now i creating new product in drupal 8. I am using same ...
-1
votes
2answers
159 views

How to bulk create many sites using one platform in Aegir

I a plan to use Aegir (part of a BOA server) to host many sales sites, one site for one product. I would like to know how to bulk-create 1000 sites using an existing platform in Aegir. This ...
-1
votes
1answer
2k views

Drush and Composer installed but I'm getting errors

Trying to use any drush command I get an error saying autoload.php won't load. It's in the vendor folder which is in the web root where I'm pretty sure it's supposed to be. It also has chmod +x ...
-1
votes
1answer
62 views

Git local repo in combination with Acquia Cloud Dev repo adding contributed modules with Drush

I try to add contributed modules to my local repo following this article. curl https://ftp.drupal.org/files/projects/admin_toolbar-8.x-1.14.tar.gz | tar fz Its not placing the .tar.gz file in my ...
-1
votes
1answer
387 views

Drush Make Non-existent project type on project metatags

I am attempting to stream line the drush module DL process and it works great. The Issue though is many modules are getting the error: Non-existent project type on project metatags I attempted to ...
-1
votes
1answer
26 views

User password reset link leads to access denied page

Command: drush uli Output: http://default/user/reset/uid/..../...hash.../login The output URL normally logs you in automatically, but it gets takes to access denied error instead.
-1
votes
1answer
79 views

Sql-sync issues with key length

I'm attempting to set up a new remote website for production, and push my development database to it. I've already rsync'ed the files, and set up a new settings.php for the remote site. However, when ...