The following error appears when attempting to migrate content. The error prevents any migrations from being successful and prevents rebuilding access permissions.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=79&op=do StatusText: Service unavailable (with message) ResponseText: OgException: There are no OG fields in entity <em class="placeholder">user</em> and bundle <em class="placeholder">user</em> referencing <em class="placeholder">node</em> - <em class="placeholder">og</em>. in og_group() (line 1666 of /home/tess/sites/deninet6/sites/all/modules/og/og.module).

CommentFileSizeAuthor
#20 OG migrate | localhost.jpg65.76 KBamitaibu
#19 d7.sql_.zip306.64 KBnikkubhai
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amitaibu’s picture

Is it a dev site -- can you attach a db dump (with all unrelated modules disabled)?

amitaibu’s picture

+ What is the order of the migration plugins you execute?

socketwench’s picture

It's a duplicate of the production site. I'd prefer not to attach a full DB dump if I could.

The error occurs most migration steps, very similar to: http://drupal.org/node/1380506#comment-5650044

amitaibu’s picture

+ What is the order of the migration plugins you execute?

socketwench’s picture

Originally, I had installed the stable version and executed all migrations in top-down order as they were presented in the table. The content data migration failed. This led me to the thread I linked to in my previous reply, which suggested trying the dev version. Again, I executed the migrations in top-down order as they were presented in the table. The user relationship migration returns the error described in the linked thread and in the description to this issue. Any other migrations return errors exactly in the fashion described in the linked thread.

If it would help, I could rebuild my dev site to a pre-og-migration state and try it again with the version and/or patches you specify.

socketwench’s picture

Rebuilt the site to a pre-OG migrate state. Installed recommended versions of all modules, assured site did not have pending updates. Installed dev version of OG. Enabled OG. Was prompted to and enabled OG Migrate.

Conducted migrations in following order:
1. Group -- Successful.
2. Group description -- Successful.
3. Group Content -- Failed.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=55&op=do StatusText: error ResponseText: OgException: There are no OG fields in entity <em class="placeholder">node</em> and bundle <em class="placeholder">picture</em> referencing <em class="placeholder">node</em> - <em class="placeholder">channel</em>. in og_group() (line 1666 of /home/tess/sites/deninet6/sites/all/modules/og/og.module).

4. Update user roles -- Successful. "Add per-bundle OG roles" now reads "Executed Successfully".
5. Upgrade OG membership -- Successful.
6. User relation to group -- Successful.

Attempted to migrate "Group content" again. Failed:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=59&op=do StatusText: error ResponseText: OgException: There are no OG fields in entity <em class="placeholder">node</em> and bundle <em class="placeholder">picture</em> referencing <em class="placeholder">node</em> - <em class="placeholder">channel</em>. in og_group() (line 1666 of /home/tess/sites/deninet6/sites/all/modules/og/og.module).

amitaibu’s picture

Group Content -- Failed.

Add group audience field from node-picture to reference node-channel (i.e. mark node-picture as "Group content".

socketwench’s picture

1. Downloaded an enabled the recommended version of views_bulk_operations.
2. Enabled OG UI.
3. Admin -> Structure -> Types. Edited the Picture type, marking the type as Group content.
4. Attempted to migrate group content -- failed:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=60&op=do StatusText: error ResponseText: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7501 of /home/tess/sites/deninet6/includes/common.inc).

5. Migrated Group Visibility -- successful.
6. Attempted to migrate Group Content again -- failed, same error as #4.

amitaibu’s picture

I've committed a few fixes, please get latest dev and re-try.

I'd prefer not to attach a full DB dump if I could.

If you want, you can send me on private.

socketwench’s picture

Upgraded. Still no luck:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=66&op=do StatusText: error ResponseText: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7501 of /home/tess/sites/deninet6/includes/common.inc).

socketwench’s picture

If you want, you can send me on private.

What tables would you need?

socketwench’s picture

Same error when attempting to migrate group content nodes on the latest devs of og, ctools, entity, and entityreference.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?render=overlay&id=76&op=do StatusText: Service unavailable (with message) ResponseText: EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7501 of /home/tess/sites/deninet6/includes/common.inc).

nikkubhai’s picture

