in /html/typo3/typo3conf/ext/hantha_utils/Classes/PageHandler/NotFound.php line 98
protected function getLanguageIdentifier(): int
{
/** @var SiteLanguage $language */
$language = $this->request->getAttribute('language');
return $language->getLanguageId();
}
/**
* @return int
*/
at Hantha\HanthaUtils\PageHandler\NotFound->getLanguageIdentifier()
in /html/typo3/typo3conf/ext/hantha_utils/Classes/PageHandler/NotFound.php line 87
{
/** @var Site $site */
$site = $this->request->getAttribute('site');
/** @var Uri $uri */
$uri = $site->getRouter()->generateUri($this->pageNotFoundUid, ['_language' => $this->getLanguageIdentifier()]);
return $uri->__toString();
}
/**
at Hantha\HanthaUtils\PageHandler\NotFound->getPageNotFoundUrl()
in /html/typo3/typo3conf/ext/hantha_utils/Classes/PageHandler/NotFound.php line 68
* @throws RequestFailedException
*/
protected function getPageNotFoundContent(): string
{
$url = $this->getPageNotFoundUrl();
$requestFactory = GeneralUtility::makeInstance(RequestFactory::class);
$response = $requestFactory->request($url, 'GET');
if ($response->getStatusCode() === 200) {
if (strpos($response->getHeaderLine('Content-Type'), 'text/html') === 0) {
at Hantha\HanthaUtils\PageHandler\NotFound->getPageNotFoundContent()
in /html/typo3/typo3conf/ext/hantha_utils/Classes/PageHandler/NotFound.php line 59
$uri = $site->getRouter()->generateUri(267, ['_language' => $this->getLanguageIdentifier()]);
header('Location: ' . $uri->__toString(), true, 302);
exit;
}
return new HtmlResponse($this->getPageNotFoundContent(), 404);
}
/**
* @return string
at Hantha\HanthaUtils\PageHandler\NotFound->handlePageError(object(TYPO3\CMS\Core\Http\ServerRequest), 'The requested page does not exist', array('code' => 'page'))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Controller/ErrorController.php line 98
public function pageNotFoundAction(ServerRequestInterface $request, string $message, array $reasons = []): ResponseInterface
{
$errorHandler = $this->getErrorHandlerFromSite($request, 404);
if ($errorHandler instanceof PageErrorHandlerInterface) {
return $errorHandler->handlePageError($request, $message, $reasons);
}
try {
return $this->handleDefaultError($request, 404, $message);
} catch (\RuntimeException $e) {
at TYPO3\CMS\Frontend\Controller\ErrorController->pageNotFoundAction(object(TYPO3\CMS\Core\Http\ServerRequest), 'The requested page does not exist', array('code' => 'page'))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/SiteBaseRedirectResolver.php line 72
}
return GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction(
$request,
'The requested page does not exist',
['code' => PageAccessFailureReasons::PAGE_NOT_FOUND]
);
}
// Language is found, and hidden but also not visible to the BE user, this needs to fail
at TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/redirects/Classes/Http/Middleware/RedirectHandler.php line 85
return $response;
}
}
return $handler->handle($request);
}
protected function buildRedirectResponse(UriInterface $uri, array $redirectRecord): ResponseInterface
{
at TYPO3\CMS\Redirects\Http\Middleware\RedirectHandler->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3conf/ext/language_detection/Classes/Middleware/JsonDetectionMiddleware.php line 28
{
try {
return $this->jsonDetectionHandler->handle($request);
} catch (AbstractHandlerException $exception) {
return $handler->handle($request);
}
}
}
at Lochmueller\LanguageDetection\Middleware\JsonDetectionMiddleware->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3conf/ext/language_detection/Classes/Middleware/LanguageDetectionMiddleware.php line 28
{
try {
return $this->languageDetectionHandler->handle($request);
} catch (AbstractHandlerException $exception) {
return $handler->handle($request);
}
}
}
at Lochmueller\LanguageDetection\Middleware\LanguageDetectionMiddleware->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/FrontendUserAuthenticator.php line 91
if ($this->context->getAspect('frontend.user')->isLoggedIn() && $rateLimiter) {
$rateLimiter->reset();
}
$response = $handler->handle($request);
// Store session data for fe_users if it still exists
if ($frontendUser instanceof FrontendUserAuthentication) {
$frontendUser->storeSessionData();
at TYPO3\CMS\Frontend\Middleware\FrontendUserAuthenticator->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php line 78
Bootstrap::loadExtTables();
$this->setBackendUserAspect($GLOBALS['BE_USER']);
}
$response = $handler->handle($request);
// If, when building the response, the user is still available, then ensure that the headers are sent properly
if ($this->context->getAspect('backend.user')->isLoggedIn()) {
return $this->applyHeadersToResponse($response);
at TYPO3\CMS\Frontend\Middleware\BackendUserAuthenticator->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/MaintenanceMode.php line 55
) {
return GeneralUtility::makeInstance(ErrorController::class)->unavailableAction($request, 'This page is temporarily unavailable.');
}
// Continue the regular stack if no maintenance mode is active
return $handler->handle($request);
}
}
at TYPO3\CMS\Frontend\Middleware\MaintenanceMode->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/SiteResolver.php line 65
$request = $request->withAttribute('routing', $routeResult);
if ($routeResult->getLanguage() instanceof SiteLanguage) {
Locales::setSystemLocaleFromSiteLanguage($routeResult->getLanguage());
}
return $handler->handle($request);
}
}
at TYPO3\CMS\Frontend\Middleware\SiteResolver->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/EidHandler.php line 64
{
$eID = $request->getParsedBody()['eID'] ?? $request->getQueryParams()['eID'] ?? null;
if ($eID === null) {
return $handler->handle($request);
}
// Remove any output produced until now
ob_clean();
at TYPO3\CMS\Frontend\Middleware\EidHandler->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Middleware/NormalizedParamsAttribute.php line 45
*/
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(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Middleware/VerifyHostHeader.php line 55
1396795884
);
}
return $handler->handle($request);
}
/**
* Checks if the provided host header value matches the trusted hosts pattern.
at TYPO3\CMS\Core\Middleware\VerifyHostHeader->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Middleware/TimeTrackerInitialization.php line 58
$this->timeTracker->setEnabled($timeTrackingEnabled);
$this->timeTracker->start(microtime(true));
$this->timeTracker->push('');
$response = $handler->handle($request);
// Finish time tracking
$this->timeTracker->pull();
$this->timeTracker->finish();
at TYPO3\CMS\Frontend\Middleware\TimeTrackerInitialization->process(object(TYPO3\CMS\Core\Http\ServerRequest), object(class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 172
if (!$middleware instanceof MiddlewareInterface) {
throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342);
}
return $middleware->process($request, $this->next);
}
};
}
}
at class@anonymous /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$242->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 78
* @return ResponseInterface
*/
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 /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/AbstractApplication.php line 86
*/
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 /html/typo3/typo3_src-11.5.18/typo3/sysext/frontend/Classes/Http/Application.php line 69
// Create new request object having applicationType "I am a frontend request" attribute.
$request = $request->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_FE);
$this->initializeContext();
return parent::handle($request);
}
/**
* Create a PSR-7 Response that redirects to the install tool
at TYPO3\CMS\Frontend\Http\Application->handle(object(TYPO3\CMS\Core\Http\ServerRequest))
in /html/typo3/typo3_src-11.5.18/typo3/sysext/core/Classes/Http/AbstractApplication.php line 100
* @param callable $execute Deprecated, will be removed in TYPO3 v12.0
*/
final public function run(callable $execute = null)
{
$response = $this->handle(ServerRequestFactory::fromGlobals());
if ($execute !== null) {
trigger_error('Custom execution of Application code will be removed in TYPO3 v12.0, use PSR-15 Middlewares instead.', E_USER_DEPRECATED);
$execute();
}
at TYPO3\CMS\Core\Http\AbstractApplication->run()
in /html/typo3/typo3_src-11.5.18/index.php line 20
// Set up the application for the frontend
call_user_func(static function () {
$classLoader = require __DIR__.'/vendor/autoload.php';
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
});
at {closure}()
in /html/typo3/typo3_src-11.5.18/index.php line 21
call_user_func(static function () {
$classLoader = require __DIR__.'/vendor/autoload.php';
\TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(0, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_FE);
\TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Frontend\Http\Application::class)->run();
});