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);
* @return array of web mounts uids (may include '0') */ public function returnWebmounts() { return (string)$this->groupData['webmounts'] != '' ? explode(',', $this->groupData['webmounts']) : []; } /** * Initializes the given mount points for the current Backend user.
if (!$readPerms) { $readPerms = $this->getPagePermsClause(Permission::PAGE_SHOW); } if ($id > 0) { $wM = $this->returnWebmounts(); $rL = BackendUtility::BEgetRootLine($id, ' AND ' . $readPerms, true); foreach ($rL as $v) { if ($v['uid'] && in_array($v['uid'], $wM)) { return $v['uid'];
if ($this->isAdmin()) { return Permission::ALL; } // Return 0 if page is not within the allowed web mount if (!$this->isInWebMount($row)) { return Permission::NOTHING; } $out = Permission::NOTHING; if (
* @return bool */ public function doesUserHaveAccess($row, $perms) { $userPerms = $this->calcPerms($row); return ($userPerms & $perms) == $perms; } /**
|| ($tableConfiguration['readOnly'] ?? false) || ($tableConfiguration['hideTable'] ?? false) || ($tableConfiguration['is_static'] ?? false) || (($tableConfiguration['adminOnly'] ?? false) && !$backendUser->isAdmin()) || !$backendUser->doesUserHaveAccess($pageRow, Permission::CONTENT_EDIT) || !$backendUser->check('tables_modify', self::TABLE_NAME) || !$backendUser->workspaceCanCreateNewRecord(self::TABLE_NAME)); }
if (!$id || $route === null || $normalizedParams === null || !empty($pageTSconfig['mod.']['SHARED.']['disableSysNoteButton']) || !$this->canCreateNewRecord($id) || !in_array($route->getOption('moduleName'), self::ALLOWED_MODULES, true) || ($route->getOption('moduleName') === 'web_list' && !$this->isCreationAllowed($pageTSconfig['mod.']['web_list.'] ?? [])) ) { return $buttons;
$methodName = (string)$parts[1]; $callable = [$classObj, $methodName]; if (is_callable($callable)) { // Call method: $content = call_user_func_array($callable, [&$params, &$ref]); } else { throw new \InvalidArgumentException('No method name \'' . $parts[1] . '\' in class ' . $parts[0], 1294585865); } } else {
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['Backend\Template\Components\ButtonBar']['getButtonsHook'] ?? [] as $funcRef) { $params = [ 'buttons' => $this->buttons, ]; $this->buttons = GeneralUtility::callUserFunction($funcRef, $params, $this); } return $this->buttons; } }
public function docHeaderContent() { return [ 'enabled' => $this->isEnabled(), 'buttons' => $this->buttonBar->getButtons(), 'menus' => $this->menuRegistry->getMenus(), 'metaInformation' => $this->metaInformation, ]; }
{ $this->setJavaScriptCodeArray(); $this->pageRenderer->setTitle($this->title); $this->view->assign('docHeader', $this->docHeaderComponent->docHeaderContent()); if ($this->moduleId) { $this->view->assign('moduleId', $this->moduleId); } if ($this->moduleName) {
$this->makeInterfaceSelector($request); $this->renderHtmlViaLoginProvider($request); $this->moduleTemplate->setContent($this->view->render()); return $this->moduleTemplate->renderContent(); } protected function renderHtmlViaLoginProvider(ServerRequestInterface $request): void {
*/ public function formAction(ServerRequestInterface $request): ResponseInterface { $this->init($request); $response = new HtmlResponse($this->createLoginLogoutForm($request)); return $this->appendLoginProviderCookie($request->getAttribute('normalizedParams'), $response); } /**
} $targetIdentifier = $route->getOption('target'); $target = $this->getCallableFromTarget($targetIdentifier); $arguments = [$request]; return $target(...$arguments); } /** * Wrapper method for static form protection utility
// there are Core classes that need the Request object but do not get it handed in $this->resetGlobalsToCurrentRequest($request); try { // Check if the router has the available route and dispatch. return $this->dispatcher->dispatch($request); } catch (MissingRequestTokenException $e) { // When token was missing, then redirect to login, but keep the current route as redirect after login $loginUrl = $this->uriBuilder->buildUriWithRedirect( 'login',
{ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { try { $response = $handler->handle($request); } catch (PropagateResponseException $e) { $response = $e->getResponse(); }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
} $site = $this->siteMatcher->matchByPageId($pageId, $rootLine); $request = $request->withAttribute('site', $site); } 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); } }; } }
* @return ResponseInterface */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); foreach ($GLOBALS['TYPO3_CONF_VARS']['BE']['HTTP']['Response']['Headers'] ?? [] as $header) { [$headerName, $value] = explode(':', $header, 2); $response = $response->withAddedHeader($headerName, trim($value)); }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
ob_clean(); // Initialize output compression if configured $this->initializeOutputCompression(); return $handler->handle($request); } /** * Initialize output compression if configured
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
} $GLOBALS['LANG'] = $this->languageServiceFactory->createFromUserPreferences($GLOBALS['BE_USER']); // Re-setting the user and take the workspace from the user object now $this->setBackendUserAspect($GLOBALS['BE_USER']); $response = $handler->handle($request); $this->sessionGarbageCollection(); return $this->enrichResponseWithHeadersAndCookieInformation($response, $GLOBALS['BE_USER']); }
if (!$middleware instanceof MiddlewareInterface) { throw new \InvalidArgumentException(get_class($middleware) . ' does not implement ' . MiddlewareInterface::class, 1516821342); } return $middleware->process($request, $this->next); } }; } }
$uri = GeneralUtility::makeInstance(UriBuilder::class)->buildUriFromRoute('login'); return new RedirectResponse($uri); } 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); } }; } }
[$server, $address] = explode('/', $url, 2); return new RedirectResponse('https://' . $server . $sslPortSuffix . '/' . $address); } 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); } }; } }
*/ 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); } }; } }
* @return ResponseInterface */ 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', $applicationType); // Set up the initial context $this->initializeContext(); return parent::handle($request); } /** * Create a PSR-7 Response that redirects to the install tool
* @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(); }
// 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(); });