Bug #105723
openUsing function "Update TYPO3 Core" leads to exception #1476107295 (Undefined array key "version")
0%
Description
Using the function "Update TYPO3 Core" crashes the TYPO3 backend (TYPO3 12.4.23, legacy installation).
The problem is caused by trying to access a (somehow) non existing array key (see error below).
Maybe there is just a temporary problem when trying to retrieve data from the TYPO3 servers, but accessing the non existing array key should be avoided.
Thu, 28 Nov 2024 16:23:29 +0000 [CRITICAL] request="01dc27f7a1350" component="TYPO3.CMS.Core.Error.DebugExceptionHandler": Core: Exception handler (WEB: BE): TYPO3\CMS\Core\Error\Exception, code #1476107295, file /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Error/ErrorHandler.php, line 141: PHP Warning: Undefined array key "version" in /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/CoreVersion/MajorRelease.php line 40- Exception: PHP Warning: Undefined array key "version" in /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/CoreVersion/MajorRelease.php line 40, in file /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Error/ErrorHandler.php:141 - {"mode":"WEB","application_mode":"BE","exception_class":"TYPO3\\CMS\\Core\\Error\\Exception","exception_code":1476107295,"file":"/pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Error/ErrorHandler.php","line":141,"message":"PHP Warning: Undefined array key \"version\" in /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/CoreVersion/MajorRelease.php line 40","request_url":"http://www.project.local/typo3/install.php?install%5Bcontroller%5D=upgrade&install%5Bcontext%5D=backend&install[action]=coreUpdateIsUpdateAvailable","exception":"TYPO3\\CMS\\Core\\Error\\Exception: PHP Warning: Undefined array key \"version\" in /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/CoreVersion/MajorRelease.php line 40 in /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Error/ErrorHandler.php:141
Stack trace:
#0 /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/CoreVersion/MajorRelease.php(40): TYPO3\\CMS\\Core\\Error\\ErrorHandler->handleError()
#1 /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/Service/CoreVersionService.php(82): TYPO3\\CMS\\Install\\CoreVersion\\MajorRelease::fromApiResponse()
#2 /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/Controller/UpgradeController.php(394): TYPO3\\CMS\\Install\\Service\\CoreVersionService->getSupportedMajorReleases()
#3 /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/Middleware/Maintenance.php(234): TYPO3\\CMS\\Install\\Controller\\UpgradeController->coreUpdateIsUpdateAvailableAction()
#4 /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(111): TYPO3\\CMS\\Install\\Middleware\\Maintenance->process()
#5 /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#6 /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3\\CMS\\Core\\Middleware\ormalizedParamsAttribute->process()
#7 /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php(70): Psr\\Http\\Server\\RequestHandlerInterface@anonymous->handle()
#8 /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Http/AbstractApplication.php(83): TYPO3\\CMS\\Core\\Http\\MiddlewareDispatcher->handle()
#9 /pathtoproject/typo3_src-12.4.23/typo3/sysext/install/Classes/Http/Application.php(46): TYPO3\\CMS\\Core\\Http\\AbstractApplication->handle()
#10 /pathtoproject/typo3_src-12.4.23/typo3/sysext/core/Classes/Http/AbstractApplication.php(95): TYPO3\\CMS\\Install\\Http\\Application->handle()
#11 /pathtoproject/typo3_src-12.4.23/typo3/install.php(19): TYPO3\\CMS\\Core\\Http\\AbstractApplication->run()
#12 /pathtoproject/typo3_src-12.4.23/typo3/install.php(20): {closure}()
#13 {main}"}
Updated by Stefan Wagler 8 days ago
As of 15:43 CET the problem within the TYPO3 backend is not occurring anymore.
Seems to be related to the remote server the TYPO3 core is getting data from. But I think the PHP problem (accessing non existing array keys) should be fixed.
Updated by Garvin Hicking 8 days ago
- Status changed from New to Closed
Yes, thanks for the update - as indicated, this was/is a hiccup with the dependencies powering the get.typo3.org API services. The changes were rolled back, and in the next days this will be addressed properly, ideally without further impact.
Thanks for reporting this, closing for now. :-)
Updated by Garvin Hicking 8 days ago
- Status changed from Closed to Accepted
On second thought, re-opening this one. I agree the array key error should be caught, and a proper exception about API mismatch needs to be emitted.