http://forge.typo3.org/
http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?1705866169
2021-02-23T07:59:06Z
TYPO3 Forge
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=440110
2021-02-23T07:59:06Z
Ralf Zimmermann
ralf.zimmermann@tritum.de
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/440110/diff?detail_id=362418">diff</a>)</li></ul>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=440125
2021-02-23T11:09:28Z
Ralf Zimmermann
ralf.zimmermann@tritum.de
<ul></ul><p>\TYPO3\CMS\Core\Console\CommandApplication->run tries to bootstrap a non-failsafe container <a class="external" href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/Console/CommandApplication.php#L103">https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/Console/CommandApplication.php#L103</a>.<br />Before that there is only the failsafe container available.<br />"$this->application->find()" for the command "extension:activate" fires a DI chain (on the failsafe container) which, however, already needs an non-failsafe container (constructor DI for an extbase repo -> configuration manager -> TypoScript -> condition matcher -> expression language)</p>
<p>A shrinked trace:</p>
<p>Symfony\Component\Console\Application->find\\('extension:activate') <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/Console/CommandApplication.php#L95" class="external">Code</a><br />TYPO3\CMS\Core\Console\CommandRegistry->getInstance('TYPO3\\CMS\\Extensionmanager\\Command\ActivateExtensionCommand') <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/Console/CommandRegistry.php#L120" class="external">Code</a></p>
<ul>
<li>$this->container->get('TYPO3\\CMS\\Extensionmanager\\Command\ActivateExtensionCommand') // $this->container === TYPO3\CMS\Core\DependencyInjection\FailsafeContainer</li>
</ul>
<p>ActivateExtensionCommand->__construct->InstallUtility $installUtility <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extensionmanager/Classes/Command/ActivateExtensionCommand.php#L47" class="external">Code</a><br />InstallUtility->injectListUtility(ListUtility $listUtility) <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php#L110" class="external">Code</a><br />ListUtility->injectExtensionRepository(ExtensionRepository $extensionRepository) <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php#L87" class="external">Code</a><br />ExtensionRepository->objectManager->get(QuerySettingsInterface::class) <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php#L44" class="external">Code</a><br />TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings->initializeObject <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extbase/Classes/Persistence/Generic/Typo3QuerySettings.php#L112" class="external">Code</a></p>
<ul>
<li>$configurationManager->isFeatureEnabled('ignoreAllEnableFieldsInBe') // $configurationManager === TYPO3\CMS\Extbase\Configuration\ConfigurationManager</li>
</ul>
<p>ConfigurationManager->isFeatureEnabled <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php#L123" class="external">Code</a></p>
<ul>
<li>$this->concreteConfigurationManager->getConfiguration($extensionName, $pluginName)</li>
<li>$template->generateConfig() // $template == TYPO3\CMS\Core\TypoScript\TemplateService <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/extbase/Classes/Configuration/BackendConfigurationManager.php#L75" class="external">Code</a></li>
</ul>
<p>$matchObj = GeneralUtility::makeInstance(ConditionMatcher::class) <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/TypoScript/TemplateService.php#L971" class="external">Code</a><br />$this->expressionLanguageResolver = GeneralUtility::makeInstance(\TYPO3\CMS\Core\ExpressionLanguage\Resolver::class, 'typoscript', $this->expressionLanguageResolverVariables) <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/Configuration/TypoScript/ConditionMatching/AbstractConditionMatcher.php#L82" class="external">Code</a><br />GeneralUtility::makeInstance(\TYPO3\CMS\Core\ExpressionLanguage\ProviderConfigurationLoader::class) <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/ExpressionLanguage/Resolver.php#L50" class="external">Code</a></p>
<p>GeneralUtility->makeInstance <a href="https://github.com/TYPO3/TYPO3.CMS/blob/f22a127800fff528296dffa5ffbdd518d4811611/typo3/sysext/core/Classes/Utility/GeneralUtility.php#L3217" class="external">Code</a></p>
<ul>
<li>self::$container->has(\TYPO3\CMS\Core\ExpressionLanguage\ProviderConfigurationLoader) // self::$container === TYPO3\CMS\Core\DependencyInjection\FailsafeContainer</li>
<li>self::$container->has(\TYPO3\CMS\Core\ExpressionLanguage\ProviderConfigurationLoader) === false</li>
</ul>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=440990
2021-03-08T16:39:05Z
Christian Kuhn
lolli@schwarzbu.ch
<ul><li><strong>Related to</strong> <i><a class="issue tracker-4 status-5 priority-4 priority-default closed" href="/issues/93442">Task #93442</a>: Inject PackageManager and cache into ExpressionLanguage/ProviderConfigurationLoader</i> added</li></ul>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=440993
2021-03-08T17:23:42Z
Gerrit Code Review
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254">https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254</a></p>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=440994
2021-03-08T17:24:30Z
Gerrit Code Review
<ul></ul><p>Patch set 2 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254">https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254</a></p>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=441000
2021-03-08T19:33:27Z
Gerrit Code Review
<ul></ul><p>Patch set 3 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254">https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254</a></p>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=441008
2021-03-08T19:57:39Z
Gerrit Code Review
<ul></ul><p>Patch set 4 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254">https://review.typo3.org/c/Packages/TYPO3.CMS/+/68254</a></p>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=441024
2021-03-08T22:01:41Z
Benjamin Franzke
ben@bnf.dev
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/86248">Bug #86248</a>: CLI upgrade wizards can not be invoked fully uncached</i> added</li></ul>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=441094
2021-03-10T10:06:00Z
Benjamin Franzke
ben@bnf.dev
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Avoid loading console commands before container is current The shortcut handling added ..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/370de7f974d206003fe3e0e5934d2abb62f4806f">370de7f974d206003fe3e0e5934d2abb62f4806f</a>.</p>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=441524
2021-03-16T19:38:16Z
Benjamin Franzke
ben@bnf.dev
<ul><li><strong>Related to</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/93721">Bug #93721</a>: Activating/Deactivating extensions through CLI results in a PHP error</i> added</li></ul>
TYPO3 Core - Bug #93569: console command 'extension:activate' throws error
http://forge.typo3.org/issues/93569?journal_id=452006
2021-09-07T07:35:10Z
Benni Mack
benni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>