Project

General

Profile

Actions

Bug #72402

closed

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

Added by Pascal Mayer over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2015-12-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

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

Actions #1

Updated by Morton Jonuschat over 8 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.

Actions #2

Updated by Pascal Mayer over 8 years ago

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

Actions

Also available in: Atom PDF