參考連結:無\r
使用版本:phpBB 2.0.17
網站位置:http://gamania.idv.tw/
狀況描述:
從昨天開始有會員反應只要點選 search.php 相關的連結都會出現以下錯誤代碼 !
代碼: 選擇全部
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /home/lineii/public_html/Lineage/search.php on line 654相關問題文章 1
這篇無解答 (因為格式不足且發錯位置)
相關問題文章 2
這篇狼哥說是因為空間商的記憶體不足所致 .
相關問題文章 3
這篇鼠哥說是因為 eXtreme styles 版本過舊所致 (但是本人已經是最新版本)
清除暫存檔也無效 .
順便貼上 search.php 檔案 654 上下 10 行 !
有試過 make 該段就可以使用了 ..if ( $result = $db->sql_query($sql) )
{
$delete_search_ids = array();
while( $row = $db->sql_fetchrow($result) )
{
$delete_search_ids[] = "'" . $row['session_id'] . "'";
}
if ( count($delete_search_ids) )
{
$sql = "DELETE FROM " . SEARCH_TABLE . "
--> 654 WHERE session_id NOT IN (" . implode(", ", $delete_search_ids) . ")";
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete old search id sessions', '', __LINE__, __FILE__, $sql);
}
}
}
但是畢竟還是要確認這段有無影響才做
補充:
昨天才發生的問題 . 希望有相同問題的學長、弟一起研究一下

