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).
Comment | File | Size | Author |
---|---|---|---|
#20 | OG migrate | localhost.jpg | 65.76 KB | amitaibu |
#19 | d7.sql_.zip | 306.64 KB | nikkubhai |
Comments
Comment #1
amitaibuIs it a dev site -- can you attach a db dump (with all unrelated modules disabled)?
Comment #2
amitaibu+ What is the order of the migration plugins you execute?
Comment #3
socketwench CreditAttribution: socketwench commentedIt'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
Comment #4
amitaibuComment #5
socketwench CreditAttribution: socketwench commentedOriginally, 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.
Comment #6
socketwench CreditAttribution: socketwench commentedRebuilt 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).
Comment #7
amitaibuAdd group audience field from node-picture to reference node-channel (i.e. mark node-picture as "Group content".
Comment #8
socketwench CreditAttribution: socketwench commented1. 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:
5. Migrated Group Visibility -- successful.
6. Attempted to migrate Group Content again -- failed, same error as #4.
Comment #9
amitaibuI've committed a few fixes, please get latest dev and re-try.
If you want, you can send me on private.
Comment #10
socketwench CreditAttribution: socketwench commentedUpgraded. 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).
Comment #11
socketwench CreditAttribution: socketwench commentedWhat tables would you need?
Comment #12
socketwench CreditAttribution: socketwench commentedSame 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).
Comment #13
nikkubhai CreditAttribution: nikkubhai commentedI 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.
Comment #14
nikkubhai CreditAttribution: nikkubhai commentedMarked 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.
Comment #15
amitaibunikkubhai, I'll need more info/ debug or better a patch...
Comment #16
nikkubhai CreditAttribution: nikkubhai commented@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.
Comment #17
nikkubhai CreditAttribution: nikkubhai commentedOn 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.
Comment #18
amitaibunikkubhai, is it a dev site -- can you attach a db dump?
Comment #19
nikkubhai CreditAttribution: nikkubhai commentedI have attached the database.
Comment #20
amitaibu@nikkubhai,
With latest -dev version, and after executing update.php -- I was able to migrate with no problem.
Comment #21
nikkubhai CreditAttribution: nikkubhai commentedI 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).
Comment #22
friendswoodtech CreditAttribution: friendswoodtech commentedI'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.
Comment #23
amitaibuSeems 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
Comment #24
amitaibuI'll need a response...
Comment #25
friendswoodtech CreditAttribution: friendswoodtech commentedI did install the patch, but continued to see the exact same error. No change. Thanks!
Comment #26
el56 CreditAttribution: el56 commentedHi. 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
Comment #27
el56 CreditAttribution: el56 commentedToday 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.
I can send a db dump if you wish.
Comment #28
el56 CreditAttribution: el56 commentedLooks 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.
Comment #29
el56 CreditAttribution: el56 commentedThere's no movement on the issue, but it still exists for multiple people. If maintainers need more data, please let me know.
Comment #30
el56 CreditAttribution: el56 commentedSolved 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.
Comment #31
socketwench CreditAttribution: socketwench commentedHuh. 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.
Comment #32
socketwench CreditAttribution: socketwench commentedInteresting.
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.
Comment #33
yktdan CreditAttribution: yktdan commentedWe 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?
Comment #34
funex CreditAttribution: funex commentedIt'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()
Comment #35
Lams CreditAttribution: Lams commentedI 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.
Comment #36
Johnnie Walker CreditAttribution: Johnnie Walker as a volunteer commentedI 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.