I too got ajax http error on og migrate. Here is the info:

An AJAX HTTP error occurred. HTTP Result Code: 200 Debugging information follows. Path: /batch?id=2772&op=do StatusText: OK ResponseText: Fatal error: Class name must be a valid object or a string in /home/***/public_html/includes/common.inc on line 7656

On migrate page,

Remove global roles - 7.2 ,
Upgrade user roles - 7.2 ,
Upgrade OG roles - 7.2
All the above got executed successfully
Error occured during the following
Upgrade OG membership - 7.2 Re-populate group ID and group entity, deprecating the OG group entity.

nikkubhai’s picture

Priority: Normal » Major

Marked http://drupal.org/node/1497324 as duplicate of this.

Making this as Major as most of the sites cannot shift to OG 7.x-2.x from 7.x-1.x since migrate is not working.

amitaibu’s picture

Priority: Major » Normal

nikkubhai, I'll need more info/ debug or better a patch...

nikkubhai’s picture

@Amitai: I implemented it directly on production site. On production site, there are different group content types ( departments, clubs, etc.) and different group content content types ( article, project, etc.) . As I said earlier, Error occured during the following migration : Upgrade OG membership - 7.2 Re-populate group ID and group entity, deprecating the OG group entity.

One thing I noticed, on any group content (articles) , only admin could see the post. For others, there was WSOD.

As it was on production site, php errors were turned off. So , I will test this now on dev environment and report/resolve the errors.

nikkubhai’s picture

On a fresh dev site , I installed og 7.x-1.x first, enabled og example, created a group and group content and then updated to og 7.x.2.x . Again, during migration,

Upgrade OG membership - 7.2 - execution failed.

But this time the debugging information is different. Maybe it will help.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /d7/?q=batch&id=13&op=do StatusText: Service unavailable (with message)
ResponseText: PDOException: SQLSTATE[42S22]: Column not found: 1054
Unknown column 'base.language' in 'field list':
SELECT base.id AS id, base.type AS type, base.etid AS etid, base.entity_type AS entity_type, base.gid AS gid, base.group_type AS group_type, base.state AS state, base.created AS created, base.field_name AS field_name, base.language AS language FROM {og_membership} base WHERE (base.id IN (:db_condition_placeholder_0, :db_condition_placeholder_1, :db_condition_placeholder_2)) ; Array ( [:db_condition_placeholder_0] => 1 [:db_condition_placeholder_1] => 2 [:db_condition_placeholder_2] => 3 ) in EntityAPIController->query() (line 152 of /var/www/d7/sites/all/modules/entity/includes/entity.controller.inc).

This time I can provide any information you want Amitai. I also want to help with patch, but I have no idea where to begin.

amitaibu’s picture

nikkubhai, is it a dev site -- can you attach a db dump?

nikkubhai’s picture

FileSize
306.64 KB

I have attached the database.

amitaibu’s picture

Status: Active » Fixed
FileSize
65.76 KB

@nikkubhai,
With latest -dev version, and after executing update.php -- I was able to migrate with no problem.

nikkubhai’s picture

Status: Fixed » Active

I tested on dev site again and as you said, there was no problem in migration.

But , migration on production site still failed. with the following error:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows.

Path: /batch?id=2817&op=do
StatusText: Service unavailable (with message)
ResponseText: DatabaseSchemaObjectExistsException: Table field_data_og_group_ref already exists. in DatabaseSchema->createTable() (line 657 of /***/includes/database/schema.inc).

friendswoodtech’s picture

I'm also experiencing an EntityMalformedException: Missing bundle property on entity of type node when attempting to migrate group content nodes. All other migration tasks completed successfully. I am running 7.x-2.x-dev. Any assistance in resolving is appreciated - this is my last step for a successful d6-d7 migration.

amitaibu’s picture

Seems almost every member has a different error, so better read carefully the error messages, and open a different issue, but please *only if needed*.

But before that, please help test #1635366: Make og-migrate plugins less strict

amitaibu’s picture

Status: Active » Postponed (maintainer needs more info)

I'll need a response...

friendswoodtech’s picture

I did install the patch, but continued to see the exact same error. No change. Thanks!

el56’s picture

