Bug #79933
closed
TypoScript conditions ignored inside included constants file
Added by Christian Müller almost 8 years ago.
Updated about 3 years ago.
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.
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.
- Assignee set to Benni Mack
Seen as php7:notice in apache error log when TYPO3 v8 backend is active with EXT:bootstrap_package installed.
- 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?
- 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.
Also available in: Atom
PDF