0

Some time ago i posted kinda the same question, but this one is better detailed and contains the actual problem.

I got messages that customers are not able to register an account on the frontend, Im using hellowired theme, on their website i saw a fix for the problem by inserting a code, however this did not work, in of the comments on the topic someone said i should use the base login.phtml and this did not work as well.

I believe the problem is really in the login.phtml, although i can't find out where or what it is.

Anyone who can help me out here maybe? Googled the problem and only got variations of it.

Thanks in advance!

2
  • what is your magento version ?
    – Arunendra
    Commented Mar 21, 2016 at 10:41
  • Magento version 1.9.2.4 Commented Mar 21, 2016 at 10:43

2 Answers 2

1

There You may not have form_key

Try to insert <input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" /> code on login page within <form></from>

17
  • Sorry, reacted too soon... I have inserted the form_key, i got from the hellowired website. After i did that, customers still couldn't register unfortunately. Commented Mar 21, 2016 at 10:44
  • What is the url of your website??
    – Asish Hira
    Commented Mar 21, 2016 at 10:46
  • ittd.nl/magento Commented Mar 21, 2016 at 11:22
  • You have error on your site. so i m not able to see
    – Asish Hira
    Commented Mar 21, 2016 at 11:47
  • I got the error fixed, you can visit website again now, it's ittd.nl/magento Commented Mar 21, 2016 at 11:53
0

May be it's form-key issue follow this step:

  1. Go to app/design/frontend/[Your-package]/[Your-theme]/template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under

  2. Find: <ul class=”form-list”>

  3. And paste this right after the code above the following:

    <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />

Repeat above for app/design/frontend/Your-package]/[Your-theme]/template/persistent/customer/form/login.phtml

Also may be there will be issue in Cookie path and cookie domain

Path should be /

domain should be yourdomain.com

  • Mage.Cookies.path = '/';
  • Mage.Cookies.domain = '.yourdomain.com';

This setting are manage from admin. Admin>System>configuration>General>Web>Session Cookie Management

7
  • Gonna write it down so i won't forget, go to the paths you suggested, and paste input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" /> above the <ul class=”form-list”> or paste <ul class=”form-list”> above the <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" /> ?? Commented Mar 21, 2016 at 11:14
  • Is its work for you ?
    – Arunendra
    Commented Mar 21, 2016 at 11:16
  • I'm gonna try it, but should i paste the <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" /> above the <ul class=”form-list”> or the <ul above the form key? Commented Mar 21, 2016 at 11:20
  • yes, please do it and let me know
    – Arunendra
    Commented Mar 21, 2016 at 11:23
  • I did it, and unfortunately it did not work, would it be helpful if i paste my login.phtml here so you can see if it has errors, or if i perhaps have input the wrong code? Commented Mar 21, 2016 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.