Issue Bug Closed

#109533 ImageManipulationElement throws Fluid exception when all cropVariants are disabled

Thomas Sam Wittich 04/09/26, 17:17 updated 09/14/26, 09:40

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

  1. 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 Review Needs Feedback <span data-processor="relativetime" data-value="2026-04-09T18:44:53+00:00" > 04/09/26, 18:44 </span>

    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?

  2. Riccardo De Contardi commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-09-14T09:40:14+00:00" > 09/14/26, 09:40 </span>

    Since 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.