Issue Bug Closed

#101343Editor frontend preview fails when having TYPO3\CMS\Extbase\Core\Bootstrap->run added to PAGE

Claus Harup 07/13/23, 08:38 updated 04/13/24, 22:28

Description

Adding anything to PAGE like:

10 = USER
10 {
    userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
    extensionName = TcSeo
    controller = Sitemap
    pluginName = SeoXml
}

with ordinary ext_localconf.php

ExtensionUtility::configurePlugin(
    'TcSeo',
    'SeoXml',
    [SitemapController::class => 'xml']
);

still works when:
I am logged in as admin
Not logged in in BE
But does NOT work when Im logged in BE as editor….
For some reason this comes up:

The default controller for extension "TcSeo" and plugin "SeoXml" can not be determined. Please check for TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.php.
  • We’ve tried with the newly introduced EXTBASEPLUGIN as well, which yields the same result
  • Additionally I’ve found that it stems from the ConfigurationManager instance used, being wrong. When logged in as a non-admin user, when it injects the TYPO3\CMS\Extbase\Configuration\ConfigurationManager no TYPO3_REQUEST is found and therefore the concreteConfigurationManager is set to BackendConfigurationManager which of course does not contain the correct information about the plugins

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 2

  1. Claus Harup commented 08/26/23, 10:46

    Local mis-configuration – just close the issue :-)

  2. Riccardo De Contardi commented and changed status New Closed target version 04/13/24, 22:28

    @Claus Harup sorry for this late reply and thank you for your update!

    I am closing this issue in agreement with the reporter.

    If you think that this is the wrong decision please reopen it or open a new issue with a reference to this one.

    Thank you.