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

Also available in: Atom PDF