试着改了一下语言包,出现下面的错误.

2016-07-07 15:06 来源:www.chinab4c.com 作者:ecshop专家

我只是把common.php里面的$_LANG['home'] = '首页';改成了$_LANG['home'] = 'Home'; 就出现了以后错误,请高手指点一下.


  1. Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\ECShop\shop\docroot\languages\zh_cn\common.php:1) in D:\Program Files\ECShop\shop\docroot\includes\init.php on line 152

  2. Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\ECShop\shop\docroot\languages\zh_cn\common.php:1) in D:\Program Files\ECShop\shop\docroot\includes\init.php on line 153

  3. Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\ECShop\shop\docroot\languages\zh_cn\common.php:1) in D:\Program Files\ECShop\shop\docroot\includes\cls_template.php on line 58

  4. Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\ECShop\shop\docroot\languages\zh_cn\common.php:1) in D:\Program Files\ECShop\shop\docroot\category.php on line 63
复制代码

回答:
呵呵 你在这个语言包文件的最底部 加ob_start(); 保存 刷新

原帖由 qiyongdong 于 2008-12-10 23:11 发表
呵呵 你在这个语言包文件的最底部 加ob_start(); 保存 刷新

没有改变,错误依旧.

之前有人遇过同样的错误。当时是这样解决的。

文件编码有问题!注意统一呀~~申明和文件本身的编码必须一致!