We are getting the following error on updating products via the Magento API.

Error message
Uncaught Exception: Uncaught exception 'Exception' with message 'Serialization of 'Mage_Core_Model_Config_Element' is not allowed' in app/code/core/Mage/Core/Model/Resource/Session.php:97

I have cleared all session data and even turned off cron, but the issue still happens. I have profiled the normal product save and have not found any issues.

EDIT: Problem is happening only on update and appears to be related to an attribute. We are trying to debug this

enter image description here enter image description here enter image description here enter image description here enter image description here

  • Can you post the product info that you're updating when you get the error? – seanbreeden Feb 11 '15 at 1:45
  • It happens on any product, but I will get more details – brentwpeterson Feb 11 '15 at 13:00
  • Apparently you are adding to the session an instance of Mage_Core_Model_Config_Element and when magento tries to write it to the disk it fails because it cannot be serialized. Now why would you add a config element model to the session? Any extensions? Any special attribute? – Marius Feb 11 '15 at 14:09
  • There is a module calle Insync (encrypted) and we don't have access to this. They are accessing the product update through the API. We are trying to narrow it down to one product – brentwpeterson Feb 11 '15 at 14:16

The problem was a product with data in an attribute that was not escaped correctly in the Insync module. The client updated the data and now things are working correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.