If you need help solving this exception, you can have a look at the TYPO3 Documentation. 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 documentation page.
Find a solution for this exception in the TYPO3 Documentation.
} $message = self::ERROR_LEVEL_LABELS[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine; if ($errorLevel & $this->exceptionalErrors) { throw new Exception($message, 1476107295); } $message = $this->getFormattedLogMessage($message);
); $this->base = new Uri($this->sanitizeBaseUrl($baseUrl)); foreach ($configuration['languages'] as $languageConfiguration) { $languageUid = (int)$languageConfiguration['languageId']; // site language has defined its own base, this is the case most of the time. if (!empty($languageConfiguration['base'])) { $base = $this->resolveBaseWithVariants( $languageConfiguration['base'],
$configuration['contentSecurityPolicies'] = $this->getContentSecurityPolicies($identifier); $rootPageId = (int)($configuration['rootPageId'] ?? 0); if ($rootPageId > 0) { $sites[$identifier] = new Site($identifier, $rootPageId, $configuration, $siteSettings); } } $this->firstLevelCache = $sites; return $sites;
{ if ($useCache && $this->firstLevelCache !== null) { return $this->firstLevelCache; } return $this->resolveAllExistingSites($useCache); } /** * Creates a site configuration with one language "English" which is the de-facto default language for TYPO3 in general.
} protected function fetchAllSites(bool $useCache = true): void { $this->sites = $this->siteConfiguration->getAllExistingSites($useCache); foreach ($this->sites as $identifier => $site) { $this->mappingRootPageIdToIdentifier[$site->getRootPageId()] = $identifier; } }
*/ public function __construct(SiteConfiguration $siteConfiguration = null) { $this->siteConfiguration = $siteConfiguration ?? GeneralUtility::makeInstance(SiteConfiguration::class); $this->fetchAllSites(); } /** * Return a list of all configured sites
if (isset(self::$singletonInstances[$finalClassName])) { return self::$singletonInstances[$finalClassName]; } // Create new instance and call constructor with parameters return new $finalClassName(...$constructorArguments); } /** * Returns the class name for a new instance, taking into account
* @return \TYPO3\CMS\Core\Site\SiteFinder */ protected static function getSiteFinderService($container) { return $container->privates['TYPO3\\CMS\\Core\\Site\\SiteFinder'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi(\TYPO3\CMS\Core\Site\SiteFinder::class, ($container->services['TYPO3\\CMS\\Core\\Configuration\\SiteConfiguration'] ?? self::getSiteConfigurationService($container))); } /** * Gets the private 'TYPO3\CMS\Core\TypoScript\IncludeTree\TreeFromLineStreamBuilder' shared autowired service.
* @return \TYPO3\CMS\Core\Security\ContentSecurityPolicy\PolicyProvider */ protected static function getPolicyProviderService($container) { return $container->services['TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\PolicyProvider'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi(\TYPO3\CMS\Core\Security\ContentSecurityPolicy\PolicyProvider::class, ($container->services['_early.TYPO3\\CMS\\Core\\Core\\RequestId'] ?? $container->get('_early.TYPO3\\CMS\\Core\\Core\\RequestId', 1)), ($container->privates['TYPO3\\CMS\\Core\\Site\\SiteFinder'] ?? self::getSiteFinderService($container)), ($container->services['TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\PolicyRegistry'] ??= \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi(\TYPO3\CMS\Core\Security\ContentSecurityPolicy\PolicyRegistry::class)), ($container->services['Psr\\EventDispatcher\\EventDispatcherInterface_decorated_1'] ?? self::getEventDispatcherInterfaceDecorated1Service($container)), ($container->privates['TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\MutationRepository'] ?? self::getMutationRepositoryService($container))); } /** * Gets the public 'TYPO3\CMS\Core\Security\ContentSecurityPolicy\PolicyRegistry' shared autowired service.
* @return \TYPO3\CMS\Backend\Middleware\ContentSecurityPolicyReporter */ protected static function getContentSecurityPolicyReporterService($container) { return $container->services['TYPO3\\CMS\\Backend\\Middleware\\ContentSecurityPolicyReporter'] = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi(\TYPO3\CMS\Backend\Middleware\ContentSecurityPolicyReporter::class, ($container->services['TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\PolicyProvider'] ?? self::getPolicyProviderService($container)), ($container->privates['TYPO3\\CMS\\Core\\Security\\ContentSecurityPolicy\\Reporting\\ReportRepository'] ?? self::getReportRepositoryService($container))); } /** * Gets the public 'TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector' shared autowired service.
try { if (isset($container->fileMap[$id])) { return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $container->load($container->fileMap[$id]); } elseif (isset($container->methodMap[$id])) { return /* self::IGNORE_ON_UNINITIALIZED_REFERENCE */ 4 === $invalidBehavior ? null : $container->{$container->methodMap[$id]}($container); } } catch (\Exception $e) { unset($container->services[$id]);
public function get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE): ?object { return $this->services[$id] ?? $this->services[$id = $this->aliases[$id] ?? $id] ?? ('service_container' === $id ? $this : ($this->factories[$id] ?? self::$make ??= self::make(...))($this, $id, $invalidBehavior)); } /** * Creates a service.
public function handle(ServerRequestInterface $request): ResponseInterface { if ($this->container !== null && $this->container->has($this->middleware)) { $middleware = $this->container->get($this->middleware); } else { $middleware = GeneralUtility::makeInstance($this->middleware); }
->withPort($sslPortSuffix); return new RedirectResponse($backendUrl); } return $handler->handle($request); } }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
$request->getAttribute('normalizedParams')->getRemoteAddress(), trim((string)$GLOBALS['TYPO3_CONF_VARS']['BE']['IPmaskList']) ); return $handler->handle($request); } /** * Check adminOnly configuration variable and redirects to an URL in file typo3conf/LOCK_BACKEND
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
{ $api = GeneralUtility::makeInstance(BootstrapApi::class); $api->init($request); return $handler->handle($request); } }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
*/ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $request = $request->withAttribute('normalizedParams', NormalizedParams::createFromRequest($request)); return $handler->handle($request); } }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
1396795884 ); } return $handler->handle($request); } /** * Checks if the provided host header value matches the trusted hosts pattern.
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
* Invoke the middleware stack */ public function handle(ServerRequestInterface $request): ResponseInterface { return $this->tip->handle($request); } /** * Seed the middleware stack with the inner request handler
public function handle(ServerRequestInterface $request): ResponseInterface { try { $response = $this->requestHandler->handle($request); } catch (ImmediateResponseException $exception) { $response = $exception->getResponse(); } return $response;
$request = $request->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_BE); // Set up the initial context $this->initializeContext(); return parent::handle($request); } /** * Create a PSR-7 Response that redirects to the install tool
* Set up the application and shut it down afterwards */ final public function run() { $response = $this->handle(ServerRequestFactory::fromGlobals()); $this->sendResponse($response); } }
// Set up the application for the backend call_user_func(static function () { $classLoader = require dirname(__DIR__).'/vendor/autoload.php'; \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run(); });
call_user_func(static function () { $classLoader = require dirname(__DIR__).'/vendor/autoload.php'; \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(1, \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::REQUESTTYPE_BE); \TYPO3\CMS\Core\Core\Bootstrap::init($classLoader)->get(\TYPO3\CMS\Backend\Http\Application::class)->run(); });