Whoops, looks like something went wrong.

(1/1) TypeError

Argument 1 passed to TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction::__construct() must be of the type int, null given, called in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 3423

in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Database/Query/Restriction/WorkspaceRestriction.php line 48

    /**
     * @param int $workspaceId
     */
    public function __construct(int $workspaceId = 0)
    {
        $this->workspaceId = (int)$workspaceId;
    }

at TYPO3\CMS\Core\Database\Query\Restriction\WorkspaceRestriction->__construct()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Utility/GeneralUtility.php line 3423
            return self::$container->get($className);
        }

        // Create new instance and call constructor with parameters
        $instance = new $finalClassName(...$constructorArguments);
        // Register new singleton instance, but only if it is not a known PSR-11 container service
        if ($instance instanceof SingletonInterface && !(self::$container !== null && self::$container->has($className))) {
            self::$singletonInstances[$finalClassName] = $instance;
        }
at TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/backend/Classes/Utility/BackendUtility.php line 297
                ->getQueryBuilderForTable($table);
            $queryBuilder->getRestrictions()
                ->removeAll()
                ->add(GeneralUtility::makeInstance(DeletedRestriction::class))
                ->add(GeneralUtility::makeInstance(WorkspaceRestriction::class, static::getBackendUserAuthentication()->workspace));

            $queryBuilder->select('*')
                ->from($table)
                ->where(
at TYPO3\CMS\Backend\Utility\BackendUtility::getRecordLocalization()
in /var/www/cms.steinco.de/public/typo3conf/ext/pxa_lpeh/Classes/Error/PageErrorHandler/LocalPageErrorHandler.php line 184
     */
    protected function getLocalizedPageId(int $pageId, int $languageId): ?int
    {
        $page = BackendUtility::getRecordLocalization(
            'pages',
            $pageId,
            $languageId
        );

at Pixelant\PxaLpeh\Error\PageErrorHandler\LocalPageErrorHandler->getLocalizedPageId()
in /var/www/cms.steinco.de/public/typo3conf/ext/pxa_lpeh/Classes/Error/PageErrorHandler/LocalPageErrorHandler.php line 158
        $siteLanguage = $request->getAttribute('language');
        if ($siteLanguage instanceof SiteLanguage) {
            $languageId = $siteLanguage->getLanguageId() ?? 0;
            if ($languageId > 0) {
                $translatedPageId = $this->getLocalizedPageId($pageId, $languageId);

                foreach ($siteLanguage->getFallbackLanguageIds() as $languageId) {
                    if ($translatedPageId !== null) {
                        break;
at Pixelant\PxaLpeh\Error\PageErrorHandler\LocalPageErrorHandler->resolvePageId()
in /var/www/cms.steinco.de/public/typo3conf/ext/pxa_lpeh/Classes/Error/PageErrorHandler/LocalPageErrorHandler.php line 51
     */
    public function handlePageError(ServerRequestInterface $request, string $message, array $reasons = []): ResponseInterface
    {
        $targetDetails = $this->resolveDetails($this->errorHandlerConfiguration['errorContentSource']);
        $pageId = $this->resolvePageId($request, (int)$targetDetails['pageuid']);

        if (!empty($pageId)) {
            $site = $this->resolveSite($request, $pageId);
            $pageIsValid = $this->isPageValid($pageId);
at Pixelant\PxaLpeh\Error\PageErrorHandler\LocalPageErrorHandler->handlePageError()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/frontend/Classes/Controller/ErrorController.php line 74
    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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/frontend/Classes/Middleware/SiteBaseRedirectResolver.php line 75
        if ($language instanceof SiteLanguage && !$this->isLanguageEnabled($language, $GLOBALS['BE_USER'] ?? null)) {
            return GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction(
                $request,
                'Page is not available in the requested language.',
                ['code' => PageAccessFailureReasons::LANGUAGE_NOT_AVAILABLE]
            );
        }

        if ($language instanceof SiteLanguage && $routeResult instanceof SiteRouteResult) {
at TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver->process()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/adminpanel/Classes/Middleware/AdminPanelInitiator.php line 55
                MainController::class
            );
            $request = $adminPanelController->initialize($request);
        }
        return $handler->handle($request);
    }
}
at TYPO3\CMS\Adminpanel\Middleware\AdminPanelInitiator->process()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/frontend/Classes/Middleware/FrontendUserAuthenticator.php line 77
        // Register the frontend user as aspect and within the session
        $this->setFrontendUserAspect($frontendUser);
        $request = $request->withAttribute('frontend.user', $frontendUser);

        $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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/frontend/Classes/Middleware/BackendUserAuthenticator.php line 66
            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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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/var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$e7->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/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()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/AbstractApplication.php line 85
     * @return ResponseInterface
     */
    protected function handle(ServerRequestInterface $request): ResponseInterface
    {
        return $this->requestHandler->handle($request);
    }

    /**
     * Set up the application and shut it down afterwards
at TYPO3\CMS\Core\Http\AbstractApplication->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/frontend/Classes/Http/Application.php line 64
        if (!$this->checkIfEssentialConfigurationExists()) {
            return $this->installToolRedirect();
        }
        $this->initializeContext();
        return parent::handle($request);
    }

    /**
     * Check if LocalConfiguration.php and PackageStates.php exist
at TYPO3\CMS\Frontend\Http\Application->handle()
in /var/www/cms.steinco.de/typo3_src-10.4.9/typo3/sysext/core/Classes/Http/AbstractApplication.php line 97
    final public function run(callable $execute = null)
    {
        try {
            $response = $this->handle(
                ServerRequestFactory::fromGlobals()
            );
            if ($execute !== null) {
                call_user_func($execute);
            }
at TYPO3\CMS\Core\Http\AbstractApplication->run()
in /var/www/cms.steinco.de/typo3_src-10.4.9/index.php line 25
// Set up the application for the frontend
call_user_func(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 /var/www/cms.steinco.de/typo3_src-10.4.9/index.php line 26
call_user_func(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();
});