Seite 1 von 1

Nach Update 2.0.18 Fehler beim Posten/Editieren

Verfasst: 03.11.2005 20:39
von modbo
Folgender fehler tritt seit dem Update beim Posten/Editieren auf:

Code: Alles auswählen

Allgemeiner Fehler 

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 'WHERE topic_id = 13' at line 1 

UPDATE phpbb_topics SET topic_title = 'I - Langsamfahren - Übung 1', topic_desc = 'Durchfahren einer schmalen Gasse', topic_type = WHERE topic_id = 13 

Line : 264 
File : functions_post.php 
Selbst wenn ich die "alte" functions_post.php wieder einspiele, bleibt der Fehler.

Weiss jemand Rat?

Verfasst: 04.11.2005 00:25
von Markus67
Hi ...

verlinke mal die neue functions_post.php und auch die posting.php als txt-Datei.
KB:datei

Markus

Verfasst: 04.11.2005 09:23
von modbo
Daran solls nicht scheitern ...

//edit: Martha, die Axt ...

Fehler gefunden :)

Hatte in der posting.php

Code: Alles auswählen

#
#-----[ FIND ]---------------------------------------------
#
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;

#
#-----[ AFTER, ADD ]---------------------------------------------
#
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;
Nicht AFTER, ADD sondern REPLACE benutzt :oops:

Verfasst: 04.11.2005 09:44
von Markus67
Hi ...

suche in der posting.php

Code: Alles auswählen

//
// Set topic type
//
danach einfügen:

Code: Alles auswählen

$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;
Markus