I am using magento 2.3.1 and i am trying to register customer from frontend and i am getting following error "The customer email is missing. Enter and try again."

when i try to check in _beforeSave() from Magento\Customer\Model\ResourceModel\Customer doesnt getting email id. i am getting following error when i print the customer object

    [created_in] => The XXXXXX XXXXX Store
    [email] => 
    [firstname] => pradeep
    [lastname] => sanku
    [store_id] => 1
    [website_id] => 1
    [addresses] => Array

    [entity_id] => 
    [password_hash] => c230dfa79aedee32b5d1d4645977a806be7bb4bfd0689c120930bdb1a45c2e6e:w4cmFyPTPkTsTYTlH0vSOMQIjNzW3kFJ:1
    [parent_id] => 0

Note:- i had debugged more and landed at Magento\Customer\Model\AccountManagement.php :: public function createAccount(CustomerInterface $customer, $password = null, $redirectUrl = '')

in this function $customerEmail = $customer->getEmail(); this variable is coming empty.

  • fresh installation? – Sohel Rana Jul 5 '19 at 12:09
  • yes fresh installation with data migration from m1 – Pradeep Sanku Jul 5 '19 at 12:21
  • @Pradip have you get any solution on it. I am stuck with the same issue. – Dharmendra Jadav Oct 14 '19 at 6:45

Your Answer

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

Browse other questions tagged or ask your own question.