Closed leabaertschi closed 5 years ago
Hi @leahaense. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento-engcom-team give me 2.3-develop instance
- upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@leahaense do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
@magento-engcom-team give me 2.3.1 instance
Hi @leahaense. Thank you for your request. I'm working on Magento 2.3.1 instance for you
Hi @leahaense, here is your Magento instance.
Admin access: https://i-22142-2-3-1.instances.magento-community.engineering/admin
Login: admin
Password: 123123q
Instance will be terminated in up to 3 hours.
The issue is not reproducible on a vanilla Magento 2.3.1 instance.
Hi @engcom-backlog-nazar. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento-engcom-team give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Verify that the issue is reproducible on 2.2-develop
branch. Details
- Add the comment @magento-engcom-team give me 2.2-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.2-develop
branch, please add the label Reproduced on 2.2.x
[ ] 6. Add label Issue: Confirmed
once verification is complete.
[ ] 7. Make sure that automatic system confirms that report has been added to the backlog.
Hi @leahaense thank you for you report, i'm not able to reproduce following steps you described on clean magento 2.3-develop, seems like problem related to your configuration , or wrong data in csv file.
Hi @engcom-backlog-nazar, definitely not the csv file, since I was able to import it after changing the configuration in website scope, as described in the issue. I was thinking that maybe it was caused due to something going wrong during the upgrade from version 2.2.6, or due to the app:config:dump
, app:config:import
messing something up. If I have time I will try to reproduce it with a clean 2.2.x with upgrade to 2.3.1 with dumped config.
@leahaense i think this related to app:config:dump, app:config:import
error that you have, says that condition_name_short
is the key of value but we need value, so i think this related to wrong config data array.
@leahaense found! you have condition_name_short:
must be condition_name_short
@engcom-backlog-nazar the :
is just in the exception error message coming from the file mentioned in the comment, which is Magento core. The issue seems to be, that it does not find the condition name in the config when fetching it from the default config scope here: https://github.com/magento/magento2/blob/0eb8677b0b4e35606032e856cc1ef7c80e68829f/app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier/Tablerate.php#L307
The result of this function is NULL
.
@leahaense hmm... this may be related to app:config:import
I'm having the same issue after upgrading from 2.2.6 to 2.3.1. My config is also dumped in config.php.
Probably this issue should be reopened. It's an upgrade issue or something related to app:config:dump
not reproducible with simple checks.
so it is closed, but what is the solution for this problem?
@giacmir I managed to import it after removing the below entries from the app/etc/config.php
file temporarily. Please note that there are two set of entries for the tablerate
remove both.
'carriers' => [
'tablerate' => [
//....
]
]
Then do a cache clean - php bin/magento cache:clean
. Now if you try to import it, this should work.
I had the same problem on Magento 2.2.8. I can confirm that the issue is related to app:config:dump
/ app:config:import
. When I removed the default tablerate configurations in config.php
file, as @byjujohn suggested, I managed to import the csv file.
Magento 2.3.4 on Magento Cloud and this bug is still present
The issue seems to be located at https://github.com/magento/magento2/blob/cd826aa2215e19d543a3a606aebde18fa3e40d4e/app/code/Magento/OfflineShipping/Model/ResourceModel/Carrier/Tablerate.php#L309-L313
The config path groups/tablerate/fields/condition_name
is never set in the object in case it was read from etc/config.php
.
I think the config should be read via ScopeConfigInterface
instead.
Preconditions (*)
app/etc/config.php
Steps to reproduce (*)
Expected result (*)
Actual result (*)
exception.log
I got the following error message: