Issue Bug Closed

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

Stefan Wagler 11/28/24, 16:43 updated 12/02/25, 14:31

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

Reviews 3

History 514

  1. Stefan Wagler commented 11/29/24, 14:47

    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.

  2. Garvin Hicking commented and changed status New Closed 11/29/24, 20:00

    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. :-)

  3. Garvin Hicking commented and changed status Closed Accepted 11/29/24, 20:01

    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.

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 87453 status Accepted Under Review 12/11/24, 17:04

  5. Gerrit Code Review pushed patch set 1 for 13.4 to change 87454 12/11/24, 17:06

  6. Gerrit Code Review pushed patch set 2 for 12.4 to change 87453 12/11/24, 17:06

  7. Gerrit Code Review pushed patch set 1 for main to change 87455 12/11/24, 17:07

  8. Gerrit Code Review pushed patch set 2 for 13.4 to change 87454 12/11/24, 17:07

  9. Gerrit Code Review pushed patch set 3 for 12.4 to change 87453 12/11/24, 17:07

  10. Gerrit Code Review pushed patch set 2 for main to change 87455 12/12/24, 10:07

  11. Gerrit Code Review pushed patch set 4 for 12.4 to change 87453 12/12/24, 10:50

  12. Gerrit Code Review pushed patch set 3 for 13.4 to change 87454 12/12/24, 10:50

  13. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 12/12/24, 12:10

    Applied in changeset commit:626400ab4081b3484330e19ba61b132c27eeff98.

  14. Benni Mack changed status Resolved Closed 12/02/25, 14:31