#109533 ImageManipulationElement throws Fluid exception when all cropVariants are disabled
Description
When all cropVariants for a sys_file_reference field are set to ‘disabled’ => true via overrideChildTca, the backend throws the following exception when opening the record in the edit form:
#1351584844 TYPO3Fluid\Fluid\Core\ViewHelper\Exception An argument "key" or "id" has to be provided in vendor/typo3/cms-fluid/Classes/ViewHelpers/TranslateViewHelper.php line 81
Steps to reproduce:
1. Add a file field to a TCA model with overrideChildTca
2. Disable all cropVariants for that field, e.g.:
'overrideChildTca' => [
'columns' => [
'crop' => [
'config' => [
'cropVariants' => [
'default' => ['disabled' => true],
'heads' => ['disabled' => true],
'defaultUnfocused'=> ['disabled' => true],
],
],
],
],
],
3. Open a record of that type in the TYPO3 backend
Expected behaviour:
The crop UI is hidden (or rendered as empty) when no active cropVariants exist.
Actual behaviour:
ImageManipulationElement still renders the crop widget. Its Fluid template iterates over the cropVariants and calls f:translate with the variant’s title as key. With all variants disabled the resolved title is null / empty string, which TranslateViewHelper rejects with the above exception, making the entire record form inaccessible.
- Affected class: TYPO3\CMS\Backend\Form\Element\ImageManipulationElement
- Affected template: Form/ImageManipulationElement
Reviews 1
Files 2
History 45
-
Garvin Hicking changed description 04/09/26, 18:29
-
Gerrit Code Review pushed patch set 1 for main to change 93607 status
NewUnder Review 04/09/26, 18:42 -
Garvin Hicking commented and changed attached Screenshot 2026-04-09 at 20.44.15.png attached Screenshot 2026-04-09 at 20.44.25.png status
Under ReviewNeeds Feedback 04/09/26, 18:44 -
Benni Mack changed target version 04/21/26, 11:23
-
Riccardo De Contardi commented and changed status
Needs FeedbackClosed 09/14/26, 09:40Since long time has passed with no feedback and the patch has been abandoned, I think it is safe to close this issue.
If you think that this is the wrong decision or experience the issue again, please reopen it or open a new issue with a reference to this one.
Thank you.
Hi Thomas,
I cannot reproduce this bug. In both current TYPO3 v13 and v14 I do not get an exception.
I’ve added an EXT:styleguide patch here: https://review.typo3.org/c/Packages/TYPO3.CMS/+/93607
This enhances the styleguide example with a variation where all crops are disabled. I get no errors there, see screenshots.
Could you maybe give more details to reproduce this?