Typ Deines phpBB Forums: Standard phpBB (auch Vanilla genannt)
MODs: Ja
Dein Wissensstand: Grundwissen
Link zu Deinem Forum: localhost
Was hast Du gemacht, bevor das Problem aufgetreten ist?
Versucht den Mod einzubauen
Was hast Du bereits versucht um das Problem zu lösen?
* Installations anleitung mehrmals durchgegangen
* Zeile kontrolliert in der der Fehler scheinbar ist
Fehlerbeschreibung und Nachricht
Code: Alles auswählen
Error in posting
DEBUG MODE
INSERT INTO phpbb_posts (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_draft) VALUES (23, 3, 2, '', 1115533814, '7f000001', 1, 0, 1, 1, )
Line : 400
File : functions_post.phpNun scheinbar wird der Wert von post_username nicht übergeben.
Code: Alles auswählen
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_draft) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, $draft_on)" : "UPDATE " . POSTS_TABLE . " SET post_username = $post_username, enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, enable_sig = $attach_sig, post_draft = $draft_on WHERE post_id = $post_id";Nun zuerst stand hier SET post_username = '$post_username', dies habe ich mal versucht zu ändern eben in SET post_username = $post_username, bringt auch nichts!
Ich bin ratlos!
Die Werte sollten eigentlich alle stimmen. Ich weiß auch nicht wieso ich die Fehlermeldung bekomme!
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
function submit_post($mode, &$post_data
#
#-----[ IN-LINE FIND ]----------------------------------------
#
)
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
, &$draft_on
#
#-----[ FIND ]------------------------------------------------
#
# this is a partial search : the full line is longer
#
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE
#
#-----[ IN-LINE FIND ]----------------------------------------
#
enable_smilies, enable_sig
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, post_draft
#
#-----[ IN-LINE FIND ]----------------------------------------
#
$smilies_on, $attach_sig
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, $draft_on
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, enable_sig = $attach_sig
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, post_draft = $draft_on
//EDIT: mir ist aufgefallen, dass manche Werte innerhalb von zwei '' stehen! Wieso ist das denn so? Ich hab auch hier schon versucht diese zu entfernen, gebracht hats auch nichts, ausser dass die Fehlermeldung sich geändert hat von VALUES (24, 3, 2, '', IN VALUES (24, 3, 2, ,
Was würden diese '''' bringen?
