#93615It is not possible to alter the default cropVariants without copy-pasting them first, trying to do so leads to an uncaught exception
Description
No matter if via TSconfig or via TCA, if you just try to override the default crop varaints (here as Configuration/page.tsconfig example)
TCEFORM {
sys_file_reference {
crop {
config {
cropVariants {
default {
selectedRatio = 16:9
}
}
}
}
}
}
Then the Backend throws an exception. This is because the default fallback configuration is not loaded if any custom crop configuration is present:
> Above configuration is a fallback if no other more specific configuration has been given.
But I want to alter this exact default configuration without having to copy-paste it first, like any other TCA-setting can be overwritten.
The example here is via TSconfig, but if using overrideChildTca it behaves the same.
Why doesn’t sys_file_reference.crop ship this fallback directly via TCA, but is instead loaded dynamically on runtime (and thus not overridable, forcing people to ugly copy-paste it first)?
Reviews 2
History 811
-
S P changed subject
It is not possible to alter the default cropVariants without copy-pastign them firstIt is not possible to alter the default cropVariants without copy-pasting them first <span data-processor="relativetime" data-value="2021-03-01T07:44:20+00:00" > 03/01/21, 07:44 </span> -
S P changed TYPO3 Version
910 <span data-processor="relativetime" data-value="2021-10-20T06:24:03+00:00" > 10/20/21, 06:24 </span> -
S P commented and changed subject
It is not possible to alter the default cropVariants without copy-pasting them firstIt is not possible to alter the default cropVariants without copy-pasting them first, trying to do so leads to an ancaught exception description TYPO3 Version1012 <span data-processor="relativetime" data-value="2024-12-17T10:26:30+00:00" > 12/17/24, 10:26 </span> -
S P changed subject
It is not possible to alter the default cropVariants without copy-pasting them first, trying to do so leads to an ancaught exceptionIt is not possible to alter the default cropVariants without copy-pasting them first, trying to do so leads to an auncaught exception <span data-processor="relativetime" data-value="2024-12-17T10:42:59+00:00" > 12/17/24, 10:42 </span> -
S P changed subject
It is not possible to alter the default cropVariants without copy-pasting them first, trying to do so leads to an auncaught exceptionIt is not possible to alter the default cropVariants without copy-pasting them first, trying to do so leads to an uncaught exception <span data-processor="relativetime" data-value="2024-12-17T10:43:05+00:00" > 12/17/24, 10:43 </span> -
S P commented and changed TYPO3 Version
1213 <span data-processor="relativetime" data-value="2024-12-19T09:34:20+00:00" > 12/19/24, 09:34 </span>Bug still in v13.
-
S P commented and changed TYPO3 Version
1314 <span data-processor="relativetime" data-value="2026-06-11T07:10:26+00:00" > 06/11/26, 07:10 </span>Still present in v14. In the new slide-in panel you don’t even get an exception message, just nothing happens. The 500-response is just discarded now. Making this bug even more obscure.
-
Gerrit Code Review pushed patch set 1 for main to change 96816 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-18T13:46:04+00:00" > 10/18/26, 13:46 </span> -
Gerrit Code Review pushed patch set 2 for main to change 96816 <span data-processor="relativetime" data-value="2026-10-23T05:17:34+00:00" > 10/23/26, 05:17 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97501 <span data-processor="relativetime" data-value="2026-11-10T08:01:49+00:00" > 11/10/26, 08:01 </span>
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-10T08:05:10+00:00" > 11/10/26, 08:05 </span>Applied in changeset commit:2dbaf53cb3a6293609f549097e536ba0e6cf8228.
For example, in a purely empty TYPO3 12 just adding the following
page.tsconfigmakes file references (tt_content.imagefor example) crash withUncaught TYPO3 Exception: #1620147893: Crop variants configuration default contains no allowed aspect ratiosTCEFORM { sys_file_reference { crop { config { cropVariants { default { selectedRatio = 16:9 } } } } } }