#109626UnexpectedValueException Invalid version string "14.3.0-dev-alpha" when opening ExtensionManager in classic mode
Description
This is a pretty odd combination of a user error, but I want to report it here anywhere, since it can be hard to debug:
Given an extension “test_demo” in classic mode, located in typo3conf/ext/test_demo/
with an invalid composer.json package type “typo3-cms-framework” (instead of “typo3-cms-extension”) and an “alpha” state in ext_emconf.php, an Exception is
generated in ExtensionManager overview and also in bin/typo3 extension:activate test_demo
This worked with 14.2.0 and is a result of https://review.typo3.org/c/Packages/TYPO3.CMS/+/93611
Reproduction files:
typo3conf/ext/test_demo/ext_emconf.php
<?php
$EM_CONF[$_EXTKEY] = [
'title' => 'demo',
'state' => 'alpha',
'version' => '1.0.0',
];
typo3conf/ext/test_demo/composer.json
{
"name": "my/test-demo",
"type": "typo3-cms-framework",
"extra": {
"typo3/cms": {
"extension-key": "test_demo"
}
}
}
Again, I’m not sure this is a real bug, given the invalid extension type, but maybe it points to other problems.
Also exception messages that point to the affected extension could be very helpful, in case similar problems arise in TYPO3 14.3 with other legacy extensions that are about to be migrated.
Stacktrace:
(1/1)
UnexpectedValueException
Invalid version string "14.3.0-dev-alpha"
in /var/www/html/TYPO3.CMS/vendor/composer/semver/src/VersionParser.php line 191
at Composer\Semver\VersionParser -> normalize ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Package/MetaData.php line 156
at TYPO3\CMS\Core\Package\MetaData -> setVersion ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Package/Package.php line 168
at TYPO3\CMS\Core\Package\Package -> createPackageMetaData ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Package/Package.php line 115
at TYPO3\CMS\Core\Package\Package -> __construct ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Package/PackageManager.php line 461
at TYPO3\CMS\Core\Package\PackageManager -> registerPackagesFromConfiguration ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Package/PackageManager.php line 329
at TYPO3\CMS\Core\Package\PackageManager -> scanAvailablePackages ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Package/PackageManager.php line 389
at TYPO3\CMS\Core\Package\PackageManager -> packagesMayHaveChanged ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/EventDispatcher/EventDispatcher.php line 49
at TYPO3\CMS\Core\EventDispatcher\EventDispatcher -> dispatch ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php line 123
at TYPO3\CMS\Extensionmanager\Utility\ListUtility -> getAvailableExtensions ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php line 294
at TYPO3\CMS\Extensionmanager\Utility\ListUtility -> getAvailableAndInstalledExtensionsWithAdditionalInformation ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extensionmanager/Classes/Controller/ListController.php line 84
at TYPO3\CMS\Extensionmanager\Controller\ListController -> indexAction ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 480
at TYPO3\CMS\Extbase\Mvc\Controller\ActionController -> callActionMethod ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 385
at TYPO3\CMS\Extbase\Mvc\Controller\ActionController -> processRequest ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php line 68
at TYPO3\CMS\Extbase\Mvc\Dispatcher -> dispatch ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/extbase/Classes/Core/Bootstrap.php line 214
at TYPO3\CMS\Extbase\Core\Bootstrap -> handleBackendRequest ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Http/RouteDispatcher.php line 84
at TYPO3\CMS\Backend\Http\RouteDispatcher -> dispatch ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Http/RequestHandler.php line 85
at TYPO3\CMS\Backend\Http\RequestHandler -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Middleware/ResponsePropagation.php line 34
at TYPO3\CMS\Core\Middleware\ResponsePropagation -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/AdditionalResponseHeaders.php line 37
at TYPO3\CMS\Backend\Middleware\AdditionalResponseHeaders -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/PageContextInitialization.php line 66
at TYPO3\CMS\Backend\Middleware\PageContextInitialization -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/SiteResolver.php line 64
at TYPO3\CMS\Backend\Middleware\SiteResolver -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/SudoModeInterceptor.php line 62
at TYPO3\CMS\Backend\Middleware\SudoModeInterceptor -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/JavaScriptLabelImportMapEntryResolver.php line 53
at TYPO3\CMS\Backend\Middleware\JavaScriptLabelImportMapEntryResolver -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/ContentSecurityPolicyHeaders.php line 60
at TYPO3\CMS\Backend\Middleware\ContentSecurityPolicyHeaders -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/BackendModuleValidator.php line 207
at TYPO3\CMS\Backend\Middleware\BackendModuleValidator -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/BackendUserAuthenticator.php line 171
at TYPO3\CMS\Backend\Middleware\BackendUserAuthenticator -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/reactions/Classes/Http/Middleware/ReactionResolver.php line 56
at TYPO3\CMS\Reactions\Http\Middleware\ReactionResolver -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Middleware/RequestTokenMiddleware.php line 71
at TYPO3\CMS\Core\Middleware\RequestTokenMiddleware -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/BackendRouteInitialization.php line 77
at TYPO3\CMS\Backend\Middleware\BackendRouteInitialization -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/ContentSecurityPolicyReporter.php line 45
at TYPO3\CMS\Backend\Middleware\ContentSecurityPolicyReporter -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php line 55
at TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php line 76
at TYPO3\CMS\Backend\Middleware\LockedBackendGuard -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php line 44
at TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 70
at TYPO3\CMS\Core\Http\MiddlewareDispatcher -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/AbstractApplication.php line 83
at TYPO3\CMS\Core\Http\AbstractApplication -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/backend/Classes/Http/Application.php line 56
at TYPO3\CMS\Backend\Http\Application -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/RequestHandler.php line 38
at TYPO3\CMS\Core\Http\RequestHandler -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Middleware/ResponsePropagation.php line 34
at TYPO3\CMS\Core\Middleware\ResponsePropagation -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php line 44
at TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Middleware/VerifyHostHeader.php line 55
at TYPO3\CMS\Core\Middleware\VerifyHostHeader -> process ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 162
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$21ca -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 70
at TYPO3\CMS\Core\Http\MiddlewareDispatcher -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/AbstractApplication.php line 83
at TYPO3\CMS\Core\Http\AbstractApplication -> handle ( )
in /var/www/html/TYPO3.CMS/typo3/sysext/core/Classes/Http/AbstractApplication.php line 106
at TYPO3\CMS\Core\Http\AbstractApplication -> run ( )
in /var/www/html/TYPO3.CMS/index.php line 28
at {closure} ( )
in /var/www/html/TYPO3.CMS/index.php line 33Reviews 3
Related issues 1
History 712
-
Benjamin Franzke changed Related to #109485 <span data-processor="relativetime" data-value="2026-04-17T11:24:00+00:00" > 04/17/26, 11:24 </span>
-
Benjamin Franzke changed priority
Should haveCould have <span data-processor="relativetime" data-value="2026-04-17T11:25:11+00:00" > 04/17/26, 11:25 </span> -
Helmut Hummel changed status
NewAccepted <span data-processor="relativetime" data-value="2026-04-17T17:14:12+00:00" > 04/17/26, 17:14 </span> -
Gerrit Code Review pushed patch set 1 for main to change 93721 status
AcceptedUnder Review <span data-processor="relativetime" data-value="2026-04-17T17:14:50+00:00" > 04/17/26, 17:14 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93721 <span data-processor="relativetime" data-value="2026-04-17T17:17:05+00:00" > 04/17/26, 17:17 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 93721 <span data-processor="relativetime" data-value="2026-04-17T17:54:49+00:00" > 04/17/26, 17:54 </span>
-
Benjamin Franzke commented <span data-processor="relativetime" data-value="2026-04-20T09:36:44+00:00" > 04/20/26, 09:36 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 93745 <span data-processor="relativetime" data-value="2026-04-20T09:40:46+00:00" > 04/20/26, 09:40 </span>
-
Helmut Hummel commented <span data-processor="relativetime" data-value="2026-04-20T10:55:52+00:00" > 04/20/26, 10:55 </span>
Benjamin Franzke wrote in #note-7:
> I found another case, when defining a version with a -dev suffix in ext_emconf, like “5.2.0-dev” and providing an explicit state.
>
> Here is an example from an older state of an extension that I had in my folder which produced the same exception but with “‘5.2.0-dev-stable” as invalid version:
> https://github.com/evoWeb/sessionplaner/blob/8b62ba48dd0b587e8915ae432cb117c3a0277548/ext_emconf.php#L17-L19I don’t think this has been documented to be a valid version number tbh.
Also quite strange to mark an extension as stable and as dev at the same time.
-
Gerrit Code Review pushed patch set 2 for main to change 93745 <span data-processor="relativetime" data-value="2026-04-20T16:49:59+00:00" > 04/20/26, 16:49 </span>
-
Benjamin Franzke commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-20T17:20:09+00:00" > 04/20/26, 17:20 </span>Applied in changeset commit:449e7c7533cd77b947556a5f025b1deffdaef8a9.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-04-21T11:30:38+00:00" > 04/21/26, 11:30 </span>
I found another case, when defining a version with a -dev suffix in ext_emconf, like “5.2.0-dev” and providing an explicit state.
Here is an example from an older state of an extension that I had in my folder which produced the same exception but with “‘5.2.0-dev-stable” as invalid version:
https://github.com/evoWeb/sessionplaner/blob/8b62ba48dd0b587e8915ae432cb117c3a0277548/ext_emconf.php#L17-L19