2016-02-23 19 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