Project

General

Profile

Actions

Bug #106064

open

deflateKeys error in using a link via Plugin Enhancer

Added by Silke Capo 13 days ago. Updated 12 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2025-02-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
trivial
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Oliver Hader 12 days ago

  • Status changed from New to Needs Feedback

Reference: https://github.com/TYPO3/typo3/blob/v12.4.26/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php#L99

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

Actions #2

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!

Actions

Also available in: Atom PDF