Search code examples
magentoubuntu-16.04magento-1.9php-7phpseclib

Magento 1.9 cannot make customer login, undefined offset + undefined variable


I have a really strange problem. Yesterday I was working with magento just fine and today when I opened the pc and tried login on my account after cleaning cache & session it gives me this error on customer login:

Error occurred. Please try again later on the frontend.

I dig into the system.log and I have this:

ERR (3): Notice: Undefined offset: 158 in {...}/phpseclib/Math/BigInteger.php on line 3426 and 3317 ERR (3): Notice: Undefined variable: cmsPageIdentifier in {...}/default/template/page/html/header.phtml on line 29

and this is the code in question

Line 7-10:

if(Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms') { $cmsPageIdentifier = Mage::getSingleton('cms/page')->getIdentifier(); }

Line 29:

<?php elseif ($cmsPageIdentifier && $cmsPageIdentifier == "conferma-invio") : ?>

In sso.log I have this
DEBUG (7): HTTP status: 503 when trying to get user authentication DEBUG (7): Field Status was empty in webapi response

Thank you.


Solution

  • I manually fixed the BigInteger and I remained only with the sso.log.

    Dug into it and I found that there was another module error blocking customer login. Setting that module to false in app/etc/modules/Module_Name.xml fixed it.