安装完SugarCRM后,用IE打开出现空白页,服务器log记录提示以下错误信息:
PHP Fatal error: Tracker::get_recently_viewed(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition “BreadCrumbStack” 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 /usr/local/www/sugarcrm/include/utils/mvc_utils.php(49) : eval()’d code on line 1
上google查找解决方案,找到:
Blank Page after Installation
I have been working on this problem for a week now and finally found the solution, so I thought I’d share it since I couldn’t find it on google.
I was getting the following error:
PHP Fatal error: Tracker::get_recently_viewed() [<a href =’tracker.get-recently-viewed’>tracker.get-recently-viewed</a>]: The script trie d to execute a method or access a property of an incomplete object. Please ensur e that the class definition "BreadCrumbStack" of the object you are tr ying to operate on was loaded _before_ unserialize() gets called or provide a __ autoload() function to load the class definition in /usr/www/virtual/wiredops/w ww.dance-studio-websites.com/crm/include/utils/mvc_utils.php(49) : eval()’d code on line 1
The problem ended up being 2 things:
1. The session directory being set in apache/php was not correct, which had to be changed in php.ini with the variable session.save_path
2. The session.auto_start in php.ini needed to be set to OFF
Hope this saves someone else some time.
于是编辑/usr/local/etc/php.ini文件,
修改值为:
session.auto_start = 0
然后重启apache后OK了!