(1/1)
TypeError
TYPO3\CMS\Core\Session\UserSessionManager::getCookieScope(): Argument #1 ($normalizedParams) must be of type TYPO3\CMS\Core\Http\NormalizedParams, null given, called in /var/www/html/vendor/typo3/cms-core/Classes/Session/UserSessionManager.php on line 98
in /var/www/html/vendor/typo3/cms-core/Classes/Http/CookieScopeTrait.php line 27
* Returns the domain and path to be used for setting cookies.
* The information is taken from the value in $GLOBALS['TYPO3_CONF_VARS']['SYS']['cookieDomain'] if set,
* otherwise the normalized request params are used.
*/
private function getCookieScope(NormalizedParams $normalizedParams): CookieScope
{
$cookieDomain = $GLOBALS['TYPO3_CONF_VARS']['SYS']['cookieDomain'] ?? '';
// If a specific cookie domain is defined for a given application type, use that domain
if (!empty($GLOBALS['TYPO3_CONF_VARS'][$this->loginType]['cookieDomain'])) {
at TYPO3\CMS\Core\Session\UserSessionManager->getCookieScope(null)
in /var/www/html/vendor/typo3/cms-core/Classes/Session/UserSessionManager.php line 98
public function createFromRequestOrAnonymous(ServerRequestInterface $request, string $cookieName): UserSession
{
try {
$cookieValue = (string)($request->getCookieParams()[$cookieName] ?? '');
$scope = $this->getCookieScope($request->getAttribute('normalizedParams'));
$sessionId = UserSession::resolveIdentifierFromJwt($cookieValue, $scope);
} catch (\Exception $exception) {
$this->logger->debug('Could not resolve session identifier from JWT', ['exception' => $exception]);
}
at TYPO3\CMS\Core\Session\UserSessionManager->createFromRequestOrAnonymous(object(TYPO3\CMS\Core\Http\ServerRequest), 'be_typo_user')
in /var/www/html/vendor/typo3/cms-core/Classes/Authentication/AbstractUserAuthentication.php line 293
if (!isset($this->userSessionManager)) {
$this->initializeUserSessionManager();
}
$this->userSession = $this->userSessionManager->createFromRequestOrAnonymous($request, $this->name);
// Load user session, check to see if anyone has submitted login-information and if so authenticate
// the user with the session. $this->user[uid] may be used to write log...
try {
at TYPO3\CMS\Core\Authentication\AbstractUserAuthentication->start(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-core/Classes/Core/Bootstrap.php line 545
$backendUser = GeneralUtility::makeInstance($className);
// The global must be available very early, because methods below
// might trigger code which relies on it. See: #45625
$GLOBALS['BE_USER'] = $backendUser;
$backendUser->start($request);
}
/**
* Initializes and ensures authenticated access
at TYPO3\CMS\Core\Core\Bootstrap::initializeBackendUser('TYPO3\\CMS\\Core\\Authentication\\BackendUserAuthentication', object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/b13/container/Classes/Updates/ContainerMigrateSorting.php line 73
if (Environment::isCli() === false) {
if ((GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() > 11) {
$requestFactory = GeneralUtility::makeInstance(ServerRequestFactory::class);
$request = $requestFactory::fromGlobals();
Bootstrap::initializeBackendUser(BackendUserAuthentication::class, $request);
} else {
Bootstrap::initializeBackendUser();
}
Bootstrap::initializeBackendAuthentication();
at B13\Container\Updates\ContainerMigrateSorting->executeUpdate()
in /var/www/html/vendor/typo3/cms-install/Classes/Service/UpgradeWizardsService.php line 275
$performResult = true;
}
} else {
// confirmation yes or non-confirmable
$performResult = $wizard->executeUpdate();
}
$stream = $this->output->getStream();
rewind($stream);
at TYPO3\CMS\Install\Service\UpgradeWizardsService->executeWizard('container_migratesorting', array())
in /var/www/html/vendor/typo3/cms-install/Classes/Controller/UpgradeController.php line 1098
// ext_localconf, db and ext_tables must be loaded for the updates :(
$container = $this->lateBootService->loadExtLocalconfDatabaseAndExtTables(false);
$identifier = $request->getParsedBody()['install']['identifier'];
$values = $request->getParsedBody()['install']['values'] ?? [];
$messages = $container->get(UpgradeWizardsService::class)->executeWizard($identifier, $values);
$this->lateBootService->resetGlobalContainer();
return new JsonResponse([
'success' => true,
'status' => $messages,
at TYPO3\CMS\Install\Controller\UpgradeController->upgradeWizardsExecuteAction(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-install/Classes/Middleware/Maintenance.php line 230
'Unknown action method ' . $action . ' in controller ' . $controllerName,
1505216027
);
}
$response = $controller->$action($request);
}
return $response;
}
at TYPO3\CMS\Install\Middleware\Maintenance->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php:128$184))
in /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php line 111
}
public function handle(ServerRequestInterface $request): ResponseInterface
{
return $this->middleware->process($request, $this->next);
}
};
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php:93$183->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-core/Classes/Middleware/NormalizedParamsAttribute.php line 41
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
$request = $request->withAttribute('normalizedParams', NormalizedParams::createFromRequest($request));
return $handler->handle($request);
}
}
at TYPO3\CMS\Core\Middleware\NormalizedParamsAttribute->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php:93$183))
in /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php line 162
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at Psr\Http\Server\RequestHandlerInterface@anonymous/var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php:128$184->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-core/Classes/Http/MiddlewareDispatcher.php line 70
* Invoke the middleware stack
*/
public function handle(ServerRequestInterface $request): ResponseInterface
{
return $this->tip->handle($request);
}
/**
* Seed the middleware stack with the inner request handler
at TYPO3\CMS\Core\Http\MiddlewareDispatcher->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php line 80
public function handle(ServerRequestInterface $request): ResponseInterface
{
try {
$response = $this->requestHandler->handle($request);
} catch (ImmediateResponseException $exception) {
$response = $exception->getResponse();
}
return $response;
at TYPO3\CMS\Core\Http\AbstractApplication->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-install/Classes/Http/Application.php line 46
public function handle(ServerRequestInterface $request): ResponseInterface
{
$this->initializeContext();
$request = $request->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_INSTALL);
return parent::handle($request)
->withHeader('X-Frame-Options', 'SAMEORIGIN');
}
/**
at TYPO3\CMS\Install\Http\Application->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /var/www/html/vendor/typo3/cms-core/Classes/Http/AbstractApplication.php line 92
* Set up the application and shut it down afterwards
*/
final public function run()
{
$response = $this->handle(ServerRequestFactory::fromGlobals());
$this->sendResponse($response);
}
}
at TYPO3\CMS\Core\Http\AbstractApplication->run()
in /var/www/html/web/typo3/install.php line 19
call_user_func(static function () {
$classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_INSTALL);
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, true)->get(\TYPO3\CMS\Install\Http\Application::class)->run();
});
at {closure}()
in /var/www/html/web/typo3/install.php line 20
call_user_func(static function () {
$classLoader = require dirname(dirname(__DIR__)).'/vendor/autoload.php';
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_INSTALL);
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader, true)->get(\TYPO3\CMS\Install\Http\Application::class)->run();
});