我得到這個致命的錯誤:Magento會話序列化在哪裏?
PHP Fatal error:
Uncaught exception 'Exception' with message
'Serialization of 'Mage_Core_Model_Config_Element' is not allowed'
in [no active file]:0 Stack trace: #0 {main}
thrown in [no active file] on line 0
我的理解是試圖序列Mage_Core_Model_Config_Element
和失敗,但我從來沒有使用過getNode()
,它總是getStoreConfig()
我。
我很高興能夠調試這個,如果我能找到其中它正在生成。 Magento會話在哪裏被序列化?
注意:嘗試在頁腳中回顯序列化(如提示的一個線程)在這種情況下不起作用。會話沒有被設置(導致這個錯誤),所以當它到達頁腳時沒有錯誤...
尋找函數['session_write_close()'](http://php.net/session_write_close)的用法可以引導你一種方式,但它的用法相當普遍,所以對你的問題沒有快速,明確的答案。 – hakre