Project

General

Profile

Actions

Bug #100595

closed

Unable to call method "getPageType" of object "TYPO3\CMS\Backend\Routing\RouteResult".

Added by Stefan Froemken over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
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:

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.4/Deprecation-100405-PropertyTypoScriptFrontendController-type.html

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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #97197: Method getServerParams missing in RequestWrapperClosed2022-03-16

Actions
Related to TYPO3 Core - Bug #100567: Exception in form moduleClosedOliver Bartsch2023-04-12

Actions
Actions #1

Updated by Stefan Froemken over 1 year ago

  • Related to Bug #97197: Method getServerParams missing in RequestWrapper added
Actions #2

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

Actions #3

Updated by Oliver Bartsch over 1 year ago

  • Related to Bug #100567: Exception in form module added
Actions #4

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

Also available in: Atom PDF