Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TYPO3 Exception: Call to undefined method TYPO3\CMS\Core\Routing\SiteRouteResult::getPageId() in TYPO3 10/11 #47

Open
fgerards opened this issue Mar 2, 2023 · 0 comments

Comments

@fgerards
Copy link

fgerards commented Mar 2, 2023

in the middleware, it is assumed , that $pageArguments is an object of type PageArguments, which is NOT true for TYPO3 10/11 as the middleware is inserted after typo3/cms-frontend/site and BEFORE any TSFE initialization, which causes the object to be of type "SiteRouteResult", so there is NO page-ID present.

please correct that. if you place your middleware after tsfe-initialization, you might run into issues, where language fallbacks are already applied in typo3/cms-redirects/redirecthandler or any other middleware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant