Magento2: Magento 2 checkout issue

Created on 18 Apr 2016  路  10Comments  路  Source: magento/magento2

Hello ,

When i go in checkout page i am getting one error notice.

Recoverable Error: Object of class Magento\Customer\Model\Data\Region could not be converted to string in /var/www/html/vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 2903

Can you please help to resolve that issue.

Thanks

Format is not valid needs update

Most helpful comment

This needs re-opening and resolving. At the moment you only support countries with regions. Its pretty clear bug and affecting all UK magento 2 installs.

All 10 comments

Here you go for screen shot .
checkout error

@wclansar Hi, thank you for reporting. Do you have any customizations on your Magento installation? Please provide more detailed preconditions and steps to reproduce.

Closing due to lack of updates. @wclansar if you still experience this issue please create a new report.

I have experienced same:
Recoverable Error: Object of class Magento\Customer\Model\Data\Region could not be converted to string in /vendor/magento/framework/DB/Adapter/Pdo/Mysql.php on line 2903 in /var/www/releases/d-GOG2F8Y2G/vendor/magento/framework/Webapi/ErrorProcessor.php:194
Stack trace:

0 /var/www/releases/d-GOG2F8Y2G/vendor/magento/framework/Webapi/ErrorProcessor.php(139): Magento\Framework\Webapi\ErrorProcessor->_critical(Object(Exception))

1 /var/www/releases/d-GOG2F8Y2G/vendor/magento/module-webapi/Controller/Rest.php(163): Magento\Framework\Webapi\ErrorProcessor->maskException(Object(Exception))

2 /var/www/releases/d-GOG2F8Y2G/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24): Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))

3 /var/www/releases/d-GOG2F8Y2G/vendor/magento/framework/App/Http.php(115): Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))

4 /var/www/releases/d-GOG2F8Y2G/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()

5 /var/www/releases/d-GOG2F8Y2G/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))

We are experiencing the same error when region field is not mandatory.

In order to reproduce the error,

  1. Set a country as an allowed country which expects no 'region' information in the address structure.
  2. Create a customer who belongs to the country specified in step 1.
  3. Add some products in cart and go to checkout page.
  4. The error!!! Recoverable Error: Object of class Magento\Customer\Model\Data\Region could not be converted to string in /vendor/magento/framework/DB/Adapter/Pdo/Mysql.php

We are facing the same error when the customer address has not region. We have also checked on Magento 2 live Demo at http://magento2-demo.nexcess.net/ We have created a customer address without the region. We have tried to place orders and it shows the only Order Summary on checkout page.
You can check with below Customer Address:
First Name *: Test
Last Name *: Test
Street Address *: Test Address
Company :
Company *: Dubai
State/Province :
Phone Number * :
Fax :
Country * : United Arab Emirates

This needs re-opening and resolving. At the moment you only support countries with regions. Its pretty clear bug and affecting all UK magento 2 installs.

We've come across this issue too (we're UK based) and needs addressing as @wsakaren has said

Hey All. Apologies if this issue in ongoing for some of you. This issue was CLOSED back in May when the original reporter failed to respond to requests for more information. We try to reproduce issues as reported and when we cannot we ask for more information. If anyone is STILL having this issue, the proper action to take is to open a new issue and you can reference back to the closed issue if it contains any useful information. In this was we have an active issue and someone to contact for more details if we cannot reproduce the issue. thanks

Was this page helpful?
0 / 5 - 0 ratings