Hi. A few months ago I had a migration problem... upgrading the version of OG to a dev release had fixed that after some back-and-forth.

Now I'm migrating a similar but different site from D6 to D7. This time, everything in Content Migrate executed successfully except for "Group content nodes", with a message that looks almost identical to the original message in this issue:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /new/batch?id=1680&op=do StatusText: Service unavailable (with message) ResponseText: OgException: There are no OG fields in entity <em class="placeholder">node</em> and bundle <em class="placeholder">blog</em> referencing <em class="placeholder">node</em> - <em class="placeholder">group</em>. in og_group() (line 1751 of /var/www/new/sites/all/modules/og/og.module).

Should I create a new issue or keep it here? I'm running 7.x-2.0-beta1+11-dev

el56’s picture

Today updated OG to 7.x-2.0-beta1+14-dev, entity API and entityreference to 7.x-1.0-rc3+2-dev and ran update. No change to above.

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /new/batch?id=1688&op=do StatusText: Service unavailable (with message) ResponseText: OgException: There are no OG fields in entity <em class="placeholder">node</em> and bundle <em class="placeholder">blog</em> referencing <em class="placeholder">node</em> - <em class="placeholder">group</em>. in og_group() (line 1765 of /var/www/new/sites/all/modules/og/og.module).

I can send a db dump if you wish.

el56’s picture

Priority: Normal » Major

Looks like there are multiple people with similar problems.
You said to open a new issue if necessary, but my errors seem to be the same as friendswoodtech's
If you want to open mine as a separate issue or need more info or a DB dump, let me know.

el56’s picture

Status: Postponed (maintainer needs more info) » Active

There's no movement on the issue, but it still exists for multiple people. If maintainers need more data, please let me know.

el56’s picture

Solved the problem.

Did a fresh dump and reload, and just ensured that the blog and image content types were edited and saved as OG group content.

Part of the problem was that there was no "image" content type. One had been created and deleted from the system before the migration. Recreating the image content type allowed the migration to proceed, after which I could safely re-delete the type.

I was snooping around in that direction after reading a similar issue, "Setting per-instance target bundles changes global group audience field target bundle settings", especially posts #36 and #41 in it.

Thanks to all -- especially Amitaibu -- and I'm sorry if I was getting pushy. It was just that this one issue was holding up my D7 migration, everything else moved over fine. But now I have seen, for the first time, the message that I can now disable OG migrate.

socketwench’s picture

Part of the problem was that there was no "image" content type. One had been created and deleted from the system before the migration. Recreating the image content type allowed the migration to proceed, after which I could safely re-delete the type.

Huh. That may be my issue as well. I had abandoned this issue, but if the deleted image content type is the problem I'll have to try re-creating it.

socketwench’s picture

Interesting.

That did allow the migration to proceed, but it appears to have destroyed all access control to nodes. I've enabled og_access, cleared the cache, and rebuilt permissions. All content is still wide open.

EDIT: It appears the "Group Content Visibility" field was not created during the migration for group content nodes. Even when creating the field before migrating does not result in visibility being preserved past the update.

yktdan’s picture

We seem to have all of these errors. We have done something more complicated than the thread suggests. We went from og 6 to og 7.1 and then to of 7.2 and all the problems seem to be going from 7.1 to 7.2. Perhaps og 6 direct to og 7.2 will work better. Has anyone gone from 6 to 7.2 bypassing 7.1? We are on beta1 not dev. Should we be on dev?

funex’s picture

It's 2013 and I'm still getting the same error.
Keen for an upgrade path from 7.1.x to 7.2.x !

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=59&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "1.36034716126E+12" LINE 1: ...ialHighwater) VALUES ('OgMigrateMembership', '1', '1.3603471... ^: INSERT INTO migrate_log (machine_name, process_type, starttime, initialHighwater) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( ) in MigrationBase->beginProcess()

Lams’s picture

Issue summary: View changes

I got here by searching for "OgException There are no OG fields in entity node and bundle video referencing node group" If you are searching for something like that, my problem was that there were no og fields on my content type that I was importing to.

Johnnie Walker’s picture

I was getting a similar error but when using SimpleTest.

This page kept coming up in Google searches during my debugging session...so...

I solved my issue with this solution from DrMiaow.