[問題]CashMod的錯誤訊息

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
天使羽翼
星球普通子民
星球普通子民
文章: 2
註冊時間: 2003-07-30 20:36
聯繫:

[問題]CashMod的錯誤訊息

文章 天使羽翼 »

問題外掛:CashMod 2.2.3a
參考連結:http://www.phpbb-tw.net/phpbb/viewtopic.php?t=40304
使用版本:phpBB2.0.19
網站位置:http://feather.cozysite.com/index.php
狀況描述:

我剛弄好的討論區
只裝了個EasyMod
然後就直上CashMod

在看文章(viewtopic.php)的時候
會出現以下錯誤訊息\r

代碼: 選擇全部

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/viewtopic.php on line 565

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/includes/page_header.php on line 483

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/includes/page_header.php on line 485

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/includes/page_header.php on line 486
看個人資料(viewprofile.php)的時候會出現下列錯誤訊息\r

代碼: 選擇全部

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/includes/page_header.php on line 483

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/includes/page_header.php on line 485

Warning: Cannot add header information - headers already sent by (output started at /home/feather/public_html/language/lang_chinese_traditional_taiwan/lang_cash.php:1) in /home/feather/public_html/includes/page_header.php on line 486
不論我用EasyMod去裝
還是手動裝
都會出現這些錯誤訊息\r

以下includes/page_header.php的477~486行

代碼: 選擇全部

if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
以下是viewtopic.php的539~566行

代碼: 選擇全部

if ( $userdata['session_logged_in'] )
{
	$tracking_topics = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array();
	$tracking_forums = ( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array();

	if ( !empty($tracking_topics[$topic_id]) && !empty($tracking_forums[$forum_id]) )
	{
		$topic_last_read = ( $tracking_topics[$topic_id] > $tracking_forums[$forum_id] ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
	}
	else if ( !empty($tracking_topics[$topic_id]) || !empty($tracking_forums[$forum_id]) )
	{
		$topic_last_read = ( !empty($tracking_topics[$topic_id]) ) ? $tracking_topics[$topic_id] : $tracking_forums[$forum_id];
	}
	else
	{
		$topic_last_read = $userdata['user_lastvisit'];
	}

	if ( count($tracking_topics) >= 150 && empty($tracking_topics[$topic_id]) )
	{
		asort($tracking_topics);
		unset($tracking_topics[key($tracking_topics)]);
	}

	$tracking_topics[$topic_id] = time();

	setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}
一時之間把竹貓相關文章看了不少
好像都沒有類似的問題=.=
自己稍微找了一下好像也不知道哪邊有問題..


補充:
只安裝EasyMod這個外掛
其他連基本討論區設定都沒更改過
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8547
註冊時間: 2004-04-30 01:54
來自: Taiwan

文章 心靈捕手 »

建議您:
1. 將此外掛內附的語言檔 lang_cash.php 由 big-5 轉為 utf-8 編碼;
2. 使用 ConvertZ 來轉.

下載位址:
http://alf-li.pcdiscuss.com/c_convertz.html
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=210454#210454
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
天使羽翼
星球普通子民
星球普通子民
文章: 2
註冊時間: 2003-07-30 20:36
聯繫:

文章 天使羽翼 »

我已經有用EmEditor轉過了
不知道是不是這邊問題

網頁空間好像噴掉了
等他復活我再試試看
感謝^^
jason-jiang
星球普通子民
星球普通子民
文章: 4
註冊時間: 2006-02-07 16:17

文章 jason-jiang »

自暴
主題已鎖定

回到「外掛問題討論」