歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 29, 2024, 08:20:10 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  我也來求助,搬家遇到錯誤訊息 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 我也來求助,搬家遇到錯誤訊息  (閱讀 9228 次)
liuangus
新手見習
*
文章: 9


檢視個人資料
« 於: 十月 29, 2007, 04:10:38 下午 »

因為搬離原來的主機商 (一肚子鳥氣),於是打算買台自己的伺服器,這段空窗期有點長,於是網站暫時在美國的虛擬主機找了一個棲身的地方。

裝好之後,一切似乎都沒什麼問題,直到我發新的文章 才出現下面這段錯誤訊息。

引用
Exception message: Cannot modify header information - headers already sent by (output started at /home/idovidtv/public_html/blog/plugins/twitter/class/twitter/twitter.class.php:290)
Error code: 2
-- Backtrace --
/home/idovidtv/public_html/blog/class/view/view.class.php(321): header
/home/idovidtv/public_html/blog/class/view/admin/adminview.class.php(112): view.render
/home/idovidtv/public_html/blog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/idovidtv/public_html/blog/class/view/admin/adminpostslistview.class.php(204): admintemplatedview.render
/home/idovidtv/public_html/blog/class/controller/controller.class.php(379): adminpostslistview.render
/home/idovidtv/public_html/blog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/idovidtv/public_html/blog/plugins/twitter/class/twitter/twitter.class.php:290)
Error code: 2
-- Backtrace --
/home/idovidtv/public_html/blog/class/view/view.class.php(321): header
/home/idovidtv/public_html/blog/class/view/admin/adminview.class.php(112): view.render
/home/idovidtv/public_html/blog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/idovidtv/public_html/blog/class/view/admin/adminpostslistview.class.php(204): admintemplatedview.render
/home/idovidtv/public_html/blog/class/controller/controller.class.php(379): adminpostslistview.render
/home/idovidtv/public_html/blog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/idovidtv/public_html/blog/plugins/twitter/class/twitter/twitter.class.php:290)
Error code: 2
-- Backtrace --
/home/idovidtv/public_html/blog/class/view/view.class.php(321): header
/home/idovidtv/public_html/blog/class/view/admin/adminview.class.php(112): view.render
/home/idovidtv/public_html/blog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/idovidtv/public_html/blog/class/view/admin/adminpostslistview.class.php(204): admintemplatedview.render
/home/idovidtv/public_html/blog/class/controller/controller.class.php(379): adminpostslistview.render
/home/idovidtv/public_html/blog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/idovidtv/public_html/blog/plugins/twitter/class/twitter/twitter.class.php:290)
Error code: 2
-- Backtrace --
/home/idovidtv/public_html/blog/class/view/view.class.php(321): header
/home/idovidtv/public_html/blog/class/view/admin/adminview.class.php(112): view.render
/home/idovidtv/public_html/blog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/idovidtv/public_html/blog/class/view/admin/adminpostslistview.class.php(204): admintemplatedview.render
/home/idovidtv/public_html/blog/class/controller/controller.class.php(379): adminpostslistview.render
/home/idovidtv/public_html/blog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/idovidtv/public_html/blog/plugins/twitter/class/twitter/twitter.class.php:290)
Error code: 2
-- Backtrace --
/home/idovidtv/public_html/blog/class/view/view.class.php(321): header
/home/idovidtv/public_html/blog/class/view/admin/adminview.class.php(112): view.render
/home/idovidtv/public_html/blog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/idovidtv/public_html/blog/class/view/admin/adminpostslistview.class.php(204): admintemplatedview.render
/home/idovidtv/public_html/blog/class/controller/controller.class.php(379): adminpostslistview.render
/home/idovidtv/public_html/blog/admin.php(43): admincontroller.process

Exception message: Cannot modify header information - headers already sent by (output started at /home/idovidtv/public_html/blog/plugins/twitter/class/twitter/twitter.class.php:290)
Error code: 2
-- Backtrace --
/home/idovidtv/public_html/blog/class/view/view.class.php(175): header
/home/idovidtv/public_html/blog/class/view/view.class.php(323): adminpostslistview.sendcontenttype
/home/idovidtv/public_html/blog/class/view/admin/adminview.class.php(112): view.render
/home/idovidtv/public_html/blog/class/view/admin/admintemplatedview.class.php(36): adminview.render
/home/idovidtv/public_html/blog/class/view/admin/adminpostslistview.class.php(204): admintemplatedview.render
/home/idovidtv/public_html/blog/class/controller/controller.class.php(379): adminpostslistview.render
/home/idovidtv/public_html/blog/admin.php(43): admincontroller.process

通常會出現 "Exception message: Cannot modify header information - headers already sent .." 這樣的東西,不是代表模板存檔時候utf 8的BOM的問題嗎?
但是我印象中沒改幾個檔案, 也應該都有注意到這個, 拜託幫忙判讀下。  嚎啕大哭
已記錄
liuangus
新手見習
*
文章: 9


檢視個人資料
« 回覆文章 #1 於: 十月 29, 2007, 08:04:57 下午 »

似乎所有訊息都跟 twitter那個外掛有關, 於是我把那個外掛移除, 這個錯誤訊息就消失了。

twitter那個外掛蠻好的, 以前的使用也都正常, 有什麼原因會這樣, 一搬動網站就造成這樣的錯誤呢?
請指點一下, 謝謝。
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 十一月 02, 2007, 02:41:51 下午 »

看起來像是 twitter 的程式包含了錯誤字元,或是有錯誤訊息輸出,所以造成已經先送出內容,所以 header 要再送出的時候就發生錯誤了。

Mark
已記錄

liuangus
新手見習
*
文章: 9


檢視個人資料
« 回覆文章 #3 於: 十一月 06, 2007, 11:38:40 下午 »

看起來像是 twitter 的程式包含了錯誤字元,或是有錯誤訊息輸出,所以造成已經先送出內容,所以 header 要再送出的時候就發生錯誤了。

Mark

嗯嗯,這個TWITTER是原汁原味,直接從sourceforge噹下來,以前也是正常在用。

我知道大約這種
"Exception message: Cannot modify header information - headers already sent by "
的錯誤訊息

一般大多是兩個狀況
1. BOM
2.某個template的header 在<html>之前多了空格沒注意

但是兩個都講不通, 因為一旦移除twitter外掛就OK,不可能sourceforge.net噹外掛有這兩個情況。。。

疑惑
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  我也來求助,搬家遇到錯誤訊息 « 上篇主題 下篇主題 »
    前往: