Bug #106064
opendeflateKeys error in using a link via Plugin Enhancer
0%
Description
I get the following error message when using a link via Plugin Enhancer:
TYPO3\CMS\Core\Routing\Enhancer\VariableProcessor::deflateKeys(): Argument #1 ($items) must be of type array, string given, called in /var/www/html/public/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php on line 95
I checked that and indeed is the argument a string. I get an '__UNSET' in the array key $this->configuration['defaults'], so the condition $this->configuration['defaults'] ?? [] doesn't work, because the value isn't empty.
Updated by Oliver Hader 12 days ago
- Status changed from New to Needs Feedback
It seems, that __UNSET
is persisted in your YAML site configuration as well. When modifying the site configuration via the site module in the TYPO3 backend, a corresponding check flags to-be-removed sections with __UNSET
and finally cleans them by invoking ArrayUtility:: mergeRecursiveWithOverruleā€ˇ
, see https://github.com/TYPO3/typo3/blob/v12.4.26/typo3/sysext/core/Classes/Configuration/SiteConfiguration.php#L327-L335
In case my assumption is correct - that there's a __UNSET
in your YAML site configuration - then, the issue can be resolved by manually removing the __UNSET
from the configuration file. However, it's unclear, how it ended up there...
Updated by Oliver Hader 12 days ago
Besides that, could you please provide the exact TYPO3 version that is being used, as well as the YAML site configuration in question? Thanks in advance!