[問題]phpBB2相關語系檔轉成UTF-8後的錯誤。

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
hollowaysxp
竹貓忠實會員
竹貓忠實會員
文章: 535
註冊時間: 2004-06-01 22:39
來自: 仙境傳說回憶最美~台灣桃園
聯繫:

[問題]phpBB2相關語系檔轉成UTF-8後的錯誤。

文章 hollowaysxp »

原本我的論壇是Big5編碼
後來轉成UTF-8後。相關外掛檔案也在中午也把檔案轉成UTF-8格式。

錯誤是這樣

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/sessions.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/sessions.php on line 255

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/page_header.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/page_header.php on line 487

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/language/lang_chinese_traditional_taiwan/lang_stockmarket.php:1) in /home/forum/includes/page_header.php on line 488
很奇怪!明明只是用程式將檔案轉成UTF-8但就是變成這樣。
這應該是~在set_cookie前先輸出訊息或錯誤訊息~類似的警告~對嗎?

我也不知道該怎麼辦了 :roll:
還請大大到我的論壇看看
http://twspc.no-ip.info/forum/
●架設主機作業系統:FreeBSD 6.2-RELEASE (自行架設)
●我的上網方式:FTTB+VDSL HINET 10M/2M
●我安裝的程式:Apache 2.0.59+ PHP Version 4.4.4 + MySql 4.1.21+phpMyadmin 2.9.1.1
●我的 phpBB3 版本:phpBB3.0.1
●我的 phpBB3 連結網址 http://nitcs.itrello.com/forum/
NITCS歡迎你
NITCS論壇
hollowaysxp
竹貓忠實會員
竹貓忠實會員
文章: 535
註冊時間: 2004-06-01 22:39
來自: 仙境傳說回憶最美~台灣桃園
聯繫:

文章 hollowaysxp »

把includes/sessions.php 轉成UTF-8變成這樣

代碼: 選擇全部

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/sessions.php on line 254

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/sessions.php on line 255

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/page_header.php on line 481

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/page_header.php on line 487

Warning: Cannot modify header information - headers already sent by (output started at /home/forum/includes/sessions.php:1) in /home/forum/includes/page_header.php on line 488
●架設主機作業系統:FreeBSD 6.2-RELEASE (自行架設)
●我的上網方式:FTTB+VDSL HINET 10M/2M
●我安裝的程式:Apache 2.0.59+ PHP Version 4.4.4 + MySql 4.1.21+phpMyadmin 2.9.1.1
●我的 phpBB3 版本:phpBB3.0.1
●我的 phpBB3 連結網址 http://nitcs.itrello.com/forum/
NITCS歡迎你
NITCS論壇
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8540
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

這是典型轉 utf-8 編碼, 因為加了 BOM 所出現的錯誤.

建議您:
存檔時, 不要加入 BOM.
language/lang_chinese_traditional_taiwan/lang_stockmarket.php
includes/sessions.php

參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=230924#230924
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
hollowaysxp
竹貓忠實會員
竹貓忠實會員
文章: 535
註冊時間: 2004-06-01 22:39
來自: 仙境傳說回憶最美~台灣桃園
聯繫:

文章 hollowaysxp »

那已經轉了怎麼辦?還有機會恢復嗎?

補上,感謝大大我已經恢復了。
感謝,感謝。

我先把原本的轉成big5再來一次轉utf-8就OK了~

順便一問,我上次有用一個phpBB2.0.21自己升級成phpBB2.0.22後
首頁上面語系檔也是發生這問題,當時我想說怎麼會錯誤就算了。

當時我是用記事本打開phpBB2.0.21->phpBB2.0.22將差異檔案升級的。
用記事本儲存成UTF-8格式,也是發生這種事。

不然大家都用哪套文字編輯程式都沒問題?UE?Notepad2?
●架設主機作業系統:FreeBSD 6.2-RELEASE (自行架設)
●我的上網方式:FTTB+VDSL HINET 10M/2M
●我安裝的程式:Apache 2.0.59+ PHP Version 4.4.4 + MySql 4.1.21+phpMyadmin 2.9.1.1
●我的 phpBB3 版本:phpBB3.0.1
●我的 phpBB3 連結網址 http://nitcs.itrello.com/forum/
NITCS歡迎你
NITCS論壇
chiouss
竹貓忠實會員
竹貓忠實會員
文章: 1741
註冊時間: 2002-11-29 18:19

文章 chiouss »

hollowaysxp 寫:當時我是用記事本打開phpBB2.0.21->phpBB2.0.22將差異檔案升級的。
用記事本儲存成UTF-8格式,也是發生這種事。

不然大家都用哪套文字編輯程式都沒問題?UE?Notepad2?
記事本會加 BOM...
不管你用哪套,可以選不要加 BOM 的就好。站上比較多人建議的是 EmEditor 和 ConvertZ,實際上還有很多也有這種功能就是了。
主題已鎖定

回到「phpBB 2 安裝與使用」