Actions
Bug #100595
closedUnable to call method "getPageType" of object "TYPO3\CMS\Backend\Routing\RouteResult".
Start date:
2023-04-14
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hello,
we are just working on an Upgrade of TYPO3 11 to TYPO3 12.3
Like described here:
we have modified old syntax to
[request.getPageArguments()?.getPageType() == 8918] ... [global]
It works for FE, but somehow TypoScript will also be loaded in some backend modules like ExtensionManager. In that case "request.getPageArguments()" is of type RouteResult instead of PageArguments. RouteResult does not have a method "getPageType()". That's why ExtensionManager throws an Exception
Unable to call method "getPageType" of object "TYPO3\CMS\Backend\Routing\RouteResult".
Stefan
Actions