Magento – “We can’t save the customer” Alert on Magento 2

customercustomer-addressmagento2

In Magento 2, on the `registration.HTML file, I have enabled the address fields.
But when I try to create or register a new customer, it shows "We can't save the customer".

Can anyone tell me where I am lacking?

It will be very helpful for me.

Best Answer

You most probably have an error somewhere.
In order to find out what the problem is you can add this code.

$this->messageManager->addException($e, $e->getMessage());

Instead of the line

$this->messageManager->addException($e, __('We can\'t save the customer.'));

in Magento\Customer\Controller\Account\CreatePost::execute().
This should give you the exception message on the screen and you will have a place to start.

Related Topic