共计 1273 个字符,预计需要花费 4 分钟才能阅读完成。
在给一个zencart网站搬空间时,发现前台可以打开,但后台出现如下代码:
=============================
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at E:\phpserve\APMServ5.2.6\www\htdocs\jerseysnflstore\admin2012\includes\classes\logger.php:106) in E:\phpserve\APMServ5.2.6\www\htdocs\jerseysnflstore\includes\functions\sessions.php on line 108
Warning: Cannot modify header information – headers already sent by (output started at E:\phpserve\APMServ5.2.6\www\htdocs\jerseysnflstore\admin2012\includes\classes\logger.php:106) in E:\phpserve\APMServ5.2.6\www\htdocs\jerseysnflstore\admin2012\includes\init_includes\init_templates.php on line 69
Warning: Cannot modify header information – headers already sent by (output started at E:\phpserve\APMServ5.2.6\www\htdocs\jerseysnflstore\admin2012\includes\classes\logger.php:106) in E:\phpserve\APMServ5.2.6\www\htdocs\jerseysnflstore\admin2012\includes\functions\general.php on line 37
=============================
解决安案:
1.去下载一个:缓存设置同步工具:http://www.zen-cart.cn/tools/cache-sync
解压后:将FIX_CACHE_KEY.PHP上传到Zen Cart安装目录(与index.php同一目录)并运行,该工具用于迁移服务器后重置”SESSION_WRITE_DIRECTORY”的值。
(友情提示:完成后请删除该文件。非常重要!!!!! 否则别人可以利用它获取服务器信息,有安全隐患。)
如果还是出现,同样的问题的话,继续做下面的操作:
2. 打开: admin(你后台的目录)/includes/application_top.php
在代码:set_magic_quotes_runtime(0); 下插入: ob_start();