CDRO / simulatebe

Simulatebe allows you to log in to the backend with your frontend user.
0 stars 4 forks source link

"" is not a valid cache entry identifier #19

Open klodeckl opened 1 year ago

klodeckl commented 1 year ago

Hello,

since update to TYPO3 10 some users (not all) get an error message when logging in in the frontend:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1233058264: "" is not a valid cache entry identifier. | InvalidArgumentException thrown in file /.../typo3_src-10.4.36/typo3/sysext/core/Classes/Cache/Frontend/VariableFrontend.php in line 39. Requested URL: https://website.com/login/?tx_felogin_login%5Baction%5D=login&tx_felogin_login%5Bcontroller%5D=Login&cHash=86d4de0de1a88e642be41dc90bbdd439 - {"TYPO3_MODE":"FE","exception":null}

Any idea?

CDRO commented 1 year ago

Hi Bernhard,

I highly doubt that this issue is solely linked to simulatebe, but I'll gladly take a look at it.

Could you provide a complete stacktrace?

Thanks in advance.

klodeckl commented 1 year ago

Hi Tizian,

here it is:

Click me ``` 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) #1233058264 InvalidArgumentException "" is not a valid cache entry identifier. in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Cache/Frontend/VariableFrontend.php line 39 */ public function set($entryIdentifier, $variable, array $tags = [], $lifetime = null) { if (!$this->isValidEntryIdentifier($entryIdentifier)) { throw new \InvalidArgumentException( '"' . $entryIdentifier . '" is not a valid cache entry identifier.', 1233058264 ); } at TYPO3\CMS\Core\Cache\Frontend\VariableFrontend->set() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/adminpanel/Classes/Controller/MainController.php line 179 $this->modules, GeneralUtility::makeInstance(ModuleDataStorageCollection::class) ); $cache = GeneralUtility::makeInstance(CacheManager::class)->getCache('adminpanel_requestcache'); $cache->set($request->getAttribute('adminPanelRequestId'), $data); $cache->collectGarbage(); } } at TYPO3\CMS\Adminpanel\Controller\MainController->storeData() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/adminpanel/Classes/Middleware/AdminPanelDataPersister.php line 55 && StateUtility::isActivatedInTypoScript() && !StateUtility::isHiddenForUser() ) { $mainController = GeneralUtility::makeInstance(MainController::class); $mainController->storeData($request); } return $response; } } at TYPO3\CMS\Adminpanel\Middleware\AdminPanelDataPersister->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/adminpanel/Classes/Middleware/AdminPanelRenderer.php line 47 * @return ResponseInterface */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); if ( !($response instanceof NullResponse) && $GLOBALS['TSFE'] instanceof TypoScriptFrontendController && $GLOBALS['TSFE']->isOutputting(true) at TYPO3\CMS\Adminpanel\Middleware\AdminPanelRenderer->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/ContentLengthResponseHeader.php line 47 * @return ResponseInterface */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); if ( !($response instanceof NullResponse) && $GLOBALS['TSFE'] instanceof TypoScriptFrontendController && $GLOBALS['TSFE']->isOutputting(true)) { at TYPO3\CMS\Frontend\Middleware\ContentLengthResponseHeader->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/ShortcutAndMountPointRedirect.php line 69 return new RedirectResponse($externalUrl, 303); } } return $handler->handle($request); } protected function getRedirectUri(ServerRequestInterface $request): ?string { at TYPO3\CMS\Frontend\Middleware\ShortcutAndMountPointRedirect->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/scriptmerger/Classes/Middlewares/ContentPostProcessMiddleware.php line 47 * @inheritDoc */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $queryParams = $request->getQueryParams(); $response = $handler->handle($request); // we only process via middleware, if the request has INT inclusions, because otherwise, the // ContentPostProcHook handles the processing and adds the result to the TYPO3 page cache. Unfortunately, JS // and CSS inclusions are handled as INT inclusions, if a frontend user is logged in for example, and will be // inserted after the page cache has already been written. Therefore, we need to make sure to catch all scripts that came at SGalinski\Scriptmerger\Middlewares\ContentPostProcessMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/PrepareTypoScriptFrontendRendering.php line 86 $this->convertCharsetRecursivelyToUtf8($parsedBody, $this->controller->metaCharset); $request = $request->withParsedBody($parsedBody); } } return $handler->handle($request); } /** * Small helper function to convert charsets for arrays to UTF-8 at TYPO3\CMS\Frontend\Middleware\PrepareTypoScriptFrontendRendering->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/maps2/Classes/Middleware/InitFeSessionMiddleware.php line 42 } public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); if ( $this->extConf->getExplicitAllowMapProviderRequests() && $this->mapHelper->isRequestToMapProviderAllowed() ) { at JWeiland\Maps2\Middleware\InitFeSessionMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/http2/Classes/Http/ResourcePusher.php line 33 class ResourcePusher implements MiddlewareInterface { public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); if (($GLOBALS['TSFE'] ?? null) instanceof TypoScriptFrontendController) { $resources = $GLOBALS['TSFE']->config['b13/http2'] ?? null; /** @var NormalizedParams $normalizedParams */ $normalizedParams = $request->getAttribute('normalizedParams'); at B13\Http2\Http\ResourcePusher->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/feedit/Classes/Middleware/FrontendEditInitiator.php line 69 } } } } return $handler->handle($request); } /** * Returns TRUE if an edit-action is sent from the Admin Panel at TYPO3\CMS\Feedit\Middleware\FrontendEditInitiator->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/TypoScriptFrontendInitialization.php line 108 } // Make TSFE globally available $GLOBALS['TSFE'] = $controller; return $handler->handle($request); } /** * Register the backend user as aspect at TYPO3\CMS\Frontend\Middleware\TypoScriptFrontendInitialization->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/yoast_seo/Classes/Middleware/PageRequestMiddleware.php line 32 if (YoastRequestHash::isValid($request->getServerParams())) { $context = GeneralUtility::makeInstance(Context::class); $context->setAspect('visibility', new VisibilityAspect(true)); } return $handler->handle($request); } } at YoastSeoForTypo3\YoastSeo\Middleware\PageRequestMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php line 131 } } $request = $request->withAttribute('noCache', $this->disableCache); return $handler->handle($request); } /** * Filters out the arguments that are necessary for calculating cHash at TYPO3\CMS\Frontend\Middleware\PageArgumentValidator->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/PreviewSimulator.php line 66 $previewAspect = GeneralUtility::makeInstance(PreviewAspect::class, $isPreview); $this->context->setAspect('frontend.preview', $previewAspect); } return $handler->handle($request); } /** * Simulate dates for preview functionality at TYPO3\CMS\Frontend\Middleware\PreviewSimulator->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/adminpanel/Classes/Middleware/SqlLogging.php line 58 if (StateUtility::isActivatedForUser() && StateUtility::isOpen()) { $connection = $this->connectionPool->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME); $connection->getConfiguration()->setSQLLogger(GeneralUtility::makeInstance(DoctrineSqlLogger::class)); } return $handler->handle($request); } } at TYPO3\CMS\Adminpanel\Middleware\SqlLogging->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/solr/Classes/Middleware/PageIndexerInitialization.php line 78 } $pageIndexerRequestHandler->run(); } return $handler->handle($request); } } at ApacheSolrForTypo3\Solr\Middleware\PageIndexerInitialization->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/solr/Classes/Middleware/FrontendUserAuthenticator.php line 80 */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (!$request->hasHeader(PageIndexerRequest::SOLR_INDEX_HEADER)) { return $handler->handle($request); } // disable TSFE cache for TYPO3 v10 $request = $request->withAttribute('noCache', true); at ApacheSolrForTypo3\Solr\Middleware\FrontendUserAuthenticator->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/PageResolver.php line 106 // merge the PageArguments with the request query parameters $queryParams = array_replace_recursive($request->getQueryParams(), $pageArguments->getArguments()); $request = $request->withQueryParams($queryParams); return $handler->handle($request); } } at TYPO3\CMS\Frontend\Middleware\PageResolver->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/redirect2trailingslash/Classes/Http/TrailingSlashRedirect.php line 44 ] ); } } return $handler->handle($request); } private function getStatusCode(): int { at StudioMitte\Redirect2trailingslash\Http\TrailingSlashRedirect->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/redirects/Classes/Http/Middleware/RedirectHandler.php line 102 unset($GLOBALS['TYPO3_REQUEST']); } } return $handler->handle($request); } /** * Creates a PSR-7 compatible Response object at TYPO3\CMS\Redirects\Http\Middleware\RedirectHandler->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/StaticRouteResolver.php line 80 return new HtmlResponse($content, 200, ['Content-Type' => $contentType]); } } return $handler->handle($request); } /** * Find the proper configuration for the static route in the static route configuration. Mainly: at TYPO3\CMS\Frontend\Middleware\StaticRouteResolver->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/pb_social/Classes/Middleware/OAuthCallback.php line 51 public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if(!$this->isOAuthCallbackUrl($request) || !$this->isProvider($request)){ return $handler->handle($request); } // imgur returns the access_token string in the fragment of the url (prefixed by a '#') // Because of this, we just redirect to a url where all parameter are set at PlusB\PbSocial\Middleware\OAuthCallback->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/SiteBaseRedirectResolver.php line 94 $uri = $requestedUri->withPath(rtrim($requestedUri->getPath(), '/')); return new RedirectResponse($uri, 307); } } return $handler->handle($request); } /** * Checks if the language is allowed in Frontend, if not, check if there is valid BE user at TYPO3\CMS\Frontend\Middleware\SiteBaseRedirectResolver->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/staticfilecache/Classes/Middleware/PrepareMiddleware.php line 48 * request handler to do so. */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); $explanation = []; $skipProcessing = false; foreach (GeneralUtility::makeInstance(ObjectFactoryService::class)->get('CacheRule') as $rule) { at SFC\Staticfilecache\Middleware\PrepareMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/staticfilecache/Classes/Middleware/GenerateMiddleware.php line 51 * request handler to do so. */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { $response = $handler->handle($request); if (!$response->hasHeader('X-SFC-Cachable')) { return $this->removeSfcHeaders($response); } at SFC\Staticfilecache\Middleware\GenerateMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/staticfilecache/Classes/Middleware/FrontendUserMiddleware.php line 29 public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { /** @var FrontendUserAuthentication $feUser */ $feUser = $request->getAttribute('frontend.user'); $response = $handler->handle($request); if ($feUser->dontSetCookie) { // do not set any cookie return $response; at SFC\Staticfilecache\Middleware\FrontendUserMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Middleware/FrontendUserAuthenticator.php line 83 // 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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/solr/Classes/Middleware/SolrRoutingMiddleware.php line 132 $this->language->getLanguageId() === 0 ? (int)$page['uid'] : (int)$page['l10n_parent'] ); if ($enhancerConfiguration === null) { return $handler->handle($request); } $this->configure($enhancerConfiguration); at ApacheSolrForTypo3\Solr\Middleware\SolrRoutingMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/fal_securedownload/Classes/Middleware/EidFrontendAuthentication.php line 40 { $eID = $request->getParsedBody()['eID'] ?? $request->getQueryParams()['eID'] ?? null; if ($eID === null || !in_array($eID, ['dumpFile', 'FalSecuredownloadFileTreeState'])) { return $handler->handle($request); } $frontendUser = GeneralUtility::makeInstance(FrontendUserAuthentication::class); // List of page IDs where to look for frontend user records at BeechIt\FalSecuredownload\Middleware\EidFrontendAuthentication->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/nfs/htdocs/typo3conf/ext/staticfilecache/Classes/Middleware/FallbackMiddleware.php line 53 } catch (Exception $exception) { // Not handled } return $handler->handle($request); } /** * Handle the fallback. at SFC\Staticfilecache\Middleware\FallbackMiddleware->process() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/core/Classes/Http/MiddlewareDispatcher.php:138$548->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/typo3/sysext/frontend/Classes/Http/Application.php line 69 // Create new request object having applicationType "I am a frontend request" attribute. $request = $request->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_FE); $this->initializeContext(); return parent::handle($request); } /** * Check if LocalConfiguration.php and PackageStates.php exist at TYPO3\CMS\Frontend\Http\Application->handle() in /var/www/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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/typo3/typo3_src-10.4.36/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(); }); ```

