Project

General

Profile

Actions

Bug #80214

closed

ImageManipulation: Example for dynamic variable name parts breaks BE

Added by Marcus Schwemer about 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2017-03-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In a project I have the following cropping configuration in TCA of "sys_file_reference":

$GLOBALS['TCA']['sys_file_reference']['columns']['crop']['config'] = [
    'type' => 'imageManipulation',
    'ratios' => [
        '2' => '2:1',
        '0.5' => '1:2',
        '3' => '3:1',
        '0.3333333333333333' => '1:3',
        '1.7777777777777777' => '16:9',
    ],
];

I do not have any cropvariants defined. According to the docs of cropvariants this configuration should still work.

If I update to commit "b534440e8bd789a1b1f3e84e2e173262094fa836" or later (#79997), I receive a fatal error in the BE:

#1351584844: An argument "key" or "id" has to be provided (More information)

TYPO3Fluid\Fluid\Core\Exception thrown in file
.../typo3_src/typo3/sysext/fluid/Classes/ViewHelpers/TranslateViewHelper.php in line 140.

If I reset the example in "typo3/sysext/backend/Resources/Private/Templates/ImageManipulation/ImageManipulationElement.html", it works as before ...


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #79997: Fix dynamic variable name parts in FluidClosed2017-02-24

Actions
Related to TYPO3 Core - Bug #81116: Custom image crop ration breaking BE with #1351584844: An argument "key" or "id" has to be providedRejected2017-05-02

Actions
Actions #1

Updated by Marcus Schwemer about 7 years ago

  • Subject changed from ImageManipulation: Example for dynamic variable name parts beaks BE to ImageManipulation: Example for dynamic variable name parts breaks BE
Actions #2

Updated by Marcus Schwemer about 7 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review about 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52194

Actions #4

Updated by Helmut Hummel about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Mona Muzaffar almost 7 years ago

  • Related to Bug #81116: Custom image crop ration breaking BE with #1351584844: An argument "key" or "id" has to be provided added
Actions #6

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF