Bug #99073
closedPHP Warning: Uninitialized string offset 0 in /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 3691
100%
Description
With PHP 8.1, the method\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::_parseFunc
produce a PHP Warning: Uninitialized string offset 0 in /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 3691
with a $theValue like> > > CLICK HERE < < <
The value arrives from the bodytext field of a tx_news_domain_model_news record.
Updated by Chris Müller about 2 years ago
- Status changed from New to Needs Feedback
I can't reproduce neither with bodytext from text/media element nor with a news item (news 10.0.2) on a default installation. Have you adjusted something in the parseFunc configuration?
Updated by Ian Solo about 2 years ago
Please, just temporarily set:$theValue = '> > > CLICK HERE < < <';
at the beginning of ContentObjectRenderer::_parseFunc method to reproduce the warning.
The fact that the value comes from EXT:news is secondary.
Updated by Gerrit Code Review almost 2 years ago
- Status changed from Needs Feedback 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/+/77322
Updated by Gerrit Code Review almost 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/+/77328
Updated by Christian Kuhn almost 2 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset e936a18c2bd3898a9cf1b392f2c578c2992defd3.