After upgrading from group v2 to 3.3.2, I was getting this error:

The "group_content_type" entity type does not exist.

I tracked it down to the key_value table holding an outdated field definition for the group_relationship entity type. The type field was still configured to point to an entity type of "group_content_type".

CommentFileSizeAuthor
#6 3494298-group-content-type-6.patch981 bytesj-barnes

Issue fork group-3494298

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

classiccut created an issue. See original summary.

classiccut’s picture

Issue summary: View changes
muaz7731’s picture

Having the same problem. the code provided fix the problem.

jbuttler’s picture

I have the same issue, but I am not as experienced with coding. Could you tell me where you added this code to resolve the issue?

muaz7731’s picture

j-barnes’s picture

StatusFileSize
new981 bytes

Attaching patch with update hook that we used to fix the issue.

Removing, didn't take into account this could effect future updates if not merged.

j-barnes’s picture

Status: Active » Needs review
j-barnes’s picture

j-barnes’s picture

Status: Needs review » Active

immaculatexavier made their first commit to this issue’s fork.

classiccut’s picture

@jbuttler I placed that code in an update hook in one of my custom modules. I suppose you could also run the same code throught drush php:cli

marcos318888’s picture

Assigned: Unassigned » marcos318888
marcos318888’s picture

Assigned: marcos318888 » Unassigned

kristiaanvandeneynde’s picture

kristiaanvandeneynde’s picture

Status: Active » Needs work

Assigning credit to @classiccut for correctly identifying the problem and offering a solution.

For this to get committed, we need to update the update path test to prove the fix works. Setting to NW for that, but that should be rather easy to test for. I can take care of that either tomorrow or next week I hope.

kristiaanvandeneynde changed the visibility of the branch 3494298- to hidden.

kristiaanvandeneynde’s picture

Status: Needs work » Needs review

This seems to fix it. I was contemplating updating all ER fields pointing to group_content_type just like we do with ER fields pointing to group_content, but I'm a bit on the fence as you really shouldn't be creating ER fields pointing to that entity type.

There's a reason the label is: "INTERNAL USE ONLY -- @group_type -- @plugin"

kristiaanvandeneynde’s picture

Issue summary: View changes

kristiaanvandeneynde’s picture

Priority: Normal » Major
Status: Needs review » Fixed

Gonna go ahead and release this soon as this is quite a major obstacle to upgrading from v2.

classiccut’s picture

This is great! Thanks so much for all the hard work.

Status: Fixed » Closed (fixed)

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