Genau diese Nachricht bekomme ich beim aufruf des Mopcp´s. Ausserdem kann ich keine Themen Sperren. er sperrt entweder falsche themen oder meldet, das theme gibts nicht.Could not obtain topic information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id ORD' at line 4
SELECT t.*, u.username, u.user_id, p.post_time FROM forumtopics t, forumusers u, forumposts p WHERE t.forum_id = AND t.topic_poster = u.user_id AND p.post_id = t.topic_last_post_id ORDER BY t.topic_type DESC, p.post_time DESC LIMIT 0, 50
Line : 1170
File : modcp.php
hier der code um und bei 1170
Code: Alles auswählen
//
// Define censored word matches
//
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
$sql = "SELECT t.*, u.username, u.user_id, p.post_time
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p
WHERE t.forum_id = $forum_id
AND t.topic_poster = u.user_id
AND p.post_id = t.topic_last_post_id
ORDER BY t.topic_type DESC, p.post_time DESC
LIMIT $start, " . $board_config['topics_per_page'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain topic information', '', __LINE__, __FILE__, $sql);
}