-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
When trying to import a dumped config on another server (demo), the import fails. Nothing in the config file has been changed but URL and password values.
The (redacted) dump: env.redacted.txt
Problem is caused in L106 - L111
I've tried adding the 'use_custom' => 1, 'use_custom_path' => 1, but it didn't help. Setting both of those to 0 does fix the issue, but as expected then the custom admin url/path isn't used.
In magento/module-config/Model/Config/Backend/Admin/Usecustom.php where the error is thrown, debugging reveals that no other config keys are set in $this->_data. As such, getData('groups/url/fields/custom/value') will always return null.
Preconditions
- mage 2.2.4
- ubuntu 16.04
- php 7.0.28
Steps to reproduce
- export config on dev machine containing custom admin url and path
- adjust urls for demo server without adding, modifying or deleting any keys
- import config on demo server
Expected result
- sucessful import
Actual result
php bin/magento app:config:import
Processing configurations data from configuration file...
Import failed: Please specify the admin custom URL.