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.
-
//Mage::register('original_include_path', get_include_path());
-
Mage::register('original_include_path', '');
More Reading:
10 Comments
|
Another error message might be Data saving problem |
|
Thank you thank you thank you! I probably would have never found this on my own. |
|
happy to help i knew this would be major gotcha which is why I posted it up |
|
Thanks a lot! |
|
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!). |
|
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. 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. |
|
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. |
RSS Feed
magentonews
September 14th, 2009