If you need help solving this exception, you can have a look at the TYPO3 Wiki. There you can find solutions provided by the TYPO3 community. Once you have found a solution to the problem, help others by contributing to the wiki page.
if ($resolvedUrl !== (string)$request->getUri()) { try { $subResponse = GeneralUtility::makeInstance(RequestFactory::class)->request($resolvedUrl, 'GET'); } catch (\Exception $e) { throw new \RuntimeException('Error handler could not fetch error page "' . $resolvedUrl . '", reason: ' . $e->getMessage(), 1544172838); } if ($subResponse->getStatusCode() >= 300) { throw new \RuntimeException('Error handler could not fetch error page "' . $resolvedUrl . '", status code: ' . $subResponse->getStatusCode(), 1544172839); }
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) {
} 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
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }