Community Documentation

Upgrade from 6.x or 7.x-1.x to 7.x-2.x

Last updated March 22, 2013. Created by MD3 on November 13, 2012.
Edited by jastraat, adixon, rbruhn, manish_mics. Log in to edit this page.

Database Issues

If your database has a hyphen(-) in it, please make sure #1926418: OG Migrate fails if database name contains hyphen is resolved before reporting any new issues.

Setup

In order to upgrade Organic Groups from Drupal 6 or from OG 7.x-1.x to 7.x-2.x, the following modules must be installed and enabled:

Execution

Once the required modules have been enabled

  1. Make a backup of both your files and database.
  2. Download the latest version of OG 7.x-2.x (this can done via drush or ftp).
  3. Run update.php. If you're unsure what this means, go to the following URL and follow the instructions:
    http://yoursite.com/update.php
    After running the update script, you may get the message "The content access permissions need to be rebuilt. Rebuild permissions." Wait to rebuild permissions until after running the migrate scripts.
  4. Navigate to:
    http://yoursite.com/admin/content/migrate
  5. You should see the migrates that are still pending:
    OG Migrate Classes
  6. Check All of the new Migrate Classes for OG, select Import, then click on Execute.
    Run new OG Migrate Classes
  7. You should now see information regarding how many records were updated and when:
    og migrate results
  8. If some of your items are not migrated over, or there is an issue after migrating, try the latest dev version of OG. You can also look at:

Comments

Circular dependencies?

After the registration step, the migrate page just shows the error:

MigrateException: Failure to sort migration list - most likely due to circular dependencies involving OgMigrateContent,OgMigrateUser,OgUiMigrateAddField,OgUiSetRoles in migrate_migrations() (line 80 of /sites/all/modules/migrate/migrate.module).

Any ideas?

@thirdender - I got the same error

Stuck at Execution step 1

When I try to upload OG-7.x-2.0 (through the "Install new module" function on my Modules page), I get the message "Organic groups is already installed." (I already have OG-7.x-1.5.)

Does "Download the latest version of OG 7.x-2.x (this can done via drush or using the graphical web interface)" mean parking the newer version somewhere else? I've not used drush, and I'm not sure what "graphical web interface" means.

Thanks for your help.

G. Penn

Yes, I was referring to the

Yes, I was referring to the Update Manager ("Install new module") when I wrote the article. I always use Drush to manage websites, so I apologize for not testing that before I wrote it.

It looks like you're going to have to either use the FTP Method or install Drush. Either way, please make sure you create a backup of your drupal website and database before proceeding with this upgrade.

The migration process is just to migrate existing content, right? I mean, if you have 1 group, with a couple of contents and users, you could do it manually.
Or is it any other stuff?

I do ask because I have this site that I have to manually migrate some information (adding OG audience to certain nodes, and adding some people inside some groups... by hand).

Now I find this explanation, and I just want to make sure that you can manage the same thing with a manual migration (and I´m not missing any feature that the automatic migration process does).

Thanks!

Rosamunda
Buenos Aires | Argentina

Rebuild permissions question

These steps were very helpful - thanks to everyone who's contributed to them.

One note/question on rebuilding permissions: I was prompted to rebuild after running update.php, which I tried as above before running the migrations. When I tried - the process failed about 70% of the way through with "An AJAX HTTP error occurred. HTTP Result Code: 500". The only other content access module enabled was Field Permissions. I disabled that and tried again - same result. So I just ran the migration anyway (successfully, by the reports), and then rebuilt the permissions - no error this time.

So question: does the order matter?

Drush works too

FYI, for anyone who's using Drush to run a system upgrade, or save their sanity, all of the commands can be run via Drush too, e.g. drush migrate-status to see the list of available tasks, and drush migrate_import OgUiSetRoles to run them.

--
Damien McKenna | Mediacurrent

Page status

Needs technical review

Log in to edit this page

About this page

Drupal version
Drupal 7.x
Audience
Site administrators, Site builders
Level
Intermediate
Keywords
migrate, og, upgrade from 6.x to 7.x-2.x, upgrade from 7.x-1.x to 7.x-2.x, upgrading
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here