I tried updating Drush to the latest version, 5.0. When I then try to run a "drush quickstart-create" using the d7.make file that comes with Quickstart, I get the following error mid-way through the creation process

Fatal error: Call to undefined function drush_backend_invoke() in /home/quickstart/quickstart/drush/quickstart.inc on line 225

CommentFileSizeAuthor
#2 quickstart-1511728-2.patch3.83 KBtraviscarden

Comments

Sean Buscay’s picture

Hello Matt.

The function:

drush_backend_invoke

has been deprecated in favor of:

drush_invoke_process

See: http://drupalcontrib.org/api/drupal/contributions%21drush%21includes%21c...

Please see this gist for an update to the quickstart.inc file to make it work with Drush 5:

https://gist.github.com/2379407

I have replaced instances of drush_backend_invoke with drush_invoke_process

I have tested the code and it worked for this command with d6 and d7 make files:

drush quickstart-create all --domain=example.dev --makefile=/home/quickstart/jenkins/drupal-jenkins/makefiles/default.make --account-name=admin --account-pass=admin --account-mail=mail@quickstart.dev --site-name=DrupalSite --site-mail=mail@quickstart.dev --sites-subdir=default

The code in the gist can use more testing, so please let me know how it worked for you. Also, I am not sure the integrate = TRUE param needs set.

I referenced this thread when changing the quickstart file:

http://drupal.org/node/1152908

traviscarden’s picture

Title: Updating to Drush 5 results in a fatal error when running quickstart-create » Make quickstart-create compatible with Drush 5
Category: bug » feature
Status: Active » Needs review
StatusFileSize
new3.83 KB

Good job, @Sean Buscay. It works for me. Here's a patch.

Sean Buscay’s picture

Michael. Should we coordinate to get the patch in before building a the next LTS?

mike stewart’s picture

Assigned: Unassigned » mike stewart

Reviewing

mike stewart’s picture

Status: Needs review » Fixed

Tested patch. Works as stated. Added to 7.x-2.x branch preparing for Quickstart 2 (Image not released)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

elvis2’s picture

Just another confirmation that #2 worked for me.

Thanks!

elvis2’s picture

Issue summary: View changes

Updated issue summary.