Cannot update or install og where og is already installed on server.
--It won't overwrite the installed module and removing the og moduel will kill the site.
--It did successfully overwrite on my home installation.
I have all og sub modules off but cannot switch og off because it reports: needed in fields shown in field list.
Have previously tried removing og fields from content types and found it renders content types invisible to Add Content.

On my home site I cannot use og migrate tool as it finds errors in membership, Dont know what to do about that

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amitaibu’s picture

Did you execute update.php?

JonnyAnderson’s picture

I believe I'm having the same issue. Whenever I attempt to run the og-migrate, I am returned to the administrative configuration page/overlay with the same

Organic groups or one of its modules needs to migrate data. Organic groups may not work properly without it. After a successful execution you can disable it.

message displaying.

I have run the update script and have run it multiple times just to be sure. I either get the "No pending updates" message or I receive the following error:

Fatal error: Call to undefined function og_get_context_by_url() in /my_location/sites/all/modules/og_create_perms/og_create_perms.module on line 9
amitaibu’s picture

Status: Active » Postponed (maintainer needs more info)

Fatal error: Call to undefined function og_get_context_by_url() in /my_location/sites/all/modules/og_create_perms/og_create_perms.module on line 9

Please read the fatal error message -- it's not OG.

JonnyAnderson’s picture

I understand that update error isn't OG, however, that doesn't occur normally, nor does it explain why the og-migrate isn't executing.

jastraat’s picture

The og_create_perms module is calling a function that was defined in the OG module but doesn't exist in the new 7.x-2.x version.

og_create_perms is not compatible with the new 2.x version of OG, but you shouldn't need it anyway since OG added group-based create permissions. Just disable the og_create_perms module.

kyletaylored’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active
FileSize
135.15 KB

So we're actually upgrading a site from OG 7.x-1.4 to 2.7 and we're getting this error during the migration.

Migration failed with source plugin exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.migrate_map_ogmigrateuserroles map ON uid = map.sourceid1 AND rid = map.sourcei' at line 2, in includes/database/database.inc:2171
Passing a group object to a migration constructor is now deprecated - pass through the arguments array passed to the leaf class instead.

Any help with this? I've tried 2.x dev as well, but no luck.

OG Migrate error

jastraat’s picture

I'm not sure about the first part, but the 2nd half of the error is due to a change the migration module made: https://www.drupal.org/node/1928956 It depreciated the syntax that the og migrate script is using, but it shouldn't make it fail. That must be from another cause.