#108792php warning in \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile
Description
I installed TYPO3 14 via composer. I added my old skeleton extension.
I added thefollowing code in ext_localconf.php:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
‘one_style’,
‘EXT:one_style/Configuration/TypoScript’,
‘One Style’
);
I got in the TYPO3 backend the following warnings. (see screenshot)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 1
History 2
-
Dieter Dr. Porth commented <span data-processor="relativetime" data-value="2026-01-28T08:23:50+00:00" > 01/28/26, 08:23 </span>
-
Garvin Hicking commented and changed status
NewRejected <span data-processor="relativetime" data-value="2026-01-28T11:07:42+00:00" > 01/28/26, 11:07 </span>Hi,
you must add this code to a TCA override file. You are getting the error because you access TCA in ext_localconf.php. That is not allowed.
Regards,
Garvin
My mistake. I missed the integration of an typoscript-template.The errormessage was not really helpful to me.I used for testting \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(). Perhaps the cache prohibts the warning. After an composer update I got the warning onece more.