Issue Bug Resolved

#88980Translating records with FAL relation where allowLanguageSynchronization set to true

Felix Hilmes 08/20/19, 10:03 updated 10/17/26, 12:35

Description

When translating a record with a immage (FAL relation) where allowLanguageSynchronization is set to true in the TCA configuration typo3 throws the exception #1486233164: Child record was not processed and the record gets some new immage relation entries

Easiest to Reproduce with the georgringer/news extension
Steps to reproduce:
1. Create a new (news) record, set language to [All]
2. Save
3. Add immage as fal relation,
4. Save
5. Set language to Default [0]
6. Save
7. Translate (In the News Administration section)
8. Admire the Exception/CMS/1486233164 page and the new copies of the FAL relation

Tested in Typo3 8.7, 9.5 and 10.0

Reviews 4

Files 2

History 1656

Show 1131 earlier messages
  1. Christian Eßl commented <span data-processor="relativetime" data-value="2019-10-08T09:20:46+00:00" > 10/08/19, 09:20 </span>

    We got the same problem here with the pages -> media fal field. Trying to translate such a page produces pretty chaotic results by duplicating all image relations.

    The same error occurs when we go to the Access module and try to change the access permissions of such a page. (Click for example “New pages” icon)
    • The server will answer with a 500 error and the message “Child record was not processed”
    • All inline image relations were duplicated.

    When setting allowLanguageSynchronization to false, the problems disappear.

  2. Andreas Wolf commented <span data-processor="relativetime" data-value="2019-12-13T16:52:05+00:00" > 12/13/19, 16:52 </span>

    I have seen a similar behaviour in some instances and could fix it for my usecases.

    Could you try if this patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/62192 works for you as well? It should be applicable to 9.5 as well, not sure about 8, though.

  3. Felix Hilmes commented <span data-processor="relativetime" data-value="2019-12-17T13:15:36+00:00" > 12/17/19, 13:15 </span>

    Andreas Wolf wrote:
    > I have seen a similar behaviour in some instances and could fix it for my usecases.
    >
    > Could you try if this patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/62192 works for you as well? It should be applicable to 9.5 as well, not sure about 8, though.

    Works with the news extension in 9.5

  4. Gerrit Code Review pushed patch set 4 for master to change 62192 status New Under Review <span data-processor="relativetime" data-value="2020-05-13T17:13:25+00:00" > 05/13/20, 17:13 </span>

  5. Joerg Kummer commented <span data-processor="relativetime" data-value="2020-10-18T23:25:36+00:00" > 10/18/20, 23:25 </span>

    Can confirm for TYPO3 10.4.9, with 4 languages and pages.media, where allowLanguageSynchronization is true, and sys_file_reference is given for default language only. It occurse right after upgrade from TYPO3 8.7

  6. Daniel Siepmann commented <span data-processor="relativetime" data-value="2023-05-25T06:24:10+00:00" > 05/25/23, 06:24 </span>

    We have the same issue with V12 and V11. I guess v11 won’t receive the patch?

  7. Joerg Boesche commented <span data-processor="relativetime" data-value="2023-06-19T08:00:10+00:00" > 06/19/23, 08:00 </span>

    Daniel Siepmann wrote in #note-14:
    > We have the same issue with V12 and V11. I guess v11 won’t receive the patch?

    I also confirm the bug in T3 v12 and PHP 8.1. If you have a content element with a flexform and element of type “file”, the exception “Child record was not processed” is thrown. Occurs on click for a new translation from the default language, with “allowLanguageSynchronization” enabled.

  8. Sybille Peters commented <span data-processor="relativetime" data-value="2024-12-17T17:49:57+00:00" > 12/17/24, 17:49 </span>

    I created an extension for convenience in reprocing the bug: https://github.com/sypets/fields_with_allowlangsync

    This way you can test the behaviour with core v14 fields, e.g. tt_content.assets.

  9. Sybille Peters commented <span data-processor="relativetime" data-value="2024-12-19T21:44:10+00:00" > 12/19/24, 21:44 </span>

    The problem is already before the element is translated, so I think the current patch fixes it too late: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62192

    After performing steps 1-6 (see above): with tt_content.assets with allowLanguageSynchronization

    1. Create a new textmedia, set language to [All]
    2. Save
    3. Add asset as fal relation,
    4. Save
    5. Set language to Default [0]
    6. Save

    and then we look in the DB: we expect the sys_file_reference.sys_language_uid to be have value 0, but it has value -1:

    select r.uid,r.sys_language_uid,r.l10n_parent,r.l10n_state,r.uid_foreign,r.hidden,t.header,t.sys_language_uid from sys_file_reference r inner join tt_content t on r.uid_foreign=t.uid where r.pid=904 and not r.deleted order by t.uid;
    +-----+------------------+-------------+------------+-------------+--------+------------------------------+------------------+
    | uid | sys_language_uid | l10n_parent | l10n_state | uid_foreign | hidden | header                       | sys_language_uid |
    +-----+------------------+-------------+------------+-------------+--------+------------------------------+------------------+
    | 415 |               -1 |           0 | NULL       |         149 |      0 | another Element              |                0 |
    +-----+------------------+-------------+------------+-------------+--------+------------------------------+------------------+
  1. Sybille Peters commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-10-17T12:35:14+00:00" > 10/17/26, 12:35 </span>

    Applied in changeset commit:c4c5e37ff8f8d7ef215a16228c47006ad844a346.