Bug #65576
closedmergeWithExistingConfiguration() fails for some extension configs.
100%
Description
I ran into this error:
PHP Catchable fatal error: Argument 1 passed to TYPO3\CMS\Core\Utility\ArrayUtility::flatten() must be of the type array, boolean given, called in /var/www/typo3_src/typo3_src-6.2.9/typo3/sysext/extensionmanager/Classes/Domain/Repository/ConfigurationItemRepository.php on line 174 and defined in /var/www/typo3_src/typo3_src-6.2.9/typo3/sysext/core/Classes/Utility/ArrayUtility.php on line 383```
After short googling, this error seems somehow related to this bug: https://forge.typo3.org/issues/40864, which was resolved in summer 2012: https://review.typo3.org/#/c/14548/
However, unserialize might not throw an exception but just return false or something else (according to http://php.net/manual/en/function.unserialize.php#refsect1-function.unserialize-returnvalues the return value is mixed and can be a boolean, integer, float, string, array or object).
So I suggest to add another line to the try block of ConfigurationItemRepository.php::mergeWithExistingConfiguration():
assert(is_array($currentExtensionConfig));
Unfortunately, I can't provide the offending extension configuration, because the problem disappeared after (dirty) patching the core.
Updated by Gerrit Code Review over 9 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 http://review.typo3.org/37761
Updated by Stephan Großberndt over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset db8a3b115b610a9f519bb403af3160a8352c9259.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/37859
Updated by Stephan Großberndt over 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset 78bf3311be487f7b42e827a7bc2ea041f1630ae0.