Project

General

Profile

Actions

Bug #93290

closed

"split" throws TypeError under DebugExceptionHandler

Added by Dmitry Dulepov over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2021-01-14
Due date:
% Done:

100%

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

Description

Typoscript:

  1 = LOAD_REGISTER
  1 {
    backendLayout.cObject = TEXT
    backendLayout.cObject {
      data = levelfield:-1, backend_layout_next_level, slide
      override.field = backend_layout
      split {
        token = pagets__
        1.current = 1
        1.wrap = |
      }
      ifEmpty = default
    }
  }

This will throw TypeException inside ContentObjectRenderer::splitObj() (see the attachment). The problem here is that this method expects either wrap or cObjNum in the split configuration but none of these properties are mandatory according to the documentation. Then in the loop there is a null passed to $this->stdWrapValue('wrap', $splitArr[$a]); as a second argument.


Files

TYPO3-Exception.html (97.4 KB) TYPO3-Exception.html Dmitry Dulepov, 2021-01-14 11:39
Actions #1

Updated by Dmitry Dulepov over 3 years ago

The problem does not exist in pre-11 versions.

Actions #2

Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

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

Actions #3

Updated by Gerrit Code Review over 3 years ago

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

Actions #4

Updated by Gerrit Code Review about 3 years ago

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

Actions #5

Updated by Dmitry Dulepov about 3 years ago

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

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF