Skip to content

Switching off FPC causes config key collision (beta) #1808

Closed
@amenk

Description

@amenk

Steps to reproduce:

  1. Disable a cache (full page cache in backend)

  2. Now the cache settings are written to env.php

  3. On the next page view, I get the following error:

    exception 'Exception' with message 'Key collision! The following keys occur in multiple config files: cache_types 
    ' in /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/DeploymentConfig/Reader.php:91 Stack
     trace: #0 /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/DeploymentConfig.php(130):
     Magento\Framework\App\DeploymentConfig\Reader->load() #1 /home/me/workspace/example.com/public/lib/internal/Magento
    /Framework/App/DeploymentConfig.php(72): Magento\Framework\App\DeploymentConfig->load() #2 /home/me/workspace/example.com
    /public/lib/internal/Magento/Framework/App/ObjectManagerFactory.php(112): Magento\Framework\App\DeploymentConfig->get() #3 
    /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/Bootstrap.php(384): Magento\Framework\App
    \ObjectManagerFactory->create(Array) #4 /home/me/workspace/example.com/public/lib/internal/Magento/Framework/App/Bootstrap.php(231): 
    Magento\Framework\App\Bootstrap->initObjectManager() #5 /home/me/workspace/example.com/public/index.php(38): 
    Magento\Framework\App\Bootstrap->createApplication('Magento\\Framewo...') #6 {main}
    

What I saw is, that the cache_types section is in env.php as well as config.php. I actually was expecting, that config file merging / overwriting of values should work?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions