Project

General

Profile

Actions

Bug #79933

closed

TypoScript conditions ignored inside included constants file

Added by Christian Müller almost 8 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
TypoScript
Target version:
-
Start date:
2017-02-21
Due date:
% Done:

0%

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

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.

Actions #1

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.

Actions #2

Updated by Benni Mack about 7 years ago

  • Assignee set to Benni Mack

looking into it

Actions #3

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.

Actions #4

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?

Actions #5

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.

Actions

Also available in: Atom PDF