Magento2: cannot save the customer issue

Created on 3 Mar 2014  Â·  33Comments  Â·  Source: magento/magento2

I have installed Magento 2 And i got this issue ..
while registering new customer from front end i got the message cannot save customer
customersave

All 33 comments

This issue resolved by put session to 'db' instead of 'files'

tell me in breif what we have to do when the customer is not save in magento in live site

This is MAGENTO 2 bug .. Which version you are using on live site ?

1.5.5 magento

from where i have to put session to 'db' instead on 'files' can you explain breifly

But this is bug in MAGENTO 2 only

while creating new customer in my magento live site i am getting this error

now i am getting this error tell me what to do.,................

Please find app/etc/env.php and change "'session_save' => array('save' => 'files')" to "session_save' => array('save' => 'db')" for the magento 2 bug

which error you are getting ?

i am getting this error cannot save customer

i will send my code please check it and send back

Give me URL

Sir did you got the URL

@jeethusing this issue tracker is for Magento 2 ONLY. You cannot and should not request support for Magento 1.5 here. Please head to magento.stackexchange.com to ask your question and a member of the community can assist you. Thanks!

this link is not working

are you there

Dude this issue tracker is for Magento 2 ONLY ..

"This link is not working" - assuming you meant the Magento Stack Exchange link, I just tried http://magento.stackexchange.com/ and it works fine for me.

@vishves, we have placed a ticket to the product backlog. Looks like it is connected to #521 in some way. Hopefully both issues will be resolved with one code change. We will get back to you once we have it fixed. Thank you for reporting your case to us!

@vishves, the team tried to verify the issue, but could not reproduce it. Apparently it was already fixed along with some other issue. Could you please verify if you still experience it on the latest version available on the GitHub? If yes, please provide any additional information that could help us reproduce it. If not, please close this issue.

Closing this issue as cannot be reproduced any more.

I debugged this and got this "Email template '23' is not defined." using 2.1.7, have used the migration tool if that has to do with anything.

Happens every time you try to register a new customer.. He/she is saved in DB but no email is sent out and the response is only "Cannot save the customer"

image

Tried with a clean database and could not reproduce it then.. so it seems it's somehow related to the database.. maybe the migration tool..

Hello, when i register new customer on magento 2, it gives error We can\'t save the customer
how to solve

If you have a custom theme with templates containing <form>, verfiy that those contain the formkey also! That was my issue, page was just reloading without any error (but no signup either).

E.g:
<form><?php /* @noEscape */ echo $block->getBlockHtml('formkey'); ?>

i have change
on /vendor/magento/module-customer/Controller/Account/createpost.php file
here is my code
$this->messageManager->addException($e, __('We can\'t save the customer.'));

it gives error we cant save the customer

On Tue, Apr 3, 2018 at 4:55 PM, OZZlE notifications@github.com wrote:

If you have a custom theme with templates containing
, verfiy that those contain the formkey also! That was my issue, page was
just reloading without any error (but no signup either).

E.g:

@noEscape */ echo $block->getBlockHtml('formkey'); ?>

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/522#issuecomment-378216801,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkPYonxskVuSGuWl5R5Ul1hLHX5seXjPks5tk1whgaJpZM4BmNHS
.

@deepshik you modified core to throw an exception and now you are surprised that it does? Or what are you trying to say?

My post was about if you have made your theme for an older version of magento and haven't added the formkeys then you need to do that. Otherwise the create account form just reloads the page when you submit it.

everything working fine with my magento 2 theme , only issue in user
registration , i have already change in my core file , but there was no any
changes on registration .
so how to solve i m using magento 2.2.2 version

On Tue, Apr 3, 2018 at 5:33 PM, OZZlE notifications@github.com wrote:

@deepshik https://github.com/deepshik you modified core to throw an
exception and now you are surprised that it does? Or what are you trying to
say?

My post was about if you have made your theme for an older version of
magento and haven't added the formkeys then you need to do that. Otherwise
the create account form just reloads the page when you submit it.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/522#issuecomment-378225808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkPYovp4NFLFBsi8oaGVyH0uu9vPS_yJks5tk2T0gaJpZM4BmNHS
.

Hello,
i have registred in magento 2 , registration sucess but gives error cant
save the customer
how to solve

On Tue, Apr 3, 2018 at 6:07 PM, Deepshikha Makwana deepshikha@egws.in
wrote:

everything working fine with my magento 2 theme , only issue in user
registration , i have already change in my core file , but there was no any
changes on registration .
so how to solve i m using magento 2.2.2 version

On Tue, Apr 3, 2018 at 5:33 PM, OZZlE notifications@github.com wrote:

@deepshik https://github.com/deepshik you modified core to throw an
exception and now you are surprised that it does? Or what are you trying to
say?

My post was about if you have made your theme for an older version of
magento and haven't added the formkeys then you need to do that. Otherwise
the create account form just reloads the page when you submit it.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/522#issuecomment-378225808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkPYovp4NFLFBsi8oaGVyH0uu9vPS_yJks5tk2T0gaJpZM4BmNHS
.

i have also put session to 'db' instead of 'files' in env.php but there is
no any changes , it gives cant save the customer

On Fri, Apr 13, 2018 at 5:16 PM, Deepshikha Makwana deepshikha@egws.in
wrote:

Hello,
i have registred in magento 2 , registration sucess but gives error cant
save the customer
how to solve

On Tue, Apr 3, 2018 at 6:07 PM, Deepshikha Makwana deepshikha@egws.in
wrote:

everything working fine with my magento 2 theme , only issue in user
registration , i have already change in my core file , but there was no any
changes on registration .
so how to solve i m using magento 2.2.2 version

On Tue, Apr 3, 2018 at 5:33 PM, OZZlE notifications@github.com wrote:

@deepshik https://github.com/deepshik you modified core to throw an
exception and now you are surprised that it does? Or what are you trying to
say?

My post was about if you have made your theme for an older version of
magento and haven't added the formkeys then you need to do that. Otherwise
the create account form just reloads the page when you submit it.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/magento/magento2/issues/522#issuecomment-378225808,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AkPYovp4NFLFBsi8oaGVyH0uu9vPS_yJks5tk2T0gaJpZM4BmNHS
.

Was this page helpful?
0 / 5 - 0 ratings