Bug #72402

Constants added via addTypoScriptConstants() are missing after clearing frontend cache

Added by Pascal Mayer almost 3 years ago. Updated almost 3 years ago.

Should have
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


I received reports about an issue in my extension iconfont after clearing the fontend cache. I was able to reproduce it reliable and I think it is an issue in TYPO3 core.

In my extension I define typoscripts constants in ext_tables.php using ExtensionManagementUtility::addTypoScriptConstants().

When I clear the frontend cache and reload the page with the same browser the constants are still available and everthing works as expected. But if I clear the fontend cache in one browser and reload the page in another browser in which I am not logged in to the TYPO3 backend the constants are missing.

See https://forge.typo3.org/issues/72272#note-2

Cheers Pascal


#1 Updated by Morton Jonuschat almost 3 years ago

  • Category deleted (Caching)
  • Status changed from New to Rejected

Please see the extension architecture documentation: ext_tables.php is not always included in global scope (in the frontend) - https://docs.typo3.org/typo3cms/CoreApiReference/6.2/ExtensionArchitecture/ConfigurationFiles/
The API documentation for ExtensionManagementUtility::addTypoScriptConstants also states: FOR USE IN ext_localconf.php FILES

Moving the addTypoScriptConstants call to ext_localconf.php or adding the constants using ext_typoscript_constants.txt should solve the issue you have with your extension.

If you think that closing this issue is the wrong decision, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

#2 Updated by Pascal Mayer almost 3 years ago

Thank you for the update. And sorry, my fault.

Also available in: Atom PDF