cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9.2 : create account - cannot save the customer error

SOLVED

Magento 1.9.2 : create account - cannot save the customer error

Hi,

 

I have a weird problem when I try to create an account on my magento website.

 

If I check "remember me" on create account page, the new account is well created but "cannot save the customer" error appears on the next page and email is not send to the mail address.

 

When i try to create an account whithout checking "remember me",  proccess goes well.

 

For information, in my logs :

2016-07-19T08:21:11+00:00 DEBUG (7): Exception message: Decoding failed: Syntax error
Trace: #0 app/code/core/Mage/Core/Helper/Data.php(659): Zend_Json::decode('', 1)
#1 app/code/core/Mage/Persistent/Model/Session.php(133): Mage_Core_Helper_Data->jsonDecode(NULL)
#2 app/code/core/Mage/Core/Model/Abstract.php(226): Mage_Persistent_Model_Session->_afterLoad()
#3 app/code/core/Mage/Persistent/Model/Session.php(168): Mage_Core_Model_Abstract->load('50', 'customer_id')
#4 app/code/core/Mage/Persistent/Model/Observer/Session.php(67): Mage_Persistent_Model_Session->loadByCustomerId('50')
#5 app/code/core/Mage/Core/Model/App.php(1358): Mage_Persistent_Model_Observer_Session->synchronizePersistentOnLogin(Object(Varien_Event_Observer))

PHP version : 7

 

Could anyone help me please ?

Thanks

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Magento 1.9.2 : create account - cannot save the customer error

Hi muk_t,

Thank's for your reply.

 

My research show me that actually beacause of PHP7.

So I installed Inchoo PHP7 extension for magento but I still have the problem.

 

I don't know what to do.

 

Edit

 

Problem solved. 

I had an outdate version of Inchoo PHP 7 extension.

I just updated the extension and it works.

 

Thank's to all.

 

View solution in original post

2 REPLIES 2

Re: Magento 1.9.2 : create account - cannot save the customer error

Hi @abcchris

 

I think you are getting this issue because of Php 7.Empty string raise exception with php 7 when you decode it.

 

Please visit following for more information.

1)Zend_Json::decode null or empty string throw Zend_Json_Exception on PHP7

2) http://stackoverflow.com/a/36400975

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Magento 1.9.2 : create account - cannot save the customer error

Hi muk_t,

Thank's for your reply.

 

My research show me that actually beacause of PHP7.

So I installed Inchoo PHP7 extension for magento but I still have the problem.

 

I don't know what to do.

 

Edit

 

Problem solved. 

I had an outdate version of Inchoo PHP 7 extension.

I just updated the extension and it works.

 

Thank's to all.