#90997DataHandler tries to translate relations that are set as non-translatable
Description
Given a TCA like this
table1.php
return [
'ctrl' => [
...
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l10n_parent',
'transOrigDiffSourceField' => 'l10n_diffsource',
],
...
'columns' => [
'table2' => [
'label' => 'Label',
'l10n_mode' => 'exclude',
'config' => [
'type' => 'inline',
'foreign_table' => 'table2',
'foreign_field' => 'title',
],
],
],
];
table2.php
<?php declare(strict_types=1);
return [
'ctrl' => [
...
// no language_field
],
...
'columns' => [
'title' => [ ... ]
]
];
I get : Localization failed; "languageField" and "transOrigPointerField" must be defined for the table table2 when I try to translate table1.
I would assume from https://docs.typo3.org/m/typo3/reference-tca/master/en-us/Ctrl/Index.html that such a configuration is possible. At least I cannot see that these fields are required.
Reviews 1
Related issues 4
- Story #78642Improve t3_origuid handling
- Bug #90170Datahandler localize translates inline records with non-translatable parent record
- Bug #101962New records created on a field of type INLINE have the wrong sys_language_uid value
- Feature #106456Allow to modify excludeFields and overrideValues in DataHandler->copyRecord
Files 3
History 1020
-
Vladimir Falcon commented <span data-processor="relativetime" data-value="2021-04-21T06:51:16+00:00" > 04/21/21, 06:51 </span>
-
Tymoteusz Motylewski changed Related to #90170 <span data-processor="relativetime" data-value="2024-09-03T10:06:42+00:00" > 09/03/24, 10:06 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 88837 status
NewUnder Review <span data-processor="relativetime" data-value="2025-03-29T18:01:42+00:00" > 03/29/25, 18:01 </span> -
Gerrit Code Review pushed patch set 2 for main to change 88837 <span data-processor="relativetime" data-value="2025-05-26T07:04:14+00:00" > 05/26/25, 07:04 </span>
-
Sven Burkert commented and changed attached test.zip <span data-processor="relativetime" data-value="2025-12-05T11:21:40+00:00" > 12/05/25, 11:21 </span>
Still a problem in TYPO3 v13.
I’ve added a demo extension for reproducing the problem.
Not only an error message is shown, but on every save of a record from default language from table1 a translation entry in table2 is created. -
Michael Stopp changed Related to #106456 <span data-processor="relativetime" data-value="2026-01-27T16:07:07+00:00" > 01/27/26, 16:07 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-20T11:06:33+00:00" > 02/20/26, 11:06 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-20T11:07:36+00:00" > 02/20/26, 11:07 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-20T11:20:24+00:00" > 02/20/26, 11:20 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-20T22:57:56+00:00" > 02/20/26, 22:57 </span>
-
Benni Mack changed Related to #101962 <span data-processor="relativetime" data-value="2026-02-24T13:07:16+00:00" > 02/24/26, 13:07 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-24T21:23:10+00:00" > 02/24/26, 21:23 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 88837 <span data-processor="relativetime" data-value="2026-02-25T09:38:30+00:00" > 02/25/26, 09:38 </span>
-
André Buchmann commented and changed attached clipboard-202602251054-9pbku.png <span data-processor="relativetime" data-value="2026-02-25T09:58:43+00:00" > 02/25/26, 09:58 </span>
_fyi_
While working on the patch I encountered these errors in the backend:clipboard-202602251054-9pbku.png
My conclusion is, that these buttons should be disabled by the integrator in the first place, as there is no possibility to translate a non-language-aware table record.
So it’s not a bug, it’s a TCA misconfiguration in this special scenario. -
Maxime Lafontaine commented <span data-processor="relativetime" data-value="2026-02-26T01:45:02+00:00" > 02/26/26, 01:45 </span>
André Buchmann wrote in #note-14:
> _fyi_
> While working on the patch I encountered these errors in the backend:
>
> !clipboard-202602251054-9pbku.png!
>
>
> My conclusion is, that these buttons should be disabled by the integrator in the first place, as there is no possibility to translate a non-language-aware table record.
> So it’s not a bug, it’s a TCA misconfiguration in this special scenario.The FormFramework (I thinks it’s that) should just never show them if there is no possibility of translating?
-
Christian Kuhn changed Related to #78642 <span data-processor="relativetime" data-value="2026-03-17T09:17:00+00:00" > 03/17/26, 09:17 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 88837 <span data-processor="relativetime" data-value="2026-04-10T17:42:04+00:00" > 04/10/26, 17:42 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 88837 <span data-processor="relativetime" data-value="2026-04-10T18:34:57+00:00" > 04/10/26, 18:34 </span>
-
Torben Hansen commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-11T11:40:07+00:00" > 04/11/26, 11:40 </span>Applied in changeset commit:c3642829a320c4b5e131b352fc5adefa67242cb6.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-04-21T11:30:29+00:00" > 04/21/26, 11:30 </span>
I am having exactly the same problem.
TYPO3 V 9.5.26
PHP 7.4
Does anyone knows how to correct this problem?