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 ?
    – Aamir
    Mar 15 '18 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 Mar 16 '18 at 12:33
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 Mar 16 '18 at 12:36
  • In Cookie domaine I had ".domaine.com" I deleted the "." and now it works like a charm Mar 16 '18 at 12:44
  • Good ! good luck
    – Aamir
    Mar 16 '18 at 12:55

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.