#101635InstallTool not accessible on TYPO3 v12.4 update
Description
Trying to update an existing TYPO3 Version I stumbled accross a Problem with FormProtection. We have a dev-envirment configured to use the NullBackend for all cachetypes via:
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][$cacheName]['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class;
After Update neither the InstallTool nor the Backend is working anymore.
TYPO3\CMS\Core\FormProtection\FormProtectionFactory::createForType(): Return value must be of type TYPO3\CMS\Core\FormProtection\AbstractFormProtection, bool returned
This is comming from here:
Disabling the use of NullBackend helps.
A possible solution is this;
# diff FormProtectionFactory.php FixedFormProtectionFactory.php 68,69c68,70 < $this->runtimeCache->set($identifier, $this->createInstance(...$classNameAndConstructorArguments)); < return $this->runtimeCache->get($identifier); --- > $instance = $this->createInstance(...$classNameAndConstructorArguments) > $this->runtimeCache->set($identifier, $instance); > return $instance; 83,84c84,86 < $this->runtimeCache->set($identifier, $this->createInstance(...$classNameAndConstructorArguments)); < return $this->runtimeCache->get($identifier); --- > $instance = $this->createInstance(...$classNameAndConstructorArguments); > $this->runtimeCache->set($identifier, $instance); > return $instance;
Reviews 4
Related issues 1
History 59
-
Benni Mack commented and changed status
NewRejected <span data-processor="relativetime" data-value="2024-12-10T12:45:30+00:00" > 12/10/24, 12:45 </span> -
Benni Mack changed Related to #103569 <span data-processor="relativetime" data-value="2024-12-10T12:47:45+00:00" > 12/10/24, 12:47 </span>
-
Benni Mack commented and changed status
RejectedAccepted <span data-processor="relativetime" data-value="2024-12-10T12:53:41+00:00" > 12/10/24, 12:53 </span>Hey Ingo,
sorry, I investigated this issue further and found that you are right!
-
Gerrit Code Review pushed patch set 1 for main to change 87417 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2024-12-10T12:54:06+00:00" > 12/10/24, 12:54 </span> -
Gerrit Code Review pushed patch set 1 for main to change 87421 <span data-processor="relativetime" data-value="2024-12-10T15:38:25+00:00" > 12/10/24, 15:38 </span>
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 87445 <span data-processor="relativetime" data-value="2024-12-11T14:03:22+00:00" > 12/11/24, 14:03 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 87446 <span data-processor="relativetime" data-value="2024-12-11T14:04:36+00:00" > 12/11/24, 14:04 </span>
-
Benjamin Franzke commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2024-12-11T15:05:13+00:00" > 12/11/24, 15:05 </span>Applied in changeset commit:8dd6e77efe91cf7c8b972abc1c694c06c2983cb2.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:37:03+00:00" > 12/02/25, 14:37 </span>
Hey Ingo,
sorry, but in your special dev-environment configuration, you have to configure “runtime” to use the TransientMemoryBackend class, instead of null, otherwise you will run in a lot of side-effects. I suggest to just skip the “runtime” cache to be set to null. This should also make your dev environments much faster.
The problem arose because TYPO3 v12 uses runtime cache in more places than before.
If you still have any issues here, let me know via email or slack, so we can coordinate any further changes, however this will be a “no-fix” as this is a configuration mis-use.
All the best,
Benni.