Issue Bug Under Review

#97092DataHandler creates invalid sys_file_reference row

Christian Kuhn 03/03/22, 12:47 updated 11/13/26, 09:38

Description

Scenario:
  • Create a page
  • Add an image to “Resources” media field of the page
  • Localize the page to some language, the image will be localized, too.
  • In the page localization record, “Translation behavior” “Value of default language” is selected, but the buttons to add further images are still shown. Add another image and save.

-> After save, the image is gone again. Most likely due to “Value of default language” translation behavior”. That’s fine.

But: A sys_file_reference record is created. And that one is broken since it has ‘uid_foreign’ set to 0, and empty values for ‘tablenames’ and ‘fieldname’. This should not happen. I guess, the check for the translation behavior needs to happen earlier in DH to suppress the record creation?

Reviews 1

History 411

  1. Dennis Prinse commented <span data-processor="relativetime" data-value="2023-05-03T12:07:27+00:00" > 05/03/23, 12:07 </span>

    We’re experiencing this same issue at one of our TYPO3 v11 installations. Indeed, when adding file references on page translations while the ‘Value of default language’ radio has been selected, a wrong file reference is being created.

    However, when selecting the ‘Custom value’ radio, the file reference is being created correctly and persists after save and reload.

    There is no setting or possibility to override this localization state selector to force one of the options for a specific field. Now we have to keep in mind to manually select the ‘Custom behaviour’ when adding a file reference on a page translation.

  2. Georg Ringer commented and changed TYPO3 Version 11 14 <span data-processor="relativetime" data-value="2026-10-06T18:35:45+00:00" > 10/06/26, 18:35 </span>

    still valid in v14/15