Project

General

Profile

Actions

Bug #96953

closed

Deprecation notice when passing null value to HtmlViewHelper

Added by Chris Müller almost 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-02-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Given the following Fluid code:

{variableWithNullValue -> f:format.html()}

throws the deprecation notice:

PHP Runtime Deprecation Notice: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/public/typo3/sysext/core/Classes/Html/HtmlParser.php line 60

Reason is in HtmlViewHelper where $renderChildrenClosure() returns null in this case and passes it further on until the notice is thrown in HtmlParser.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #100338: TypeError due to missing type cast on pageUid in TYPO3\CMS\Fluid\ViewHelpers\Uri\ActionViewHelperClosed2023-03-28

Actions
Related to TYPO3 Core - Bug #102029: Deprecation notice when using CE "Related pages" (menu_related_pages)Closed2023-09-25

Actions
Actions #1

Updated by Gerrit Code Review almost 3 years 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/+/73588

Actions #2

Updated by Gerrit Code Review over 2 years 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/+/73658

Actions #3

Updated by Chris Müller over 2 years ago

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

Updated by Gerrit Code Review over 2 years ago

  • Status changed from Resolved to Under Review

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

Actions #5

Updated by Gerrit Code Review over 2 years ago

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

Actions #6

Updated by Gerrit Code Review over 2 years ago

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

Actions #7

Updated by Gerrit Code Review over 2 years ago

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

Actions #8

Updated by Chris Müller over 2 years ago

  • Status changed from Under Review to Resolved
Actions #9

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions #10

Updated by Christian Kuhn over 1 year ago

  • Related to Bug #100338: TypeError due to missing type cast on pageUid in TYPO3\CMS\Fluid\ViewHelpers\Uri\ActionViewHelper added
Actions #11

Updated by Christian Kuhn over 1 year ago

i still thing these are bugs in fluid, see https://notes.typo3.org/X3W0AaGaSE2eB4xou7nIVg ... i think we should strive to fix it in fluid mid-term.

Actions #12

Updated by Ramón Schlosser about 1 year ago

  • Related to Bug #102029: Deprecation notice when using CE "Related pages" (menu_related_pages) added
Actions

Also available in: Atom PDF