2016-02-23 17 views
0

Fatal error: Mage_Core_Model_Session_Abstract::getMessages(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Mage_Core_Model_Message_Collection" of the object you are trying to operate on was loaded before unserialize() gets called or provide a __autoload() function to load the class definition in /home/admin/web/exdomainname.com/public_html/inkoffice/app/code/core/Mage/Core/Model/Session/Abstract.php on line 215如何在magento中解決這個錯誤?

當我上傳我的網站上server.magento 1.9.0.1

回答

1

這看起來對我來說,你的PHP與session.auto_start是配置上的問題。

您可以驗證的事實與含

<?php phpinfo(); 

查找部分會議那裏,session.auto_start必須設置爲Off爲Magento的正常工作文件。

phpinfo()

如果設置爲On,然後適應您的php.ini到設置爲Off或在您的.htaccess使用php_flag session.auto_start 0如果您沒有訪問您的php.ini的服務器上的版本。

+0

謝謝help.already在我的magento htaccess.magento 1.9.0.1中定義了php_flag session.auto_start。但是,當主頁加載第一次,但刷新頁面時出現錯誤會話。 – meet

+0

把它關閉修復了我的錯誤。 – subroutines