ecshop出现Warning: Cannot modify header information解决方案

出现一下错误提示

Warning: Cannot modify header information – headers already sent by (output started at D:\amp\www\htdocs\data\config.php:1) in D:\amp\www\htdocs\includes\cls_session.php on line 116
Warning: Cannot modify header information – headers already sent by (output started at D:\amp\www\htdocs\data\config.php:1) in D:\amp\www\htdocs\includes\cls_template.php on line 58

打开php.ini,把output_buffering默认的Off设为4096就OK了。
修改完PHP.ini配置文件后,一定要重启WEB服务器才能生效。

发表评论