Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with region field #6590

Closed
valibus opened this issue Sep 13, 2016 · 2 comments
Closed

Problem with region field #6590

valibus opened this issue Sep 13, 2016 · 2 comments
Assignees
Labels
bug report Component: Customer Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Progress: needs update

Comments

@valibus
Copy link

valibus commented Sep 13, 2016

Preconditions

  1. Magento 2.1 CE on PHP 7
  2. In section configuration /general / state options
  3. State is required for : Unselect all country. No one should be slected
  4. Allow to choose state if it is optional for country : NO

We use this configuration cause we do not need to have region field in our store. We do not need it and it's one more field in form and that cool for the UX and conversion rate.

Steps to reproduce

  1. We had to remove manually the field cause the setup in configuration did not work properly (the field was still mandatory in back office)
  2. Try to confirm an order with an adress without region and you should have this message in front office. It will disapear depending on the order. Sometime if you create a new adress it won't appear. (appear in log files)

Expected result

  1. Be able to confirme order without the bug

Actual result

Next Exception: Report ID: webapi-57d7bf41422a0; Message: Recoverable Error: Object of class Magento\Customer\Model\Data\Region could not be converted to string in /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 2915 in /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/vendor/magento/framework/Webapi/ErrorProcessor.php:... Stack trace: #0 /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/vendor/magento/framework/Webapi/ErrorProcessor.php(...: Magento\Framework\Webapi\ErrorProcessor->_critical(Object(Exception)) #1 /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/vendor/magento/module-webapi/Controller/Rest.php(21...: Magento\Framework\Webapi\ErrorProcessor->maskException(Object(Exception)) #2 /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/var/generation/Magento/Webapi/Controller/Rest/Inter...: Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http)) #3 /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/vendor/magento/framework/App/Http.php(135): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #4 /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #5 /var/www/ourNameSpace/rec/src/releases/2016-09-13-08-25/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #6 {main} [] []

@veloraven veloraven added bug report Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Component: Customer 2.1.x labels Sep 13, 2016
@sevos1984
Copy link
Contributor

You cannot remove region attribute from magento as other modules dependent on it. Ignoring required setting is known issue #5851

@sevos1984
Copy link
Contributor

We are closing this issue because it hasn’t been updated in more than two weeks. If you can still reproduce this issue, please create a new GitHub issue report.

magento-engcom-team pushed a commit that referenced this issue Feb 20, 2021
MCP-180: elastic index improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Customer Component: Framework/Webapi USE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalog Progress: needs update
Projects
None yet
Development

No branches or pull requests

3 participants