- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
after config:set error, but app:config:import says "nothing to import"
Changing a config value with the config:set command leads to the error:
"The configuration file has changed. Run the app:config:import or the setup:upgrade command"
and the shop does not load anymore.
Using the both commands always show "Nothing to import" and the shop still is not working.
Reverting to the original value brings back the shop.
What can I do to be able to change config values again? Please help - Thanks!
Magento 2.3.1 (Community)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: after config:set error, but app:config:import says "nothing to import"
Hello @christian_meyer
try to change the value manually into config.php
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: after config:set error, but app:config:import says "nothing to import"
changing the value is not the issue! It does not matter if I use the cli or if I edit the file, the shop does not work after changing a config value.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: after config:set error, but app:config:import says "nothing to import"
* all config values in the admin backend are locked
* if I set a config value with config:set (with --lock-env) it returns:
Value was saved in app/etc/env.php and locked.
which I can confirmed by opening the file with an editor.
* now the shop is not working and I get the following message in the log:
The configuration file has changed. Run the "app:config:import" or the "setup:upgrade" command to synchronize the configuration.
* running the commands both return:
Nothing to import.
* if I change back the config value the shop works again!
Please help: what can I do to be able to change any config value? Thanks!