參考連結:http://www.phpbb.com/phpBB/viewtopic.php?t=42505
使用版本:phpBB 2.0.4
網站位置:http://ppbc.hk.st
狀況描述: 我照安裝指引, 在index.php 中加入\r
[php]<?php
//
// get the hierarchie
//
$sql = "SELECT concat(c.cat_title, ', ', f.forum_name) AS hierarchie_title, f.forum_id, f.forum_hier_level + 1 AS hierarchie_level
FROM " . CATEGORIES_TABLE . " c, " . CAT_REL_CAT_PARENTS_TABLE . " ccp, " . FORUMS_TABLE . " f, " . CAT_REL_FORUM_PARENTS_TABLE . " cfp
WHERE ccp.parent_cat_id = c.cat_id
AND ccp.cat_id = $cat_id
AND cfp.parent_forum_id = f.forum_id
AND cfp.cat_id = $cat_id
ORDER BY c.cat_hier_level, f.forum_hier_level";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query hierarchie title', '', __LINE__, __FILE__, $sql);
}
while( $row = $db->sql_fetchrow($result) )
{
$template->assign_block_vars("navrow", array(
'U_SUBINDEX' => append_sid("index.$phpEx?" . POST_HIERARCHIE_URL . "=" . $row['hierarchie_level'] . "&" . POST_PARENTFORUM_URL . "=" . $row['forum_id']),
'L_SUBINDEX' => $row['hierarchie_title'])
);
}
//
// Get the categorie title
//
$sql = "SELECT cat_title
FROM " . CATEGORIES_TABLE . "
WHERE cat_id = $cat_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query categorie title', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$cf_title = $row['cat_title'] . ", " . $forum_name;
?>[/php]
後來便出現:
代碼: 選擇全部
Could not query superior forums of new topic information
DEBUG MODE
SQL Error : 1146 Table '[color=#ff0008]phpbb.cat_rel_forum_parents_table[/color]' doesn't exist
SELECT f.forum_id, cfp.parent_forum_id FROM phpbb_forums f, CAT_REL_FORUM_PARENTS_TABLE cfp WHERE f.forum_id IN ( 24 , 3 , 25 , 3 , 3 , 3 , 15 ) AND f.cat_id = cfp.cat_id
Line : 336
File : c:\appserv\www\phpbb\index.php補充:
http://william91.myftp.org/phpbb/mods.php
