I have noticed the following errors since moving website to new server and login is acting up. When you login or create an account, then log out, you cant log back in without clearing the cookies. Does anyone have any suggestions on how to fix or where to look?
2018-10-31T06:13:00+00:00 DEBUG (7): Exception message: Decoding failed: Syntax error Trace: #0 /home/spencilc/public_html/app/code/core/Mage/Core/Helper/Data.php(659): Zend_Json::decode('', 1) #1 /home/spencilc/public_html/app/code/core/Mage/Persistent/Model/Session.php(133): Mage_Core_Helper_Data->jsonDecode(NULL) #2 /home/spencilc/public_html/app/code/core/Mage/Core/Model/Abstract.php(226): Mage_Persistent_Model_Session->_afterLoad() #3 /home/spencilc/public_html/app/code/core/Mage/Persistent/Model/Session.php(168): Mage_Core_Model_Abstract->load('20661', 'customer_id') #4 /home/spencilc/public_html/app/code/core/Mage/Persistent/Model/Observer/Session.php(67): Mage_Persistent_Model_Session->loadByCustomerId('20661') #5 /home/spencilc/public_html/app/code/core/Mage/Core/Model/App.php(1358): Mage_Persistent_Model_Observer_Session->synchronizePersistentOnLogin(Object(Varien_Event_Observer)) #6 /home/spencilc/public_html/app/code/core/Mage/Core/Model/App.php(1337): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Persistent_Model_Observer_Session), 'synchronizePers...', Object(Varien_Event_Observer)) #7 /home/spencilc/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('customer_login', Array) #8 /home/spencilc/public_html/app/code/core/Mage/Customer/Model/Session.php(226): Mage::dispatchEvent('customer_login', Array) #9 /home/spencilc/public_html/app/code/core/Mage/Customer/controllers/AccountController.php(350): Mage_Customer_Model_Session->setCustomerAsLoggedIn(Object(Amasty_Customerattr_Model_Rewrite_Customer)) #10 /home/spencilc/public_html/app/code/core/Mage/Customer/controllers/AccountController.php(303): Mage_Customer_AccountController->_successProcessRegistration(Object(Amasty_Customerattr_Model_Rewrite_Customer)) #11 /home/spencilc/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Customer_AccountController->createPostAction() #12 /home/spencilc/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('createpost') #13 /home/spencilc/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #14 /home/spencilc/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch() #15 /home/spencilc/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array) #16 /home/spencilc/public_html/index.php(84): Mage::run('', 'store') #17 {main}
Solved! Go to Solution.
Hello @spencil,
Please refer this blog to fix login issue
https://www.sitepoint.com/fix-magento-login-issues-cookies-sessions/
--
If my answer is useful, please Accept as Solution & give Kudos
Hello @spencil,
Please refer this blog to fix login issue
https://www.sitepoint.com/fix-magento-login-issues-cookies-sessions/
--
If my answer is useful, please Accept as Solution & give Kudos
Thanks. I found the default cookie was not set, once I set this and cleared the cookies it seems to be working.