Issue Bug Closed

#103947Extbase PHP Error arguments is null

Franz Holzinger 05/28/24, 15:59 updated 05/28/24, 18:17

Description

TYPO3 shows a PHP error which says:

*Call to a member function count() on null*
in /var/www/html/sources/typo3_src-12.4.14/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php line 318

Extension used in the front end:

https://github.com/franzholz/watchwords/tree/extbase_arguments_null

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 1

History 3

  1. Garvin Hicking commented 05/28/24, 18:04

    Your Controller overrides the injectConfigurationManager() method of ActionController. The original takes care of setting $this->arguments, which triggers the error you see

    You must either call the parent method before overriding, or take care of all the things the parent performs, setting this variable.

    So this is not a core bug but an implementation problem. Maybe you can actually use initializeIndexAction() to perform fetching settings.

  2. Stefan Bürk commented 05/28/24, 18:17

    Going to close this issue as WON’T FIX as it is related to a extension not being
    TYPO3 v12 compatible. Extension should be overworked to a v12 compatible state.

    To accomplish that, please
    read the TYPO3 Core Changelogs carefully and in detail, regarding TYPO3 v12 but also
    prior core versions as the extenion contains code deprecated already in v11 and removed
    in v12.

    Additionally, you may look into the TYPO3 Extension Scanner to detect deprecated stuff,
    and also use rector to update your extension properly – or at least for as much as the
    tool can help.

    For example, ObjectManager ( $this->objectManager ) has been removed as breaking change
    in TYPO3 v12, with proper long time deprecation notince already in TYPO3 v11.

  3. Stefan Bürk changed status New Closed 05/28/24, 18:17