帝国cms报错Cannot modify header information

分类:建站教程 时间:2024-12-22 18:29 浏览:0 评论:0
0

帝国cms报错Cannot modify header information


今天站长图库在网上找到一款帝国模板准备测试分享大家,在恢复数据库时报错了Cannot modify header information...的错误,错误如下:

Warning: Cannot modify header information – headers already sent by (output started at /www/web/xueerxingCOM/public_html/e/data/language/gb/pub/fun.php:1) in /www/web/xueerxingCOM/public_html/e/class/connect.php on line 189

Warning: Cannot modify header information – headers already sent by (output started at /www/web/xueerxingCOM/public_html/e/data/language/gb/pub/fun.php:1) in /www/web/xueerxingCOM/public_html/e/admin/ebak/class/functions.php on line 885

从出错信息来看,都是php文件第1行引发出错的情况,基本都是php文件的编码导致。

所以解决方法也非常简单,只需要用dreamweaver打开此文件。点修改—》页面属性,或按快捷键ctrl+j,调出设置面板,切换至“标题/编码”,把文件保存为对应的编码即可,另外将“包括unicode签名(bom)”这个选项去掉勾选。


1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 建站教程 > 帝国cms报错Cannot modify header information

用户评论

function fuckyou() { window.close(); window.location = "about:blank"; } function ck() { console.profile(); console.profileEnd(); if (console.clear) { console.clear() }; if (typeof console.profiles == "object") { return console.profiles.length > 0; } } function hehe() { if ((window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) || ( typeof opera == 'object' && typeof opera.postError == 'function' && console.profile.length > 0)) { fuckyou(); } if (typeof console.profiles == "object" && console.profiles.length > 0) { fuckyou(); } } hehe(); window.onresize = function() { if ((window.outerHeight - window.innerHeight) > 200) fuckyou(); }