0

I am working in magento1.7.

In the customer registration form when I give password and confirm password and submit the form the page gets refreshes and following error shows...

The password cannot be empty. Please make sure your passwords match.

I am new to Magento, so please help me how to correct this error ?

  • Have you modified the core files or any customization ? – Kishore Patra Jan 20 '16 at 5:45
  • I have changed the design only i.e.register.phtml file. – AKSHAYA KUMAR Satapathy Jan 20 '16 at 5:48
0

It was the problem in the register.phtml..
To know go to Mage/customer/contollers/AccoutnController.php and find createPostAction().
And write the following line inside the function to print the data from the register form..

    echo "<pre>";print_r($this->getRequest()->getPost());echo "</pre>";exit;  

Then fill up the registration form and submit . You will find all the submitted data here . If you are not getting the password field then check the password element in register.phtml page, specially its name attribute.
Because the values are collected by its name.
And most important..if everything will be right then delete the line I have mentioned from that function.
Hope this helps..

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.