Bug #96953
closedDeprecation notice when passing null value to HtmlViewHelper
100%
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.
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
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
Updated by Chris Müller over 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 09640f826f3822239c56b5e41f6dde9f595ea36c.
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
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
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
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
Updated by Chris Müller over 2 years ago
- Status changed from Under Review to Resolved
Applied in changeset f1f6b54860ccb8b7b399461986700f4c2f924b14.
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
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.
Updated by Ramón Schlosser about 1 year ago
- Related to Bug #102029: Deprecation notice when using CE "Related pages" (menu_related_pages) added