ImportService assumed entity langcode field is called 'langcode'

Created on 23 September 2025, 13 days ago

Problem/Motivation

> InvalidArgumentException: Field langcode is unknown. in Drupal\Core\Entity\ContentEntityBase->getTranslatedField() (line 616 of /app/web/core/lib/Drupal/Core/Entity/ContentEntityBase.php).

with an entity such as a redirect, because this hardcodes the field name:

        $existing_entity->set('langcode', $data_langcode);

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

4.0

Component

Entity Share Client

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024