Issue Bug Closed

#107607Scheduler System Status Update: Undefined array key "HTTP_HOST"

Benjamin Franzke 10/06/25, 06:59 updated 12/02/25, 13:04

Description

Since the merge of
> 90813: [BUGFIX] Enable EnvironmentStatusReport for cli | https://review.typo3.org/c/Packages/TYPO3.CMS/+/90813

the status report in CLI context (which needs to be executed via scheduler)

errors with an undefined array key PHP warning because the install tool environment checks try to use the current URL/Host Header to perform checks/tests on the live server. That’s the reason why these checks were excluded from CLI.

bin/typo3 scheduler:run -i 3

 [ERROR] PHP Warning: Undefined array key "HTTP_HOST" in                                                                
         /var/www/html/TYPO3.CMS/typo3/sysext/install/Classes/SystemEnvironment/SetupCheck.php line 76                  
         Exception in scheduler task #3 (TYPO3\CMS\Reports\Task\SystemStatusUpdateTask - System Status Update)          

         File: /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Error/ErrorHandler.php:141    

Reviews 2