Issue Bug Closed

#97542TYPO3 Module Reports throws Exception if no site exists

Josef Glatz 05/03/22, 11:37 updated 06/23/24, 13:17

Description

Requirements

Opening the reports module while having no site throws an error:

> *TypeError*
>
> TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::__construct(): Argument #2 ($site) must be of type TYPO3\CMS\Core\Site\Entity\Site, TYPO3\CMS\Core\Site\Entity\NullSite given, called in /var/www/html/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2943

image.png

How to test

The reports module must not break if no site is configured in a TYPO3 instance.

Reviews 3