Bug #79933
closedTypoScript conditions ignored inside included constants file
0%
Description
My example condition:
[userFunc = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('indexed_search')] <INCLUDE_TYPOSCRIPT: source="FILE:EXT:indexed_search/Configuration/TypoScript/constants.txt"> [end]
The condition above inside 'ext_key/Configuration/TypoScript/constants.ts' works just fine.
If we use this condition in a separate file e.g. 'ext_key/Configuration/TypoScript/Includes/MoreConst.ts' which was included in the first file (constants.ts),
the following error appears in TypoScript Object Browser:
Warning : File "EXT:indexed_search/Configuration/TypoScript/constants.txt" was not found.
Indexed search is not installed/activated.
Updated by Alexander Grein about 7 years ago
I can confirm this problem.
The bootstrap_package produces exact this error message if indexd_search is not installad.
The warning appear also in the typo3 console under TYPO3 8.7.5
To reproduce:
Add a condition described above, by adding it inside an included typoscript file and go to the command line.
Now type in e.g. the following command (valid for a composer installation):
vendor/bin/typo3 list
The first two lines are always:
d061af3ecfe1:/app/web/ - core: File "EXT:indexed_search/Configuration/TypoScript/constants.txt" was not found. d061af3ecfe1:/app/web/ - core: File "EXT:indexed_search/Configuration/TypoScript/setup.txt" was not found.
before the expected content appears.
Updated by Joerg Kummer over 6 years ago
Seen as php7:notice in apache error log when TYPO3 v8 backend is active with EXT:bootstrap_package installed.
Updated by Benni Mack over 4 years ago
- Status changed from New to Needs Feedback
It is indeed in TypoScriptParser
protected static function typoscriptIncludeError($error) { self::getLogger()->warning($error); return "\n###\n### ERROR: " . $error . "\n###\n\n"; }
What would you expect? That we do not log a warning?
Updated by Benni Mack about 3 years ago
- Status changed from Needs Feedback to Closed
Closed due to lack of feedback, let me know if we should proceed here, and I'll reopen the issue.