Problem/Motivation

Failures when attempting to create a group other than a translation group.

Steps to reproduce

  1. Create a new group type.
  2. Add a new group of this type.
  3. You get this error: Drupal\Core\Entity\EntityStorageException: Field field_translation_language is unknown. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php). This is due to missing checks in l10n_community.module at line 218 (l10n_community_group_insert()).

Proposed resolution

Implement necessary checks.

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

fmb created an issue. See original summary.

fmb’s picture

Status: Active » Needs review

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

  • fmb committed 22d4b972 on 3.0.x
    Merge branch '3547911-error-when-creating' into '3.0.x'
    
    Check group...

  • fmb committed a2a5cd93 on 3.0.x
    Check group bundle (#3547911)
    
fmb’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

donquixote’s picture

Now I get the same error on group/*/translate.

Beyond that:
I don't see anywhere in the codebase that we create a group type with that field!
It seems we rely on configuration that was created manually somewhere.

fmb’s picture

Now I get the same error on group/*/translate.

I don't, but feel free to re-open.

I don't see anywhere in the codebase that we create a group type with that field!
It seems we rely on configuration that was created manually somewhere.

Indeed:
https://gitlab.com/drupal-infrastructure/sites/localize/-/blob/main/conf...
https://gitlab.com/drupal-infrastructure/sites/localize/-/blob/main/conf...

Status: Fixed » Closed (fixed)

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