Project

General

Profile

Actions

Bug #99946

closed

Mount Points broken after Update to 11.5.23

Added by Christoph Runkel over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2023-02-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

Description

After update to 11.5.23 i get the following error on some pages with mount points set.

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to TYPO3\CMS\Core\Utility\RootlineUtility::sanitizeMountPointParameter() must be of the type string, null given, called in /home/xxxxxxx/typo3_src-11.5.23/typo3/sysext/core/Classes/Utility/RootlineUtility.php on line 136 | TypeError thrown in file /home/xxxxxxxx/typo3_src-11.5.23/typo3/sysext/core/Classes/Utility/RootlineUtility.php in line 427. Requested URL: https://www.xxxxxxxxx/ xxxxx

Problem that NULL is set somewhere else and passed into the function.

public function __construct($uid, $mountPointParameter = '', $context = null)
    {

        $this->mountPointParameter = $this->sanitizeMountPointParameter($mountPointParameter);
        .....
}

False

After this change everything works fine again...

public function __construct($uid, $mountPointParameter = '', $context = null)
    {
        if ($this->mountPointParameter)
        {
        $this->mountPointParameter = $this->sanitizeMountPointParameter($mountPointParameter);
        }

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #99731: PHP Warning: Undefined array key 1 in in /typo3_src-11.5.22/web/typo3/sysext/core/Classes/Utility/RootlineUtility.php line 431Closed2023-01-27

Actions
Actions

Also available in: Atom PDF