Maybe this is interesting: adminpanel, feedit and stdwrapvh is installed. On my dev system the problem with that user does not occur, but I don’t know the difference.

CDRO commented 1 year ago

Hi Bernhard,

as you can see from the first two to three parts, the error is thrown as the adminpanel extension is not properly creating a hash value.

I'd suggest to disable the adminPanel for a quick test and see if the error still prevails.

I'd also suggest posting this problem to forge.typo3.org, where it belongs, IMHO.

If you want to disable the adminPanel for your redactors only, you could try using this:

config.admPanel = 0
[backend.user.isAdmin]
config.admPanel = 1
[global]

Greetings

klodeckl commented 1 year ago

Thank you! It works if admin panel is deactivated. I created a new issue: https://forge.typo3.org/issues/100246

klodeckl commented 1 year ago

Hello again, :)

it seems it is related to simulatebe. See https://forge.typo3.org/issues/100246#change-489788. Could you please check that? Thank you!

Regards Bernhard

CDRO commented 1 year ago

Hello Bernhard, can you try adding simulatebe/backend-user-simulator to the liste of middleware after which the simlatebe middleware should launch? Configuration/RequestMiddleswares.php should look something like this, afterwards:

<?php
return [
    'frontend' => [
        'simulatebe/backend-user-simulator' => [
            'target' => \Cabag\Simulatebe\Middleware\BackendUserSimulator::class,
            'after' => [
                'typo3/cms-frontend/authentication',
                'typo3/cms-frontend/backend-user-authentication',
                'typo3/cms-adminpanel/initiator',
            ],
        ],
    ],
];
klodeckl commented 1 year ago

I added typo3/cms-adminpanel/initiator to RequestMiddlewares.php and installed the extension. But same error.