Project

General

Profile

Actions

Bug #90598

closed

Initialize emulated PageLayoutView before calling hooks

Added by Christian Eßl about 4 years ago. Updated about 4 years ago.

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

100%

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

Description

With the new Fluid based PageLayoutView, the preview rendering hook of ext:form fails:

htmlspecialchars() expects parameter 1 to be string, null given

in /var/www/html/typo3/sysext/form/Classes/Hooks/FormPagePreviewRenderer.php line 63
        array &$row
    ) {
        if ($row['CType'] === 'form_formframework') {
            $contentType = $parentObject->CType_labels[$row['CType']];
            $itemContent .= $parentObject->linkEditContent('<strong>' . htmlspecialchars($contentType) . '</strong>', $row) . '<br />';

            $flexFormData = GeneralUtility::makeInstance(FlexFormService::class)
                ->convertFlexFormContentToArray($row['pi_flexform']);

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Feature #78450: Introduce PreviewRenderer patternClosed2016-10-26

Actions
Related to TYPO3 Core - Bug #90556: TYPO3 Exception: htmlspecialchars() expects parameter 1 to be string, null given ClosedGeorg Ringer2020-02-27

Actions
Related to TYPO3 Core - Bug #90828: Unable to edit page with formClosed2020-03-25

Actions
Related to TYPO3 Core - Bug #90863: htmlspecialchars() expects parameter 1 to be string, null givenClosed2020-03-27

Actions
Actions #1

Updated by Gerrit Code Review about 4 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/+/63503

Actions #2

Updated by Daniel Goerz about 4 years ago

Actions #3

Updated by Gerrit Code Review about 4 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/+/63503

Actions #4

Updated by Gerrit Code Review about 4 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/+/63503

Actions #5

Updated by Gerrit Code Review about 4 years ago

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

Actions #6

Updated by Christian Eßl about 4 years ago

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

Updated by Georg Ringer about 4 years ago

  • Related to Bug #90556: TYPO3 Exception: htmlspecialchars() expects parameter 1 to be string, null given added
Actions #8

Updated by Georg Ringer about 4 years ago

  • Related to Bug #90828: Unable to edit page with form added
Actions #9

Updated by Christian Eßl about 4 years ago

  • Related to Bug #90863: htmlspecialchars() expects parameter 1 to be string, null given added
Actions #10

Updated by Benni Mack about 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF