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);
if (VersionState::cast($record['t3ver_state'])->equals(VersionState::DELETE_PLACEHOLDER)) { continue; } } $this->deleteAction($table, (int)$record['t3ver_oid'] > 0 ? (int)$record['t3ver_oid'] : (int)$record['uid']); } } /*********************************************
$this->deleteRecord_procFields($table, $uid); try { // Delete all l10n records as well $this->deletedRecords[$table][] = (int)$uid; $this->deleteL10nOverlayRecords($table, $uid); GeneralUtility::makeInstance(ConnectionPool::class) ->getConnectionForTable($table) ->update($table, $updateFields, ['uid' => (int)$uid]); } catch (DBALException $e) {
$this->deletePages($uid, $noRecordCheck, $forceHardDelete, $deleteRecordsOnPage); } else { $this->discardLocalizedWorkspaceVersionsOfRecord((string)$table, (int)$uid); $this->discardWorkspaceVersionsOfRecord($table, $uid); $this->deleteRecord($table, $uid, $noRecordCheck, $forceHardDelete); } } /**
// If it is a new versioned record, delete it directly. $dataHandler->deleteEl($table, $id); } elseif ($dataHandler->BE_USER->workspaceAllowsLiveEditingInTable($table)) { // Look, if record is "online" then delete directly. $dataHandler->deleteEl($table, $id); } else { // Otherwise, try to delete by versioning: $copyMappingArray = $dataHandler->copyMappingArray; $dataHandler->versionizeRecord($table, $id, 'DELETED!', true);
$recordWasDeleted = false; foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'] ?? [] as $className) { $hookObj = GeneralUtility::makeInstance($className); if (method_exists($hookObj, 'processCmdmap_deleteAction')) { $hookObj->processCmdmap_deleteAction($table, $id, $recordToDelete, $recordWasDeleted, $this); } } // Delete the record if a hook hasn't deleted it yet if (!$recordWasDeleted) {
case 'inlineLocalizeSynchronize': $this->inlineLocalizeSynchronize($table, (int)$id, $value); break; case 'delete': $this->deleteAction($table, (int)$id); break; case 'undelete': $this->undeleteRecord((string)$table, (int)$id); break;
// Perform the saving operation with DataHandler: if ($this->doSave === true) { $tce->process_datamap(); $tce->process_cmdmap(); // Update the module menu for the current backend user, as they updated their UI language $currentUserId = (int)($beUser->user[$beUser->userid_column] ?? 0); if ($currentUserId
|| isset($parsedBody['_savedoknew']) || isset($parsedBody['_duplicatedoc']) ) && $request->getMethod() === 'POST' && $response = $this->processData($view, $request) ) { return $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); } }; } }
if (!$backendUser || !$route->hasOption('module') || !(($module = $route->getOption('module')) instanceof ModuleInterface) ) { return $handler->handle($request); } // If on a second level module with further sub modules, jump to the third-level modules // (either the last used or the first in the list) and store this selection for the user.
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 = $this->uriBuilder->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
* 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(); });