1 頁 (共 1 頁)

[問題]2.06->2.08問題(已解決)

發表於 : 2004-05-17 16:30
jackyct1
因為現在推出了2.08,但是我還是2.06,
所以我到http://www.phpbb.com/downloads.php下載2.08的patch,
然後我跟據它的步驟修改,然後upload裡面的4個folder,準備更新,
不過,因為我第一次更新,有些東西不太明白,
然後我就傻傻地去install/install.php更新,而且還以為是"系統升級"呢... :mrgreen:
我搞了很多次也一直失敗,最後才知道是用install/update_to_208.php這個file更新...

更新完以後,再到index.php看一下,發現它出現了下列錯誤在頁面頂端:

代碼: 選擇全部

Warning: mysql_fetch_array(): 31 is not a valid MySQL result resource in /home/.sites/33/site5/web/phpbb2/db/mysql4.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/.sites/33/site5/web/phpbb2/db/mysql4.php:214) in /home/.sites/33/site5/web/phpbb2/includes/page_header.php on line 556

Warning: Cannot modify header information - headers already sent by (output started at /home/.sites/33/site5/web/phpbb2/db/mysql4.php:214) in /home/.sites/33/site5/web/phpbb2/includes/page_header.php on line 558

Warning: Cannot modify header information - headers already sent by (output started at /home/.sites/33/site5/web/phpbb2/db/mysql4.php:214) in /home/.sites/33/site5/web/phpbb2/includes/page_header.php on line 559
這個是我的page_header.php的555->559 line的資料:

代碼: 選擇全部

{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');
請問我應該如何修正這問題呢?

發表於 : 2004-05-19 18:22
jackyct1
不好意思~我在這個網找到錯誤的地方了~>http://www.phpbb.de/viewtopic.php?p=293404

在更新時,它有一段是:
找到:

代碼: 選擇全部

      while( $topic_data = $db->sql_fetchrow($result) ) 
      { 
         $new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time']; 
      }
後面加:

代碼: 選擇全部

$db->sql_freeresult($result);
然後我現在把$db->sql_freeresult($result);刪除,問題就解決了..?!
請問這一句在更新時有什麼用的呢?^^"