Our blog

 

Magento Can’t Save Customer + Solution (Zend Framework)

If you are getting a weird "cant' save customer" message in your local Magento development environment when trying to save a new account, but the bug is not on your live store, this might be the solution..

If like me you not only develop Magento sites but also use Zend Framework for other projects (which Magento is based upon) then you might find that there are some clashes between your version of Zend Framework and the Magento version.

For Magento development, you need to be sure that your Magento install is using its own version of Zend Framework and not your own separate copy. To do this you have a choice of either changing your php include path to remove your separate Zend Framework folder or alternatively edit the top of app/Mage.php and make this edit edit on line 31.

PHP:
  1. //Mage::register('original_include_path', get_include_path());
  2. Mage::register('original_include_path', '');

More Reading:

10 Comments

magentonews
September 14th, 2009

Another error message might be Data saving problem

 

bingo
September 25th, 2009

Thank you thank you thank you!

I probably would have never found this on my own.

 

admin
September 26th, 2009

happy to help :)

i knew this would be major gotcha which is why I posted it up

 

Ekerete
October 17th, 2009

Thanks a lot!
Would probably have spent the whole day trying to fix this.

 

Scott
November 5th, 2009

Wow. This was totally my issue too. So happy this came up in my google search! Thank you!! The fix works wonderfully, but it feels a tiny bit like I'm breaking the rules by modifying a file that is likely to be modified with an upgrade. I wonder if anyone knows of a more permanent solution? Or even just how to upgrade a local version of Zend (I didn't even realize I had one!).

 

admin
November 5th, 2009

if you dont want to touch magento, edit your php.ini include path and make sure theres no zend framework in there.

if you didn't know you had it, are you running Zend Server by any chance?

 

zend
April 30th, 2010

Hey hi. This trick works. Great. you saved my day.
hope there wont be any side effects to this trick!

thanks a ton.

 

jazkat
June 15th, 2010

Hi, I'm getting "Data saving problem" error and on live site (not local) so I can't even debug it.
I'm afraid this doesn't solve a problem for me :-/
Thanks for posting anyway!!

 

John Kealy
June 17th, 2010

OMG thanks! Never ever ever would have figured this out. Installed Zend Server and I was just about ready to flip. Thnaks!

 

Sean
May 9th, 2011

We need a solution for "can't save customer" where no separate Zend Framework install is on the system.
Running 1.4.2.0

 

 

Leave a Reply