Actions
Bug #95921
closedArray to string conversion error in ContentObjectRenderer (PHP8)
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-11-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
With the following configuration of a DatabaseQueryProcessor:
10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor 10 { table = tx_myext_table where = parent=###pages_uid### and parenttable="pages" orderBy = sorting markers { pages_uid.field = uid } includeRecordsWithoutDefaultTranslation = 1 as = records }
The following error occurs:
PHP Warning: Array to string conversion in /var/www/html/public/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 6098
The problem here is that the orderBy part stored as an array:
[ [ 'sorting', null ] ]
and used as $queryPartValue:
$queryPartValue = str_replace('###' . $marker . '###', $markerValue, $queryPartValue);
Actions