1 頁 (共 1 頁)

[問題]安裝完CashMOD 2.2.1出現的問題(解決)

發表於 : 2004-12-01 14:04
。。鳳凰寺 風。。
phpBB 版本: phpbb 2.0.11
phpBB 風格: iCGstation
網址: http://mcj0919.why3s.org/phpbb/index.php
錯誤碼:

代碼: 選擇全部

 Warning: Cannot modify header information - headers already sent by (output started at /home/mcj0919/public_html/phpbb/language/lang_chinese_traditional_taiwan/lang_cash.php:2) in /home/mcj0919/public_html/phpbb/viewtopic.php on line 571

Warning: Cannot modify header information - headers already sent by (output started at /home/mcj0919/public_html/phpbb/language/lang_chinese_traditional_taiwan/lang_cash.php:2) in /home/mcj0919/public_html/phpbb/includes/page_header.php on line 522

Warning: Cannot modify header information - headers already sent by (output started at /home/mcj0919/public_html/phpbb/language/lang_chinese_traditional_taiwan/lang_cash.php:2) in /home/mcj0919/public_html/phpbb/includes/page_header.php on line 524

Warning: Cannot modify header information - headers already sent by (output started at /home/mcj0919/public_html/phpbb/language/lang_chinese_traditional_taiwan/lang_cash.php:2) in /home/mcj0919/public_html/phpbb/includes/page_header.php on line 525
說明:我裝了cashmod 2.2.1,但是在觀看主題文章時出現以上的訊息,我已經檢查過我修改的文章,一切都沒問題,為什麼會出現以上訊息呢?
這是我page_header.php 第521~525行附近(紅字)

代碼: 選擇全部

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
// 
// BEGIN - board msg MOD 
// 
if ($board_config['board_msg_enable'] == '2') 
{ 
   $template->assign_block_vars('switch_enable_board_msg', array()); 
} 
// 
// END - board msg MOD

[color=red]header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');[/color]

$template->pparse('overall_header');

?>

這我viewtopic.php第571行附近(紅字)

代碼: 選擇全部

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

	$tracking_topics[$topic_id] = time();

	[color=red]setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
}[/color]

//
// Load templates
//
$template->set_filenames(array(
	'body' => 'viewtopic_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx, $forum_id);
其實我有在想是不是衝到board msg MOD阿~因為我在自己家裡裝根本沒事發生,一切都很順利滴QQ
這個問題我搜尋過了,但是有一個類似文章,但是卻沒人回復QQ

發表於 : 2004-12-01 15:24
。。鳳凰寺 風。。
天啊~~我快瘋了 找不到原因阿\r
有沒有誰可以幫我啊T^T

發表於 : 2004-12-01 15:48
神川小羽
問題出在語系檔吧\r
打開你的
lang_cash.php 第2行 看看是不是有空白 (空格) 把空格去掉
這個現象 常常出在 最上面跟最下面

發表於 : 2004-12-01 15:57
。。鳳凰寺 風。。
搞定了~
原來空格是主要原因

但是同樣的語系檔用在自家電腦卻是可以用的,
感覺怪怪低QQ

發表於 : 2004-12-01 15:58
神川小羽