#97092DataHandler creates invalid sys_file_reference row
Description
- 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
-
Christian Kuhn changed description <span data-processor="relativetime" data-value="2022-03-03T12:48:03+00:00" > 03/03/22, 12:48 </span>
-
Oliver Hader changed category <span data-processor="relativetime" data-value="2022-03-21T11:39:17+00:00" > 03/21/22, 11:39 </span>
-
Georg Ringer commented and changed TYPO3 Version
1114 <span data-processor="relativetime" data-value="2026-10-06T18:35:45+00:00" > 10/06/26, 18:35 </span>still valid in v14/15
-
Gerrit Code Review pushed patch set 1 for main to change 96817 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-18T13:49:59+00:00" > 10/18/26, 13:49 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96817 <span data-processor="relativetime" data-value="2026-10-23T12:20:06+00:00" > 10/23/26, 12:20 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 96817 <span data-processor="relativetime" data-value="2026-11-09T21:44:07+00:00" > 11/09/26, 21:44 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 96817 <span data-processor="relativetime" data-value="2026-11-11T16:44:48+00:00" > 11/11/26, 16:44 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 96817 <span data-processor="relativetime" data-value="2026-11-12T19:04:33+00:00" > 11/12/26, 19:04 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 96817 <span data-processor="relativetime" data-value="2026-11-13T09:28:45+00:00" > 11/13/26, 09:28 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 96817 <span data-processor="relativetime" data-value="2026-11-13T09:38:42+00:00" > 11/13/26, 09:38 </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.