Project

General

Profile

Actions

Bug #105723

open

Using function "Update TYPO3 Core" leads to exception #1476107295 (Undefined array key "version")

Added by Stefan Wagler 11 days ago. Updated 10 days ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2024-11-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
backend, upgrade
Complexity:
trivial
Is Regression:
No
Sprint Focus:

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}"}

Actions

Also available in: Atom PDF