Project

General

Profile

Actions

Bug #99267

closed

Call to a member function getOption() on null in TYPO3 12.0.0

Added by Alex Kellner over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-12-04
Due date:
% Done:

0%

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

Description

I'm not sure if I missed a breaking change to define a TypeNum with an extbase action, but opening the frontend with the defined TypeNum leads to

Call to a member function getOption() on null
in .../vendor/typo3/cms-backend/Classes/View/BackendViewFactory.php line 59

The definition in TypoScript is:

luxletterPreviewNewsletter = PAGE
luxletterPreviewNewsletter {
  typeNum = 1560777975
  config {
    disableAllHeaderCode = 1
    disablePrefixComment = 1
    xhtml_cleaning = 0
    admPanel = 0
    debug = 0
  }

  10 = USER_INT
  10 {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    extensionName = Luxletter
    pluginName = Fe
    vendorName = In2code
    controller = Frontend
    action = preview
    switchableControllerActions.Frontend.1 = preview
    features.requireCHashArgumentForActionArguments = 0
  }
}

There is no difference if I define the typeNum in site configuration or if I simply add &type=1560777975
Any hints what's missing?

Actions #1

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Needs Feedback

I don't know why the backendviewfactory is called if this is actually a frontend plugin. the error must be there somewhere.

maybe it has to do with your code still depending on switchableControllerActions as this does not work anymore?

btw also requireCHashArgumentForActionArguments can be dropped as this has been removed

Actions #2

Updated by Alex Kellner over 1 year ago

I tested with a smaller TypoScript, but the error still occurs:

testFoo = PAGE
testFoo {
    typeNum = 123456789

    10 = USER_INT
    10 {
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        extensionName = Luxletter
        pluginName = Fe
        vendorName = In2code
        controller = Frontend
        action = preview
    }
}

I'm also wondering about a backend routes issue here.

BTW: This TypoScript works as expected:

testFoo = PAGE
testFoo {
    typeNum = 123456789

    10 = COA_INT
    10.10 = TEXT
    10.10.value = HW
}

Actions #3

Updated by Alex Kellner over 1 year ago

This issue can be closed. Following the backtrace leads to an issue in my Controller file.
Source: $this->moduleTemplate can not be generated in initializeAction() if there are also normal extbase actions mixed with AJAX actions (actions that are initialized via TypoScript bootstrap)

Actions #4

Updated by Benni Mack over 1 year ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF