I have a fresh installation of magento 2.2.5 with Magetigue theme and I have migrated the data from magento 1.9.3.7 to magento 2.2.5 using data migration tool. Now when I try to create an account by entering all the fields and click the create button, It reloads the same registration page showing an error message that " "" is a required Field"
. I have checked the app/design/frontend/THEME_VENDOR/THEME/Magento_Customer/templates/form/register.phtml
file and it contains the form key
<?= /* @noEscape */ $block->getBlockHtml('formkey'); ?>
So, its not a form key problem I have deleted all the cookies too, but still no luck.
I have traced the post request after clicking the create customer button in the network tab and the post request goes to CreatePost.php in /vendor/magento/module-customer/Controller/Account/CreatePost.php
and the request status is 302 found.
I have added a log code in CreatePost.php
And found that the problem lies in this code:
try {
$address = $this->extractAddress();
$addresses = $address === null ? [] : [$address];
$customer = $this->customerExtractor->extract('customer_account_create', $this->_request);
$customer->setAddresses($addresses);
$password = $this->getRequest()->getParam('password');
$confirmation = $this->getRequest()->getParam('password_confirmation');
$redirectUrl = $this->session->getBeforeAuthUrl();
$this->checkPasswordConfirmation($password, $confirmation);
$customer = $this->accountManagement
->createAccount($customer, $password, $redirectUrl);
Can somebody help resolve this?
Regards,