Project

General

Profile

Actions

Bug #103947

closed

Extbase PHP Error arguments is null

Added by Franz Holzinger about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2024-05-28
Due date:
% Done:

0%

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

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


Files

Error_Arguments_Null.txt (103 KB) Error_Arguments_Null.txt Franz Holzinger, 2024-05-28 15:58
Actions #1

Updated by Garvin Hicking about 2 months ago

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.

Actions #2

Updated by Stefan Bürk about 2 months ago · Edited

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.

Actions #3

Updated by Stefan Bürk about 2 months ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF