Right way to update a drupal distribution?

by chefnelone   Last Updated October 22, 2017 07:07 AM

I have a site which is a Commerce Kickstart distribution.

My distribution version is 7.x-2.0-rc1 and now the 7.x-2.0-rc2 version is available.

How do I update a distribution? I tried these method (both failed...)

1) I follow the update standar process using the drupal ui. I get this error message:

>     Notice: Undefined index: version_major in update_calculate_project_update_status() (line 595 of
> /Applications/MAMP/htdocs/mySite.com/modules/update/update.compare.inc).
>     Downloading updates failed:
>     commerce_kickstart-7.x-2.0-rc2-core.tar.gz does not contain any .info files.
>     Notice: Undefined index: version_major in update_calculate_project_update_status() (line 595 of
> /Applications/MAMP/htdocs/mySite.com/modules/update/update.compare.inc).

2) I downloaded the distribution and replace the folder mysite.com/profiles/commerce_kickstart This didn't work neither.

┬┐Which is the right way to to do this?

Answers 4

You should try it with drush.

drush dl commerce_kickstart
drush updatedb -y

(I have not tried it for commerce kickstart; I just got the answer on drupal.org.)

November 02, 2012 12:14 PM

Commerce Kickstart has a documentation page explaining how to install or update the distribution: http://www.drupalcommerce.org/commerce-kickstart-2/install. It is linked from the project page on drupal.org.

The updater inside Drupal can't update distributions (or Drupal core itself), so it can't work for Kickstart.

Bojan Zivanovic
Bojan Zivanovic
November 10, 2012 19:21 PM

Although "drush pm-download" should work, there is an initiative to have this work with "drush pm-updatecode" as well. See the issue on Github Drush up should update contrib profiles as well for details.

At the time of this writing, there's nothing available for use, but hopefully there will be usable code soon. Feel free to contribute to the thread so that we can get this done faster.

May 14, 2014 17:36 PM

Eleven steps to upgrade a Drupal 7 distribution:

  1. Backup and/or Test locally
  2. Read the Release Notes
  3. Maintenance / Off-line Mode
  4. Copy Sites Folder
  5. Delete Existing Files
  6. Downloading Updated Distribution Code
  7. Restore Sites Folder
  8. Run Updates
  9. Revert Features
  10. Clear Cache
  11. Disable Maintenance Mode / Go On-line

Source and details into this official documentation at https://www.drupal.org/docs/7/distributions/maintaining-sites-built-with-distributions#update-distribution

October 22, 2017 06:30 AM

Related Questions