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 #1

Updated by Georg Ringer over 1 year ago

Actions #2

Updated by Georg Ringer over 1 year ago

  • Status changed from New to Accepted
Actions #3

Updated by Benni Mack about 1 year ago

  • Target version changed from 12.2 to 12.3
Actions #4

Updated by Georg Ringer about 1 year ago

  • Related to Bug #99698: Possible null pointer in BackendConfigurationManager added
Actions #5

Updated by Georg Ringer about 1 year ago

  • Related to Task #99017: New TS parser in extbase BackendConfigurationManager added
Actions #6

Updated by Georg Ringer about 1 year ago

  • Status changed from Accepted to Closed

closed as duplicate of #99698

Actions

Also available in: Atom PDF