1 頁 (共 1 頁)

[問題] page_header 和 session出現了問題?[已解決]

發表於 : 2005-08-10 14:04
SimonLeung
圖檔

圖檔


以下是相關的語法:
1> session.php 204-205行

代碼: 選擇全部

setcookie($cookiename . '_data', serialize($sessiondata), $current_time + 31536000, $cookiepath, $cookiedomain, $cookiesecure);
	setcookie($cookiename . '_sid', $session_id, 0, $cookiepath, $cookiedomain, $cookiesecure);
2>page_header.php 475-478行

代碼: 選擇全部

header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
昨晚還很正常,
剛才上網一看......就幾成這樣子
近日只安裝了 Attachment MOD 和 更新了phpBB 2.0.17

發表於 : 2005-08-10 19:15
*tytsim*
你在page_header.php有沒有亂加東西,
如果有就會這樣~

發表於 : 2005-08-10 19:17
小竹子
檢查 config.php 最後面的 ?> 後方有沒有多餘的空白欄位。

發表於 : 2005-08-10 22:18
SimonLeung
小竹子 寫:檢查 config.php 最後面的 ?> 後方有沒有多餘的空白欄位。
並沒有出現空白欄位

發表於 : 2005-08-10 22:20
SimonLeung
*tytsim* 寫:你在page_header.php有沒有亂加東西,
如果有就會這樣~
最近也沒有作任何修改

發表於 : 2005-08-10 22:57
SimonLeung
提供多少少資料

1> 後台也送不入,後台登入的一頁也出現類似以上的warning
2> 在posting.php 等不同的分頁,出現的warning也略有不同
如在 topic.php 中\r
除了以上的session.php 和 page_header.php有錯的warning外
還有這句\r
Warning: Cannot modify header information - headers already sent by (output started at /home/ace-forum/includes/functions.php:1) in /home/ace-forum/viewtopic.php on line 580

發表於 : 2005-08-10 23:08
~倉木麻衣~
每一行的錯誤訊息都告訴您\r

代碼: 選擇全部

headers already sent by (output started at /home/ace-forum/includes/functions.php:1)
所以您應該檢查的是includes/functions.php才對

發表於 : 2005-08-10 23:28
SimonLeung
~倉木麻衣~ 寫:每一行的錯誤訊息都告訴您\r

代碼: 選擇全部

headers already sent by (output started at /home/ace-forum/includes/functions.php:1)
所以您應該檢查的是includes/functions.php才對
先謝!
但我應如何入手?

發表於 : 2005-08-10 23:32
~倉木麻衣~
先檢查看看functions.php檔案的開頭或結尾處是否有多餘的空行或空白之類的

若方便的話, 可以提供您的functions.php檔供別人下載除錯用

發表於 : 2005-08-10 23:40
SimonLeung
~倉木麻衣~ 寫:先檢查看看functions.php檔案的開頭或結尾處是否有多餘的空行或空白之類的

若方便的話, 可以提供您的functions.php檔供別人下載除錯用
謝謝
原來是開頭<? 前有一空白欄位
問題解決了,謝各位