0

I have some issue, customers can't login or create account and redirects to login-register page !

The form key is well present in all login.phtml files.

2
  • Have you some error in logs ?
    – PЯINCƎ
    Commented Mar 15, 2018 at 19:13
  • exception 'Mage_Core_Exception' with message'Invalid block type: Mage_Scrollingcart_Block_Index' in /home/dimitrisgalanis/public_html/app/Mage.php:595 Commented Mar 16, 2018 at 12:33

1 Answer 1

2

I doubt for two things :

  1. Cookies:

    Check this config : Admin > System > Configuration > General > Web > Session Cookie Management then set this:

    • Cookie path : /
    • Cookie domaine : domaine.com
  2. Formkey

    Check in your current theme if login.phtml has well the formkey

    Paths:

    • app/design/frontend/{yourPackage}/{yourTheme}/template/customer/form/login.phtml

    • app/design/frontend/{yourPackage}/{yourTheme}/template/persistent/customer/form/login.phtml

    formkey :

    • <?php echo $this->getBlockHtml('formkey') ?>

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

3
  • Yes all these are set as you say Commented Mar 16, 2018 at 12:36
  • In Cookie domaine I had ".domaine.com" I deleted the "." and now it works like a charm Commented Mar 16, 2018 at 12:44
  • Good ! good luck
    – PЯINCƎ
    Commented Mar 16, 2018 at 12:55

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.