Project

General

Profile

Actions

Bug #101208

closed

TypeError "rtrim(): Argument #1 ($string) must be of type string, int given" when activating EXT:adminpanel in frontend

Added by Stephan Großberndt 10 months ago. Updated 10 months ago.

Status:
Resolved
Priority:
Should have
Category:
AdminPanel
Target version:
-
Start date:
2023-06-30
Due date:
% Done:

100%

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

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?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #97202: PHP 8.1 types for ArrayUtilityClosedLarry Garfield2022-03-17

Actions
Actions #1

Updated by Gerrit Code Review 10 months 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

Actions #2

Updated by Gerrit Code Review 10 months 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

Actions #3

Updated by Gerrit Code Review 10 months 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

Actions #4

Updated by Gerrit Code Review 10 months 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

Actions #5

Updated by Gerrit Code Review 10 months 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

Actions #6

Updated by Christian Kuhn 10 months ago

  • Related to Task #97202: PHP 8.1 types for ArrayUtility added
Actions #7

Updated by Gerrit Code Review 10 months 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

Actions #8

Updated by Gerrit Code Review 10 months 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

Actions #9

Updated by Stephan Großberndt 10 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF