You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't tested this on a clean Magento project, but I think you will probably be able to reproduce it.
This has been seen using Magento EE 2.2.5 on a Magento Cloud environment. We use version 1.0.9 of the DPD module.
Anyway, here's what I've noticed:
Our client has done some configuration of the DPD module in the backend of Magento (and probably uploaded a csv file)
On the Magento Cloud, it is advised to regularly run vendor/bin/m2-ece-scd-dump to dump the configuration to the app/etc/config.php file (since you guys probably won't have access to the Magento Cloud, you can most likely reproduce this by executing bin/magento app:config:dump)
After dumping the config, we have this section in our app/etc/config.php file:
Then, when we try to import this config back in Magento on another (or the same) environment using bin/magento app:config:import, we get this output:
$ bin/magento app:config:import
Processing configurations data from configuration file...
Import failed: Notice: Undefined index: groups in vendor/dpdbenelux/magento2-shipping/Model/ResourceModel/Tablerate.php on line 264
Extra remark: I don't think it's a good idea to move these "import" configurations in between environments, since they look like file uploads, so that wouldn't make any sense to move those in between environments. Maybe those "import" configurations should be marked as "system-specific" ? More info: https://devdocs.magento.com/guides/v2.2/extension-dev-guide/configuration/sensitive-and-environment-settings.html (I think this can only be done for Magento 2.2 and higher)
This is probably a pretty complex issue, so I hope I've provided enough info for you guys to figure out what is wrong or what can be improved.
Thanks!
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue and providing so much information!
We've been able to reproduce this issue in a clean testing environment and added it to our backlog to fix in an upcoming release. We agree that the "import" value shouldn't be present in the config.php
Hi guys
I haven't tested this on a clean Magento project, but I think you will probably be able to reproduce it.
This has been seen using Magento EE 2.2.5 on a Magento Cloud environment. We use version 1.0.9 of the DPD module.
Anyway, here's what I've noticed:
vendor/bin/m2-ece-scd-dump
to dump the configuration to theapp/etc/config.php
file (since you guys probably won't have access to the Magento Cloud, you can most likely reproduce this by executingbin/magento app:config:dump
)app/etc/config.php
file:bin/magento app:config:import
, we get this output:Extra remark: I don't think it's a good idea to move these "import" configurations in between environments, since they look like file uploads, so that wouldn't make any sense to move those in between environments. Maybe those "import" configurations should be marked as "system-specific" ? More info: https://devdocs.magento.com/guides/v2.2/extension-dev-guide/configuration/sensitive-and-environment-settings.html (I think this can only be done for Magento 2.2 and higher)
This is probably a pretty complex issue, so I hope I've provided enough info for you guys to figure out what is wrong or what can be improved.
Thanks!
The text was updated successfully, but these errors were encountered: