1 頁 (共 1 頁)

[問題]CashMod的錯誤訊息

發表於 : 2006-01-19 20:56
天使羽翼
問題外掛: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這個外掛
其他連基本討論區設定都沒更改過

發表於 : 2006-01-20 16:58
心靈捕手
建議您:
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

發表於 : 2006-01-21 19:24
天使羽翼
我已經有用EmEditor轉過了
不知道是不是這邊問題

網頁空間好像噴掉了
等他復活我再試試看
感謝^^

發表於 : 2006-02-11 12:29
jason-jiang
自暴