Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtensionManagementUtility::addStatic should not call in ext_localconf.php #2174

Open
websi opened this issue Aug 19, 2024 · 0 comments
Open

Comments

@websi
Copy link

websi commented Aug 19, 2024

Calling ExtensionManagementUtility::addStatic within ext_localconf.php generates a PHP warning.

image

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('flux', 'Configuration/TypoScript', 'Flux PAGE rendering');

The warning is only available, if autoload is disabled.

The method ExtensionManagementUtility::addStatic manipulate $GLOBALS['TCA'] which is not available at this context.
Registration should be moved to Configuration/TCA/Overrides/sys_template.php.

Xippo added a commit to Xippo/flux that referenced this issue Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant