I thought I'd help document/test upgrading the 7.x-2.x branch.

Trying to update this normally will result in fatal PHP errors and a gorgeous WSOD because of all the new .module's. So here's what I did to make it work.

BACKUP

  • Use the Backup & Migrate module to do a backup of your site. You may need to use PHPMyAdmin to manually restore the DB if things go wrong.
  • You may want to backup your sites/all/modules folder (or just the relevant modules). To do this, I usually issue the command "tar -zcvf /tmp/modules.tgz /[pathToDrupalRoot]/sites/all/modules". The command "tar zxvf modules.tgz" will untar/gzip.
  1. Upgrade File Entity normally. Run update.php to be clean.
  2. Before updating to the latest (Sept. 29th) media dev, disable all modules that require media.module. You can/should leave Media and Media Field enabled.
  3. Update to the latest dev
  4. Run update.php
  5. Enable previously disabled modules
  6. Run update.php
  7. Clear cache

Thanks for all the hard work!

Comments

franzkewd’s picture

Thanks for this info. It really helps.

Thanks to all for the hard work.

bensnyder’s picture

Title: Procedure for upgrading 7.x-2.x » 7.x-2.x UPGRADE PROCEDURE (Sept. 29, 2011)
Status: Active » Fixed

(Making title stick out a little more.)

aaron’s picture

awesome, thanks for the writeup! don't forget to back up your database as well; always important w/ cutting edge development.

minneapolisdan’s picture

Thanks. Also, it seems you need to update the File Entity module at the same time, or it won't work. http://drupal.org/project/file_entity

metakel’s picture

in my module list, the Description of the Media modules reads:

Required by: Drupal (Field type(s) in use - see Field list), Media Internet Sources (enabled), Media: YouTube (enabled)

I can disable Media Internet Sources and Media: Youtube, but what should I do with the field type in use? I have CCK which used Media, and there are lot of contents.

robby.griffin’s picture

You don't want to disable the media module, just media_internet and media_youtube. Then, with media and mediafield still enabled, download and install the new media module/folder in the order outlined in this article. If you follow those steps, your modules will all be updated and enabled at the end, and there is no need to destroy any fields you already have.

bensnyder’s picture

#6 is a great answer to #5, thanks! @metakel if you need any additional help left us know.

I updated the original post to reflect some comments. If anyone reading this needs a more thorough explanation, I'd be glad to help.

metakel’s picture

#6 and #7: it works. Thank you!

paulgemini’s picture

Thanks for this. I had posted this issue #1295448: PHP fatal error: Class 'MediaBrowserPlugin' not found and this seems to address it.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Updating the guide to be more thorough (in response to some of the comments).