參考連結: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代碼: 選擇全部
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還是手動裝
都會出現這些錯誤訊息\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');代碼: 選擇全部
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這個外掛
其他連基本討論區設定都沒更改過

