关于ecshop报错headers already sent by是何故
2016-09-11 20:39 来源:www.chinab4c.com 作者:ecshop专家
有时候网站搬家,或者修改一些忘记,忘记原来的程式修改内容,可能会报错,比如几天的报错:
arning: Cannot modify header information - headers already sent by (output started at /home/content/03/10131903/html/ecshop.co/index.php:1) in /home/content/03/10131903/html/eshop/includes/cls_session.php on line 116
Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/10131903/html/ecshop.co/index.php:1) in /home/content/03/10131903/html/eshop/includes/init.php on line 165
Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/10131903/html/ecshop.co/index.php:1) in /home/content/03/10131903/html/eshop/includes/init.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /home/content/03/10131903/html/ecshop.co/index.php:1) in /home/content/03/10131903/html/eshop/includes/cls_template.php on line 58
这个报错语句在includes/cls_session.php 与 init.php cls_template.php 三个文件headers already sent by 意思本身就是头超出的意思。在ECSHOP当中出问题原因很简单: 这三个文件的编码没去UTF8 的BOM, 一般是使用记事本修改才会出现此问题, 拿专业编辑器比如DW、EditPlus 重新编辑另存为下就OK 了 详细原因是记事本是不去bom的。以前的机器是屏蔽报错的,使用也正常,搬家后环境变动报错就出现了。 解决了吗? 解决了,在底部评论留言!
最近更新
常用插件
- ecshop2.7.1邮件发送插件
ecshop2.7.1邮件发送插件:该插件主要的开发思想是源于ecshop短信发送系统...
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop二次开发商品购买增
图片1香...
- ecshop2.7.2生成虚拟订单2.
以前我们开发过ecshop下的虚拟订单,就是客户在访问的时候,会自动生...
- ecshop最小购买数量控制插
ecshop最小购买数量控制插件,这个插件主要是为我们提供一个十分方便...
ecshop热门问答
ecshop热门资料
ecshop国外空间
ecshop重开
ecshop奥迪
ecshop通信成功
ecshop更多或more
ecshop计划任务
ecshopfirst
ecshop叉烧
ecshop烦恼
ecshop数量单位
ecshopecmall网站设计
ecshop秒杀功能
ecshopECShopB2C
ecshop商品列表
ecshop官方解决
ecshop无法使用
ecshop图片滚动
ecshop团购价格
ecshop文本框
ecshop清空数据库
ecshop商品汇总
ecshop订单汇总
ecshop多价格购物车
ecshop不到
ecshopFLASHAD
ecshop支付流程
beta版
ecshop售價
ecshoprewrite
ecshop哥哥