after install on my forum I have a problem that i cannot resolve.
when i'm logged all works
but when i'm not logged in the index page there is an error message like this and nothing else..
when u are a new guest it seems to work but when u register and log out.. it don't work..
Could not obtain post information
SQL Error : 1064 You have an error in your SQL syntax near '' at line 3
SELECT DISTINCT topic_id FROM phpbb_posts WHERE topic_id IN (22) AND poster_id =
Line : 194
File : /usr/local/psa/home/vhosts/foresti.com/httpdocs/Forum/includes/functions_topics_list.php
this is a part of the file in the debug
// check if user replied to the topics
$user_topics = array();
if ($userdata['user_id'] != ANONYMOUS)
// get all the topic ids to display
$topic_ids = array();
for ($i = 0; $i < count($topic_rowset); $i++)
$topic_item_type = substr($topic_rowset[$i]['topic_id'], 0, 1);
$topic_id = intval(substr($topic_rowset[$i]['topic_id'], 1));
if ( $topic_item_type == POST_TOPIC_URL )
$topic_ids = $topic_id;
// check if the user replied to
// check the posts
$s_topic_ids = implode(', ', $topic_ids);
$sql = "SELECT DISTINCT topic_id FROM " . POSTS_TABLE . "
WHERE topic_id IN ($s_topic_ids)
AND poster_id = " . $userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
message_die(GENERAL_ERROR, 'Could not obtain post information', '', __LINE__, __FILE__, $sql);
while ($row = $db->sql_fetchrow($result))
$user_topics[POST_TOPIC_URL . $row['topic_id']] = true;
the url is http://www.foresti.com/Forum
thx to all