[SOLVED] Error in 13.3. [No request given. ConfigurationManager has not been initialized properly]

I’ve been trying to upgrade from 13.1 (which is working correctly) to 13.3 or 13.4… I am using an Authentication service after a login, and trying access a repository class during this step.
Instantiating the repository is throwing the following error:

Exception: No request given. ConfigurationManager has not been initialized properly.

It seems to be triggered by the ConfigurationManager having no $request: typo3/typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php at 13.3 · TYPO3/typo3 · GitHub

This check for the request doesn’t exist in 13.1 and earlier versions. How should I be setting up this request in an AuthenticationService context, to access models and repositories there?

Thank you.

It sounds like you are trying to instantiate a repository - which is part of Extbase - at a point (likely in a PSR-15 middleware, where authentication stuff is handled) where Extbase itself hasn’t yet been bootstrapped (incl. the ConfigurationManager) - this happens after all PSR-15 middlewares have been executed.

I’m afraid using Extbase-related APIs at this point won’t work out, but maybe you can use QueryBuilder instead?

1 Like

Ok. The extbase related APIs were working in the Middleware for v12 and v13.1.

I’ll swap to using querybuilder then.

Thanks.