Bug #101208
closedTypeError "rtrim(): Argument #1 ($string) must be of type string, int given" when activating EXT:adminpanel in frontend
100%
Description
I am using EXT:felogin
in a v12 site with PHP 8.2 and tried to activate EXT:adminpanel
. After clicking to activate it, a TypeError breaks the frontend rendering completely:
rtrim(): Argument #1 ($string) must be of type string, int given
in vendor/typo3/cms-core/Classes/Utility/ArrayUtility.php line 475
calling $key = rtrim($key, '.');
due to vendor/typo3/cms-adminpanel/Classes/Modules/Info/UserIntInformation.php line 79
calling $conf = ArrayUtility::flatten($conf);
for this array (typoscript definitions of felogin-Paths):
array(3) { ["templateRootPaths."]=> array(1) { [10]=> string(0) "" } ["partialRootPaths."]=> array(1) { [10]=> string(0) "" } ["layoutRootPaths."]=> array(1) { [10]=> string(0) "" } }
Apparently this is a problem because the keys of the typoscript definitions of felogin-Paths are not string, but int. Did something change here recently, maybe due to a fluid update?
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79569
Updated by Gerrit Code Review over 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79569
Updated by Gerrit Code Review over 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79569
Updated by Gerrit Code Review over 1 year ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79569
Updated by Gerrit Code Review over 1 year ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79569
Updated by Christian Kuhn over 1 year ago
- Related to Task #97202: PHP 8.1 types for ArrayUtility added
Updated by Gerrit Code Review over 1 year ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79569
Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79535
Updated by Stephan Großberndt over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4386229180ea6250ef2f7d99ef0da72bfd5d91ea.