Seite 1 von 1

SQL Error : 1064 You have an error .. - Wo liegt der Fehler?

Verfasst: 09.12.2005 21:25
von Miroerr
Hallo,

folgende Meldung kommt wenn ich einen Beitrag abschicken möchte:

Code: Alles auswählen

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

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 (243, 7, 2, '', 1134159781, '5494aac9', 1, 1, 1, 1, )

Line : 296
File : functions_post.php
Hier die functions_post.php
... http://miroerr.mi.funpic.de/functions_post.txt

Verfasst: 09.12.2005 22:15
von Jan500
hi
welchen mod hast du eingebaut?

den Under_construction_posts mod?

hast du das ausgeführt?

Code: Alles auswählen

INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_draft', '1');
ALTER TABLE phpbb_posts ADD post_draft smallint(1) unsigned NOT NULL default '0';
poste mal die posting.php

die functions_post.php scheint ok zu sein ;-9

gruß jan

Verfasst: 09.12.2005 22:24
von Miroerr
Die Queries habe ich ausgeführt, ja.
Auch wenn der Under Construction Mod komischerweiße trotzdem nicht funktioniert ... meinst du, der Fehler verschwindet, wenn ich die Zeilen des Mods wieder entferne/rückgängig mache ?
Hier die posting.php:

http://miroerr.mi.funpic.de/posting.txt

Verfasst: 09.12.2005 22:36
von Jan500
hi

versuch es mal damit

finden:

Code: Alles auswählen

submit_post($mode, $post_data, $return_message, $return_meta, $topic_bedankomat, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length,$draft_on, $k_id); 
mit ersetzen:

Code: Alles auswählen

submit_post($mode, $post_data, $return_message, $return_meta, $topic_bedankomat, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $draft_on, $k_id); 
jan

Verfasst: 09.12.2005 22:52
von Miroerr
Funktioniert nicht ...

Code: Alles auswählen

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

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 (240, 83, 2, '', 1134165127, '5494aac9', 1, 1, 1, 1, )

Line : 296
File : functions_post.php
Irgendwie sehe ich bei dir auch keine Änderung ... ?

Oh, hab das Leerzeichen wohl übersehen ^^. Trotzdem keine Änderung am Problem :(.

Verfasst: 09.12.2005 23:32
von Jan500
hi

kommt das egal ob du draft ja oder nein machst?

also was sicher ist, dass da ein value (der vom draft_on ( also 0 oder 1) ) fhelt beim eintragen...geht es wenn du einen beitrag nur bearbeitest?

gruß jan

Verfasst: 10.12.2005 00:24
von Miroerr
Wenn ich einen Beitrag editiere kommt keine Meldung. Wenn ich aber einen neuen abschicke, egal ob mit oder ohne "Under Construction"-Häkchen kommt der Fehler.
Da ich einen Mod entfernt habe (Bedankomat), schaut die posting.php nun anders aus.
http://miroerr.mi.funpic.de/posting.txt
Ebenso die functions_post.php
http://miroerr.mi.funpic.de/functions_post.txt

Es erscheint aber immer noch der gleiche Fehler:

Code: Alles auswählen

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

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 (242, 83, 2, '', 1134171999, '54948494', 1, 1, 1, 1, )

Line : 296
File : functions_post.php
edit 01:28: Habe aus der function_posts.php alle Codes von dem Under Construction Mod entfernt. Den Rest muss ich bei Gelegenheit von den anderen Dateien löschen. Auf jeden Fall kann man nun wieder antworten ...