Project

General

Profile

Actions

Bug #98071

closed

Type error within TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode

Added by Timo Webler almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-08-04
Due date:
% Done:

100%

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

Description

Within the class TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode the following error can occurred

TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode(): Return value must be of type string, null returned

The method \TYPO3\CMS\Backend\Routing\PreviewUriBuilder::buildImmediateActionElement can return null, but the method \TYPO3\CMS\Backend\Controller\EditDocumentController::generatePreviewCode must return an string.

This can haben, if the preview page ist not accessable.

Maybe a type cast fix these issue.


Files

image.png (187 KB) image.png Timo Webler, 2022-08-04 07:21
Actions

Also available in: Atom PDF