Whoops, looks like something went wrong.

Get help in the TYPO3 Documentation

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.

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception

PHP Warning: Trying to access array offset on null in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Site/Entity/Site.php line 110

in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Error/ErrorHandler.php line 138
        }

        $message = self::ERROR_LEVEL_LABELS[$errorLevel] . ': ' . $errorMessage . ' in ' . $errorFile . ' line ' . $errorLine;
        if ($errorLevel & $this->exceptionalErrors) {
            throw new Exception($message, 1476107295);
        }

        $message = $this->getFormattedLogMessage($message);

at TYPO3\CMS\Core\Error\ErrorHandler->handleError()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Site/Entity/Site.php line 110
        );
        $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'],
at TYPO3\CMS\Core\Site\Entity\Site->__construct()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Configuration/SiteConfiguration.php line 159
            $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;
at TYPO3\CMS\Core\Configuration\SiteConfiguration->resolveAllExistingSites()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Configuration/SiteConfiguration.php line 112
    {
        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.
at TYPO3\CMS\Core\Configuration\SiteConfiguration->getAllExistingSites()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Site/SiteFinder.php line 128
    }

    protected function fetchAllSites(bool $useCache = true): void
    {
        $this->sites = $this->siteConfiguration->getAllExistingSites($useCache);
        foreach ($this->sites as $identifier => $site) {
            $this->mappingRootPageIdToIdentifier[$site->getRootPageId()] = $identifier;
        }
    }
at TYPO3\CMS\Core\Site\SiteFinder->fetchAllSites()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Site/SiteFinder.php line 52
     */
    public function __construct(SiteConfiguration $siteConfiguration = null)
    {
        $this->siteConfiguration = $siteConfiguration ?? GeneralUtility::makeInstance(SiteConfiguration::class);
        $this->fetchAllSites();
    }

    /**
     * Return a list of all configured sites
at TYPO3\CMS\Core\Site\SiteFinder->__construct()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 3016
        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
at TYPO3\CMS\Core\Utility\GeneralUtility::makeInstanceForDi()
in /path/typo3temp/var/cache/code/di/DependencyInjectionContainer_1ac74060f9b2b5e02bc9fa02690faea0fde7df00.php line 12478
     * @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.
at DependencyInjectionContainer_1ac74060f9b2b5e02bc9fa02690faea0fde7df00::getSiteFinderService()
in /path/typo3temp/var/cache/code/di/DependencyInjectionContainer_1ac74060f9b2b5e02bc9fa02690faea0fde7df00.php line 7539
     * @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.
at DependencyInjectionContainer_1ac74060f9b2b5e02bc9fa02690faea0fde7df00::getPolicyProviderService()
in /path/typo3temp/var/cache/code/di/DependencyInjectionContainer_1ac74060f9b2b5e02bc9fa02690faea0fde7df00.php line 5337
     * @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.
at DependencyInjectionContainer_1ac74060f9b2b5e02bc9fa02690faea0fde7df00::getContentSecurityPolicyReporterService()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/vendor/symfony/dependency-injection/Container.php line 231
        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]);

at Symfony\Component\DependencyInjection\Container::make()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/vendor/symfony/dependency-injection/Container.php line 211
    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.
at Symfony\Component\DependencyInjection\Container->get()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php line 154

            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);
                }

at Psr\Http\Server\RequestHandlerInterface@anonymous/home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$34->handle()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/backend/Classes/Middleware/ForcedHttpsBackendRedirector.php line 55
                ->withPort($sslPortSuffix);
            return new RedirectResponse($backendUrl);
        }

        return $handler->handle($request);
    }
}
at TYPO3\CMS\Backend\Middleware\ForcedHttpsBackendRedirector->process()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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/home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$34->handle()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/backend/Classes/Middleware/LockedBackendGuard.php line 71
            $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
at TYPO3\CMS\Backend\Middleware\LockedBackendGuard->process()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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/home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$34->handle()
in /path/typo3conf/ext/debug_mysql_db/Classes/Middleware/Bootstrap.php line 45
    {
        $api = GeneralUtility::makeInstance(BootstrapApi::class);
        $api->init($request);

        return $handler->handle($request);
    }
}
at Geithware\DebugMysqlDb\Middleware\Bootstrap->process()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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/home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$34->handle()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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/home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$34->handle()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/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()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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/home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:128$34->handle()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/backend/Classes/Http/Application.php line 58
        $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
at TYPO3\CMS\Backend\Http\Application->handle()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/sysext/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 /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/index.php line 20
// 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();
});
at {closure}()
in /home/www/doc/30730/dcp307300028/jambage.com/typo3_src-12.4.15/typo3/index.php line 21
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();
});