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
Updated by Stefan Froemken over 1 year ago
- Related to Bug #97197: Method getServerParams missing in RequestWrapper added
Updated by Oliver Bartsch over 1 year ago
- Status changed from New to Needs Feedback
Hi Stefan,
this should already be fixed in current main with #100567. Could you please test with at least this patch applied?
Best, Oli
Updated by Oliver Bartsch over 1 year ago
- Related to Bug #100567: Exception in form module added
Updated by Stefan Froemken over 1 year ago
- Status changed from Needs Feedback to Closed
- % Done changed from 0 to 100
Hey cool. Thank you Oliver.
I have closed this issue
Actions