{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/16368","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/16368/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/16368/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/16368/events","html_url":"https://github.com/magento/magento2/issues/16368","id":335157008,"node_id":"MDU6SXNzdWUzMzUxNTcwMDg=","number":16368,"title":"Error message: Please check the shipping address information. Invalid value of \"95\" provided for the regionId field.","user":{"login":"matin73","id":3177275,"node_id":"MDQ6VXNlcjMxNzcyNzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3177275?v=4","gravatar_id":"","url":"https://api.github.com/users/matin73","html_url":"https://github.com/matin73","followers_url":"https://api.github.com/users/matin73/followers","following_url":"https://api.github.com/users/matin73/following{/other_user}","gists_url":"https://api.github.com/users/matin73/gists{/gist_id}","starred_url":"https://api.github.com/users/matin73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matin73/subscriptions","organizations_url":"https://api.github.com/users/matin73/orgs","repos_url":"https://api.github.com/users/matin73/repos","events_url":"https://api.github.com/users/matin73/events{/privacy}","received_events_url":"https://api.github.com/users/matin73/received_events","type":"User","site_admin":false},"labels":[{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/G1%20Passed","name":"G1 Passed","color":"0e8a16","default":false},{"id":686420665,"node_id":"MDU6TGFiZWw2ODY0MjA2NjU=","url":"https://api.github.com/repos/magento/magento2/labels/G2%20Passed","name":"G2 Passed","color":"0e8a16","default":false},{"id":686476746,"node_id":"MDU6TGFiZWw2ODY0NzY3NDY=","url":"https://api.github.com/repos/magento/magento2/labels/G3%20Passed","name":"G3 Passed","color":"0e8a16","default":false},{"id":686477126,"node_id":"MDU6TGFiZWw2ODY0NzcxMjY=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.2.x","name":"Reproduced on 2.2.x","color":"e99695","default":false},{"id":686477167,"node_id":"MDU6TGFiZWw2ODY0NzcxNjc=","url":"https://api.github.com/repos/magento/magento2/labels/Reproduced%20on%202.3.x","name":"Reproduced on 2.3.x","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-06-24T07:07:08Z","updated_at":"2018-07-03T10:52:47Z","closed_at":null,"author_association":"NONE","body":"\r\n### Preconditions\r\n<!---\r\n    Please provide as detailed information about your environment as possible.\r\n    For example Magento version, tag, HEAD, PHP & MySQL version, etc..\r\n-->\r\n1. Magento 2.2.3 and upgrade to Magento 2.2.4\r\n2. PHP 7.0.30\r\n3. MySQL libmysql - mysqlnd 5.0.12-dev and also 10.0.32-MariaDB-0+deb8u1\r\n\r\n### Steps to reproduce\r\n1. Install Magento 2.2.3 and install Firegento 2 via composer. then upgrade to Magento 2.2.4\r\n2. Set configuration for \"Province/Region\" to \"not necessary\"; Allowed countries Austria and Germany; Default country Austria (also shipping origin and so on - it is austrian shop); Payment methods \"Bank Transfer Method\" and \"Cash on Delivery\"\r\n3. Buy any product and go to checkout. Change country to Germany and select payment \"Bank Transfer Method\" or \"Cash on Delivery\".\r\n\r\n### Expected result\r\n1. Checkout should work\r\n\r\n### Actual result\r\n1. Checkout error message \"Error message: Please check the shipping address information. Invalid value of \"95\" provided for the regionId field.\"\r\n\r\nValue \"95\" is written by Firegento Extension to table \"core_config_data\" and row \"path\" -> tax/defaults/region and \"value\" 95.\r\n\r\nMagento writes error message in \"vendor/magento/module-customer/Model/Address/AbstractAddress.php\" liine 652ff\r\n$errors[] = __( 'Invalid value of \"%value\" provided for the %fieldName field.', [ 'fieldName' => 'regionId', 'value' => htmlspecialchars($regionId) ] );\r\n\r\nregion id is set by function \" public function getRegionId()\" on line 400ff\r\n\r\nI do not knwo why magento is fetching value of \"tax/defaults/region\" and throwing error. Maybe it is concerning this bug magento/magento2#14052. This value in table is not for shipping - it is only for TAX\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/402107371","html_url":"https://github.com/magento/magento2/issues/16368#issuecomment-402107371","issue_url":"https://api.github.com/repos/magento/magento2/issues/16368","id":402107371,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjEwNzM3MQ==","user":{"login":"matin73","id":3177275,"node_id":"MDQ6VXNlcjMxNzcyNzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3177275?v=4","gravatar_id":"","url":"https://api.github.com/users/matin73","html_url":"https://github.com/matin73","followers_url":"https://api.github.com/users/matin73/followers","following_url":"https://api.github.com/users/matin73/following{/other_user}","gists_url":"https://api.github.com/users/matin73/gists{/gist_id}","starred_url":"https://api.github.com/users/matin73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matin73/subscriptions","organizations_url":"https://api.github.com/users/matin73/orgs","repos_url":"https://api.github.com/users/matin73/repos","events_url":"https://api.github.com/users/matin73/events{/privacy}","received_events_url":"https://api.github.com/users/matin73/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T10:52:47Z","updated_at":"2018-07-03T10:52:47Z","author_association":"NONE","body":"@engcom-backlog-nazar thanks for reply. Sure, value was set in database by Firegento Magesetup2. But why is Magento checking \"TAX-region\" value for shipping address. So this must be a bug in latest Magento, because in 2.2.3 it works well."}}
{"actor":{"display_login":"matin73"}}