Seite 1 von 1

error in posting

Verfasst: 13.02.2005 01:57
von Kiss News
Hallo!

Ich habe plötzlich einen Error in posting:
Error in posting

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 ' 1108254478, , 0, 0, 0, 0, 1)' at line 1

INSERT INTO phpbb_topics (topic_title, topic_extra, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_icon, topic_vote, topic_quiz) VALUES ('', '', , 1108254478, , 0, 0, 0, 0, 1)

Line : 412
File : /srv/www/htdocs/web148/html/phpbb2/includes/functions_post.php
Zeilen 406 bis 412 von includes/functions_post.php sind:
$sql = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_extra, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_icon, topic_vote, topic_quiz) VALUES ('$post_subject', '$post_extra', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $post_icon, $topic_vote, " . ( empty($post_data['topic_quiz']) ? '0' : '1' ) . ")" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_extra = '$post_extra', topic_type = $topic_type, topic_icon=$post_icon " .
// ADDED , topic_quiz AND , " . ( empty($post_data['topic_quiz']) ? '0' : '1' ) . " BY Quiz Hack
//-- fin mod : post icon ---------------------------------------------------------------------------
(($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
Weiss vielleicht jemand, was das bedeutet oder warum der kommt?
Danke!

update: der Error kommt aber seltsamerweise nicht immer!

Re: error in posting

Verfasst: 13.02.2005 18:36
von Pumi
Kiss News hat geschrieben:Ich habe plötzlich einen Error in posting:
Was bedeutet "plötzlich"? Seit dem Einbau vom Quiz Mod oder seit dem Einbau vom Post Icon Mod?

Bei einem von den beiden ist wohl etwas nicht so ganz richtig gelaufen. Schau nochmal genau die Anleitungen durch.