Skip to content

ApplicationContext and TYPO3_CONTEXT are different #4

@Prizzler

Description

@Prizzler

Hi,

if i set my context from the extConf with 'forceContext' or in the TYPO3_CONTEXT-configuration file, then i get different values for the TYPO3_CONTEXT-environment and the bootstrapped ApplicationContext.

Same Problem exists if i cannot set TYPO3_CONTEXT in a shared hosting envirnment.

my version is typo3 7.6, t3ext-environment 1.0.6

coding sample AdditionalConfiguration.php:

string 'Development' (length=11) // 'fallbackContext' => string 'Development' (length=11); // load the environment / context configuration for this installation include('ext/environment/Includes/Bootstrap/InitializeContext.php'); echo (\TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext()); // 'Production'; echo (getenv('TYPO3_CONTEXT')); // 'Development'; exit;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions