It is quite famous error.
It means that somewhere you save object of SimpleXMLElement
class (or its child) to the session. In your particular case it is Mage_Core_Model_Config_Element
class.
When script ends he work, PHP tries to save all objects from $_SESSION
array to the session file and tries to serialize $_SESSION
Array. Unfortunately, SimpleXMLElement
can ' t be serialized because it wraps a libxml resource type. Resources cannot is serialized in PHP.
Probably, you is doing somewhere something like Mage::getSingleton(‘core/session‘)->setXXX(Mage::getConfig()->getNode(‘...‘))
. Mage_Core_Model_Config::getNode()
returns Mage_Core_Model_Config_Element
, not just string.
So, you need to the find this place and the either add (string)
type cast or use Mage::getStoreConfig(‘...‘)
.
In summary, find the problem, in the session to save a simplexmlelement configuration-related items, which contains a libxml resource type value, and PHP does not allow the resource serialization, so throw an exception.
Magento encountered serialization is not allowed