Project

General

Profile

Actions

Bug #99073

closed

PHP Warning: Uninitialized string offset 0 in /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 3691

Added by Christian Toffolo over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-11-12
Due date:
% Done:

100%

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

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.

Actions #1

Updated by Chris Müller over 1 year 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?

Actions #2

Updated by Christian Toffolo over 1 year 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.

Actions #3

Updated by Gerrit Code Review over 1 year 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

Actions #4

Updated by Gerrit Code Review over 1 year 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

Actions #5

Updated by Christian Kuhn over 1 year ago

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

Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF