Seite 1 von 3

Problem beim posten

Verfasst: 30.08.2007 16:13
von thoefreak
Hallo,
wenn man beim Posten den Beitrag abschicken will, kommt folgende Nachricht:
Error in posting

Code: Alles auswählen

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

INSERT INTO phpbb_topics (topic_title, topic_bedankomat, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('tze', 2, 1188483092, , 0, 1, 0)

Line : 227
File : functions_post.php
außerdem steht oben auf der Seite:

Code: Alles auswählen

Warning: Missing argument 21 for submit_post() in /usr/export/www/vhosts/funnetwork/hosting/gutscheinfreak/phpBB2/includes/functions_post.php on line 185
was ist falsch!? Bzw. Was muss ich ändern!? Liegt vllt. an einem Mod!?

Verfasst: 30.08.2007 16:14
von Balint
Hallo!

Stell uns doch bitte deine functions_post.php auf www.pastebin.ca bereit... :)


Viele Grüße,
Bálint

Verfasst: 30.08.2007 16:17
von thoefreak

Verfasst: 30.08.2007 16:45
von Seimon
Die Zeile ist verhunzt:

Code: Alles auswählen

$sql  = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_bedankomat, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_bedankomat = $topic_bedankomat, $topic_bedankomat, topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
eventuell probierst du's so:

Code: Alles auswählen

$sql  = ($mode != "editpost") ? "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_bedankomat, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('$post_subject', $topic_bedankomat,  " . $userdata['user_id'] . ", $current_time, $forum_id, " . TOPIC_UNLOCKED . ", $topic_type, $topic_vote)" : "UPDATE " . TOPICS_TABLE . " SET topic_title = '$post_subject', topic_bedankomat = $topic_bedankomat, topic_type = $topic_type " . (($post_data['edit_vote'] || !empty($poll_title)) ? ", topic_vote = " . $topic_vote : "") . " WHERE topic_id = $topic_id";
(schnell drübergeschaut und irgendwas rumkopiert :D - nur mit backup riskieren!!)

oder du schaust dir die bedankomat einbauanleitung nochmal genau an - die sicherere variante.

wenn du es nicht schaffst poste die anleitung hier!

Verfasst: 30.08.2007 17:39
von thoefreak
hat nichts gebracht!
Auch den Mod nochmal Schritt für Schritt zu installieren!
Hier mal die Anleitung: http://www.pastebin.ca/675860

Verfasst: 30.08.2007 17:56
von Seimon
Noch immer die gleiche Fehlermeldung?
Bitte stell mal rein!

Verfasst: 30.08.2007 17:59
von thoefreak
nachdem ich den Dankomat jetzt nochmal ordnungsgemäß "installiert" habe, kommt folgender fehler:

Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /usr/export/www/vhosts/funnetwork/hosting/gutscheinfreak/phpBB2/posting.php on line 33

verdammt wasn los! Wenn ich die original posting.php Datei wieder hochlade gehts, aber es muss doch auch mit Dankomat gehen!

Verfasst: 30.08.2007 18:04
von Seimon
Warscheinlich wieder beim Einbau geschludert...

Entweder du nimmst jetzt alles an Konzentration zusammen und baust den mod sauber ein, oder du gibst auf, gestehst dir ein, dass copy+paste zu schwer für dich ist und stellst deine posting.php rein und lädst alle Schmach auf dich :D

Nein, im Ernst: Probiers mal! Ist meistens nur ein kleiner Typo und es macht Freude wenn man den selber findet :D

Verfasst: 30.08.2007 18:07
von thoefreak
War jetzt mein 3. mal und ich hab scheinbar doch was falsch gemacht! Ich stells jetzt mal rein: http://www.pastebin.ca/675886

will ja auch des es irgentwann mal funktioniert!

Verfasst: 30.08.2007 18:19
von Seimon
finde:

Code: Alles auswählen

$params = array('submit' => 'post', 'preview' => 'preview', 'delete' => 'delete'$params['topic_bedankomat'] = 'topic_bedankomat';, 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode');
ersetze mit:

Code: Alles auswählen

$params = array('submit' => 'post', 'preview' => 'preview', 'delete' => 'delete', 'poll_delete' => 'poll_delete', 'poll_add' => 'add_poll_option', 'poll_edit' => 'edit_poll_option', 'mode' => 'mode');


$params['topic_bedankomat'] = 'topic_bedankomat';