Actions
Bug #99509
closedToo many CompositeExpression::addMultiple deprecation warnings on Windows
Start date:
2023-01-10
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
On TYPO3 v12.1.3 running under Windows, the deprecation log is flooded with multiple deprecation warnings on every request (FE or BE):
CompositeExpression::addMultiple() will be removed in TYPO3 v13.0. Use CompositeExpression::with() instead.
They are generated by the core itself, not by a 3rd party extension.
The stacktrace is as follows:
#0 /vendor/doctrine/dbal/src/Query/Expression/CompositeExpression.php(52): TYPO3/CMS/Core/Database/Query/Expression/CompositeExpression->addMultiple(Array) #1 /vendor/typo3/cms-core/Classes/Database/Query/Expression/CompositeExpression.php(47): Doctrine/DBAL/Query/Expression/CompositeExpression->__construct('AND', Array) #2 /vendor/typo3/cms-core/Classes/Database/Query/Expression/CompositeExpression.php(131): TYPO3/CMS/Core/Database/Query/Expression/CompositeExpression->__construct('AND', Array) #3 /vendor/typo3/cms-core/Classes/Database/Query/Expression/ExpressionBuilder.php(100): TYPO3/CMS/Core/Database/Query/Expression/CompositeExpression::and() #4 /vendor/typo3/cms-core/Classes/Database/Query/Restriction/DeletedRestriction.php(49): TYPO3/CMS/Core/Database/Query/Expression/ExpressionBuilder->and() #5 /vendor/typo3/cms-core/Classes/Database/Query/Restriction/AbstractRestrictionContainer.php(51): TYPO3/CMS/Core/Database/Query/Restriction/DeletedRestriction->buildExpression(Array, Object(TYPO3/CMS/Core/Database/Query/Expression/ExpressionBuilder)) #6 /vendor/typo3/cms-core/Classes/Database/Query/QueryBuilder.php(1345): TYPO3/CMS/Core/Database/Query/Restriction/AbstractRestrictionContainer->buildExpression(Array, Object(TYPO3/CMS/Core/Database/Query/Expression/ExpressionBuilder)) #7 /vendor/typo3/cms-core/Classes/Database/Query/QueryBuilder.php(276): TYPO3/CMS/Core/Database/Query/QueryBuilder->addAdditionalWhereConditions() #8 /vendor/typo3/cms-core/Classes/Session/Backend/DatabaseSessionBackend.php(95): TYPO3/CMS/Core/Database/Query/QueryBuilder->executeQuery() #9 /vendor/typo3/cms-core/Classes/Session/UserSessionManager.php(325): TYPO3/CMS/Core/Session/Backend/DatabaseSessionBackend->get('2bf93c3c28b416e...') #10 /vendor/typo3/cms-core/Classes/Session/UserSessionManager.php(98): TYPO3/CMS/Core/Session/UserSessionManager->getSessionFromSessionId('2bf93c3c28b416e...') #11 /vendor/typo3/cms-core/Classes/Authentication/AbstractUserAuthentication.php(263): TYPO3/CMS/Core/Session/UserSessionManager->createFromRequestOrAnonymous(Object(TYPO3/CMS/Core/Http/ServerRequest), 'be_typo_user') #12 /vendor/typo3/cms-frontend/Classes/Middleware/BackendUserAuthenticator.php(94): TYPO3/CMS/Core/Authentication/AbstractUserAuthentication->start(Object(TYPO3/CMS/Core/Http/ServerRequest)) #13 /vendor/typo3/cms-frontend/Classes/Middleware/BackendUserAuthenticator.php(62): TYPO3/CMS/Frontend/Middleware/BackendUserAuthenticator->initializeBackendUser(Object(TYPO3/CMS/Core/Http/ServerRequest)) #14 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Frontend/Middleware/BackendUserAuthenticator->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #15 /vendor/typo3/cms-core/Classes/Middleware/RequestTokenMiddleware.php(71): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #16 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Core/Middleware/RequestTokenMiddleware->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #17 /vendor/typo3/cms-frontend/Classes/Middleware/MaintenanceMode.php(51): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #18 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Frontend/Middleware/MaintenanceMode->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #19 /vendor/typo3/cms-frontend/Classes/Middleware/SiteResolver.php(61): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #20 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Frontend/Middleware/SiteResolver->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #21 /vendor/typo3/cms-frontend/Classes/Middleware/EidHandler.php(52): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #22 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Frontend/Middleware/EidHandler->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #23 /vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php(41): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #24 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Core/Middleware/NormalizedParamsAttribute->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #25 /vendor/typo3/cms-core/Classes/Middleware/VerifyHostHeader.php(55): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #26 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Core/Middleware/VerifyHostHeader->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #27 /vendor/typo3/cms-frontend/Classes/Middleware/TimeTrackerInitialization.php(54): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #28 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(162): TYPO3/CMS/Frontend/Middleware/TimeTrackerInitialization->process(Object(TYPO3/CMS/Core/Http/ServerRequest), Object(Psr/Http/Server/RequestHandlerInterface@anonymous)) #29 /vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php(70): Psr/Http/Server/RequestHandlerInterface@anonymous->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #30 /vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(80): TYPO3/CMS/Core/Http/MiddlewareDispatcher->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #31 /vendor/typo3/cms-frontend/Classes/Http/Application.php(59): TYPO3/CMS/Core/Http/AbstractApplication->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #32 /vendor/typo3/cms-core/Classes/Http/AbstractApplication.php(92): TYPO3/CMS/Frontend/Http/Application->handle(Object(TYPO3/CMS/Core/Http/ServerRequest)) #33 /public/index.php(20): TYPO3/CMS/Core/Http/AbstractApplication->run() #34 /public/index.php(21): {closure}()
Actions