Project

General

Profile

Actions

Bug #102029

closed

Deprecation notice when using CE "Related pages" (menu_related_pages)

Added by Ramón Schlosser 7 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2023-09-25
Due date:
% Done:

100%

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

Description

When using the CE "Related pages" (menu_related_pages) and having pages in the list with no keyword selected the following exception occurs:

PHP Runtime Deprecation Notice: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/vendor/typo3/cms-frontend/Classes/ContentObject/ContentObjectRenderer.php line 4760

The problem seems to be that when creating ne pages the keywords are `NULL`. A simple "Null coalescing operator" in /typo3/cms-frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php:828 should fix the issue:

$kw = trim($this->parent_cObj->keywords($value_rec[$kfieldSrc] ?? ''));

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #96953: Deprecation notice when passing null value to HtmlViewHelperClosed2022-02-17

Actions
Actions #1

Updated by Ramón Schlosser 7 months ago

  • Description updated (diff)
Actions #2

Updated by Ramón Schlosser 7 months ago

  • Related to Bug #96953: Deprecation notice when passing null value to HtmlViewHelper added
Actions #3

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 2 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/+/81232

Actions #4

Updated by Gerrit Code Review 7 months ago

Patch set 3 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/+/81232

Actions #5

Updated by Gerrit Code Review 7 months ago

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/+/81234

Actions #6

Updated by Gerrit Code Review 7 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/+/81234

Actions #7

Updated by Gerrit Code Review 7 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/+/81234

Actions #8

Updated by Gerrit Code Review 7 months ago

Patch set 4 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/+/81232

Actions #9

Updated by Gerrit Code Review 7 months ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81197

Actions #10

Updated by Gerrit Code Review 7 months ago

Patch set 5 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/+/81232

Actions #11

Updated by Ramón Schlosser 7 months ago

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

Also available in: Atom PDF