error in posting

Probleme bei der regulären Arbeiten mit phpBB, Fragen zu Vorgehensweisen oder Funktionsweise sowie sonstige Fragen zu phpBB im Allgemeinen.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.1, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Kiss News
Mitglied
Beiträge: 1640
Registriert: 31.05.2004 02:04
Wohnort: Österreich
Kontaktdaten:

error in posting

Beitrag 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!
Benutzeravatar
Pumi
Mitglied
Beiträge: 752
Registriert: 04.10.2002 13:38
Wohnort: Schwabenland - Germany
Kontaktdaten:

Re: error in posting

Beitrag 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.
Antworten

Zurück zu „phpBB 2.0: Administration, Benutzung und Betrieb“