當(dāng)前位置:首頁(yè)>
discuz>
本地遷移discuz x2到虛擬主機(jī)環(huán)境下,訪問(wèn)提示W(wǎng)arning: Cannot modify header information錯(cuò)誤
新聞中心
本地遷移discuz x2到虛擬主機(jī)環(huán)境下,訪問(wèn)提示W(wǎng)arning: Cannot modify header information錯(cuò)誤
作者 / 無(wú)憂主機(jī) 時(shí)間 2012-02-22 20:43:41
這是我遷移了許多discuz X2案例中,也是第一次見(jiàn)到這種錯(cuò)誤,非常怪異。無(wú)憂主機(jī)(m.gle-technology.com)小編特整理此故障資料發(fā)布備忘,如果你正在從本地遷移discuz x2到php虛擬主機(jī)發(fā)生此類故障,可以參考本案例。
Discus x2遷移前本地運(yùn)行環(huán)境說(shuō)明和遷移到無(wú)憂主機(jī)后的故障報(bào)錯(cuò):
用戶(威威餅、? Kenny****@21cn.com(****3390))本地discuz環(huán)境為自建的php環(huán)境,本地調(diào)試訪問(wèn)地址:http://127.0.0.1/diz3 按照常規(guī)方法整站遷移discuz X2,遷移完畢后,訪問(wèn)網(wǎng)站發(fā)生如下錯(cuò)誤: 用域名:http://www.domains.com/forum.php 可以正常訪問(wèn) 用域名:http://www.domains.com/訪問(wèn)提示錯(cuò)誤,詳細(xì)錯(cuò)誤信息如下: Warning: Cannot modify header information - headers already sent by (output started at /home/scf77h****/domains.com/ domains /public_html/index.php:2) in /home/scf77h****/domains/ domains.com /public_html/index.php on line 128? 如下截圖:![image001](http://m.gle-technology.com/wp-content/uploads/2012/02/image00114-150x150.png)
![image003](http://m.gle-technology.com/wp-content/uploads/2012/02/image0037-150x150.png)
本文地址:http://m.gle-technology.com/discuz/5315.html
![1](/wp-content/themes/starow_z/img/o-1.png)
![1](/wp-content/themes/starow_z/img/o-2.png)
![1](/wp-content/themes/starow_z/img/o-3.png)
![1](/wp-content/themes/starow_z/img/o-4.png)
![1](/wp-content/themes/starow_z/img/o-5.png)
![1](/wp-content/themes/starow_z/img/o-6.png)
![1](/wp-content/themes/starow_z/img/o-7.png)