Cytuj:
Could not obtain topic information
DEBUG MODE
SQL Error : 1146 Table 'phpbb_gim5.TT_TABLE' doesn't exist
SELECT t.topic_id, t.topic_title, t.topic_ttype, tt.tt_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, t.topic_ttype, tt.tt_title, t.topic_poster, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.enable_pluspoints, f.enable_minuspoints, f.auth_attachments FROM (phpbb_topics t LEFT JOIN TT_TABLE tt ON t.topic_ttype=tt.tt_id), phpbb_forums f WHERE t.topic_id = 207 AND f.forum_id = t.forum_id
Line : 156
File : /home/phpbb/public_html/mforum/viewtopic.php
A tablea istnieje, bo mod działał
viewtopic.php 149-166
Kod:
$sql = "SELECT t.topic_id, t.topic_title, t.topic_ttype, tt.tt_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, t.topic_ttype, tt.tt_title, t.topic_poster, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.enable_pluspoints, f.enable_minuspoints, f.auth_attachments" . $count_sql . "
FROM (" . TOPICS_TABLE . " t LEFT JOIN " . TT_TABLE . " tt ON t.topic_ttype=tt.tt_id), " . FORUMS_TABLE . " f" . $join_sql_table . "
WHERE $join_sql
AND f.forum_id = t.forum_id
$order_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
}
if ( !($forum_topic_data = $db->sql_fetchrow($result)) )
{
message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
$forum_plus = intval($forum_topic_data['enable_pluspoints']);
$forum_minus = intval($forum_topic_data['enable_minuspoints']);
$forum_id = intval($forum_topic_data['forum_id']);
www.mForum.info - next generation