3

Hello i am new on the magento 2 . suddenly i got the error when new user come on the site and try to register after filling information it is showing error as " We Can't save the customer " . i am not able to understand why this is happening suddenly on my website. please let me know and suggest me any relevant answer for this query . my webSite Url is http://54.67.81.223/viewsonicstore

  • I have try but no any error displaying, page not redired on my account. – Suresh Chikani Apr 21 '16 at 13:23
3

Go to core/mage/customer/controller/AccountController.php and find function named createPostAction(). In that function add

die($e->getMessage());

Just after catch (Exception $e) {. You can see what the problem is..

Don't forget to remove the additional line when problem will be fixed.

| improve this answer | |
  • Hi @arshish i have been facing same issue how do i fix? please advise recently upgraded to 2.3.1 CE – Nagaraju K Apr 25 '19 at 10:15
2

You can debug your code from controller of account create.

Path is vendor/magento/module-customer/Controller/Account/CreatePost.php go to execute() function and you can debug here. your error are generate from line no. 278 from above file.

| improve this answer | |
  • 1
    @raklesh i have tried all the answers but no luck can you help on save customer issue. Recently we upgrade to 2.3.3 CE to 2.3.1 CE. Please advise – Nagaraju K Apr 25 '19 at 10:16
  • Hi @NagarajuK, do you found any solution on it actually i am also facing same error after Magento 2.2.4 to 2.3.4 upgrade while creating customer account. – Hitesh Balpande Feb 27 at 11:28
  • Can you help me with this? -> magento.stackexchange.com/questions/310454/… – Kowsigan Atsayam Apr 15 at 9:39
0

This seems to happen after a reboot.

Normal Magento > from Magento folder

sudo chown -R daemon:daemon /var

Bitnami Stack

sudo chown -R daemon:daemon /opt/bitnami/apps/magento/htdocs/var

It has something to do with the folder permissions changing after a reboot.

Someone else will be able to post the correct reason

| improve this answer | |
0

Go to app/code/core/Mage/Customer/controllers/AccountController.php and find function named createPostAction(). In that function add

die($e->getMessage());

Just after catch (Exception $e) {. You can see what the problem is..

In Magento2, you have to add in

vendor/magento/module-customer/Controller/Account/CreatePost.php

In the function execute()

 die($e->getMessage()) 

Don't forget to remove the additional line when problem will be fixed.

| improve this answer | |
  • Hi @arshad syed i have been facing same issue how do i fix? please advise – Nagaraju K Apr 25 '19 at 10:14
  • What error it is showing to you – Arshad Syed Apr 26 '19 at 16:45
  • "We can't save customer". I looking for solution from the past 4 days still issue exists in my local system after upgrade from magento2.2.3 CE to magento2.3.1 CE. Could you please advise – Nagaraju K Apr 27 '19 at 13:39
  • When you added this line die($e->getMessage()); in createpost.php what error it is giving you. – Arshad Syed Apr 27 '19 at 17:07
  • If you have any module which will register customer then check that module – Arshad Syed Apr 27 '19 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.