Project

General

Profile

Actions

Bug #99439

closed

Exception thrown when using Extbase repository via commands

Added by Chris Müller over 1 year ago. Updated about 1 year ago.

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

0%

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

Description

Using an Extbase repository in a command throws the following exception in v12.1.3:

Uncaught TYPO3 Exception Call to a member function getAttribute() on null
thrown in file /var/www/html/vendor/typo3/cms-extbase/Classes/Configuration/BackendConfigurationManager.php
in line 218

Obviously correct, as the request object is not available on CLI. The request variable is set as fallback to null which then leads to the error when getting the site attribute (which is then used to retrieve the TypoScript configuration).

The repository is called with a findBy... method(), the call to $this->createQuery() then creates the error.

In TYPO3 v11.5 the command workes as expected.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Related to TYPO3 Core - Bug #99698: Possible null pointer in BackendConfigurationManagerClosedOliver Bartsch2023-01-24

Actions
Related to TYPO3 Core - Task #99017: New TS parser in extbase BackendConfigurationManagerClosed2022-11-07

Actions
Actions

Also available in: Atom PDF