Undefined index: text_processing in Drupal\text\Plugin\migrate\field\d7\TextField for D7 sites previously upgraded from D6

Created on 18 August 2020, about 5 years ago
Updated 23 May 2025, 4 months ago

Problem/Motivation

When migrating D7 sites (such as for example webchick.net), you get lots of errors like
Notice: Undefined index: text_processing in Drupal\text\Plugin\migrate\field\d7\TextField->getFieldType() (line 76 of core/modules/text/src/Plugin/migrate/field/d7/TextField.php).

Wim Leers provides the analysis for why this occurs for D7 sites that were upgraded from D6 in #25 🐛 Undefined index: text_processing in Drupal\text\Plugin\migrate\field\d7\TextField for D7 sites previously upgraded from D6 Postponed .

Steps to reproduce

Perform a migration with a D7 source site which has text fields without the text_processing setting.

Proposed resolution

Harden the code by specifcally handling the case where text_processing is not defined.
Add tests
Remove duplicate tests in the Drupal\Tests\text\Unit\Migrate namespace.

Remaining tasks

Patch
Review
Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component

migration system

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

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

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