Project

General

Profile

Actions

Bug #100246

closed

"" is not a valid cache entry identifier

Added by Bernhard Eckl over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
AdminPanel
Target version:
-
Start date:
2023-03-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,

when adminpanel AND simulatebe is installed I get an error when logging in with certain fe users (some work without error, some get the error): "" is not a valid cache entry identifier.

Here is the complete stack trace:

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();
});
Actions #1

Updated by Andreas Kienast over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Andreas Kienast over 1 year ago

  • Status changed from New to Needs Feedback

This looks like an incompatibility with EXT:simulatebe. Usually, the typo3/cms-adminpanel/initiator middleware sets the necessary request attribute that seems to be missing in some cases. I have the following suspicions:

Please file a ticket on the extension repository. Feel free to keep me informed.

Actions #3

Updated by Bernhard Eckl over 1 year ago

Thank you!
I already have a ticket:
https://github.com/CDRO/simulatebe/issues/19

Actions #4

Updated by Benni Mack over 1 year ago

  • Status changed from Needs Feedback to Closed

Closing this one for core now. If there is anything to fix in Core, feel free to open up a new ticket

Actions

Also available in: Atom PDF