Seite 1 von 1

modcp Fehler

Verfasst: 15.04.2004 22:46
von DJBase
Ich wollte gerade ein Thema im modcp teilen, da bekomme ich folgenden Fehler gemeldet.

Code: Alles auswählen

Could not get post 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 ') ORDER BY post_time ASC' at line 3

SELECT post_id, poster_id, topic_id, post_time FROM phpbb_pegforum_posts WHERE post_id IN () ORDER BY post_time ASC
Line : 722
File : /homepages/17/d17973898/htdocs/pegasosforum/modcp.php
Jemand eine Idee dazu? Ich habe on der modcp nichts geändert (php 2.0.8).

Verfasst: 15.04.2004 22:58
von PhilippK
Bitte die modcp.php nochmals neu aus dem Paket hochladen.

Gruß, Philipp

Verfasst: 15.04.2004 23:16
von DJBase
Gleicher Fehler. Bei anderen Themen klappte es. Hier jedoch nicht. Ich erkenne auch nicht warum.

Verfasst: 09.12.2004 22:24
von Rocko
ich habe den gleichen fehler

Code: Alles auswählen

	case 'split':
		$page_title = $lang['Mod_CP'];
		include($phpbb_root_path . 'includes/page_header.'.$phpEx);

		$post_id_sql = '';

		if (isset($HTTP_POST_VARS['split_type_all']) || isset($HTTP_POST_VARS['split_type_beyond']))
		{
			$posts = $HTTP_POST_VARS['post_id_list'];

			for ($i = 0; $i < count($posts); $i++)
			{
				$post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($posts[$i]);
			}
		}

		if ($post_id_sql != '')
		{
			$sql = "SELECT post_id 
				FROM " . POSTS_TABLE . "
				WHERE post_id IN ($post_id_sql)
					AND forum_id = $forum_id";
			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Could not get post id information', '', __LINE__, __FILE__, $sql);
			}
			
			$post_id_sql = '';
			while ($row = $db->sql_fetchrow($result))
			{
				$post_id_sql .= (($post_id_sql != '') ? ', ' : '') . intval($row['post_id']);
			}
			$db->sql_freeresult($result);

			$sql = "SELECT post_id, poster_id, topic_id, post_time
				FROM " . POSTS_TABLE . "
				WHERE post_id IN ($post_id_sql) 
				ORDER BY post_time ASC";
			if (!($result = $db->sql_query($sql)))
			{
(Zeile722)				message_die(GENERAL_ERROR, 'Could not get post information', '', __LINE__, __FILE__, $sql);
			}