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
4 Answers
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.
-
Hi @arshish i have been facing same issue how do i fix? please advise recently upgraded to 2.3.1 CE Apr 25, 2019 at 10:15
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.
-
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 Apr 25, 2019 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. Feb 27, 2020 at 11:28
-
Can you help me with this? -> magento.stackexchange.com/questions/310454/… Apr 15, 2020 at 9:39
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
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.
-
Hi @arshad syed i have been facing same issue how do i fix? please advise Apr 25, 2019 at 10:14
-
-
"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 Apr 27, 2019 at 13:39
-
When you added this line die($e->getMessage()); in createpost.php what error it is giving you. Apr 27, 2019 at 17:07
-
If you have any module which will register customer then check that module Apr 27, 2019 at 17:41