Actions
Bug #99439
closedException thrown when using Extbase repository via commands
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.
Updated by Georg Ringer about 2 years ago
- Related to Feature #97816: New TypoScript parser added
Updated by Benni Mack almost 2 years ago
- Target version changed from 12.2 to 12.3
Updated by Georg Ringer almost 2 years ago
- Related to Bug #99698: Possible null pointer in BackendConfigurationManager added
Updated by Georg Ringer almost 2 years ago
- Related to Task #99017: New TS parser in extbase BackendConfigurationManager added
Updated by Georg Ringer almost 2 years ago
- Status changed from Accepted to Closed
closed as duplicate of #99698
Actions