Issue Bug Closed

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

Timo Webler 08/04/22, 07:26 updated 10/04/22, 08:53

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.

image.png

Reviews 2