Seite 1 von 1

pasword protekted topics

Verfasst: 29.05.2005 09:56
von Milania
hi,

ich habe diesen mod installirt doch nun kan man kein thema mehr eröffnen es kommt immer:

Code: Alles auswählen

Error in posting

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 1

INSERT INTO phpbb_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('test', 2, 1117351474, 13, 0, 0, 0, '')

Line : 777
File : functions_post.php
hier ist die datei:
http://www.milania.de/phpBB2/Datei%20Be ... s_post.txt

Verfasst: 29.05.2005 10:14
von kratzer54847
reaparier mal die Topics-Tabelle in KB:phpmyadmin

Verfasst: 29.05.2005 10:40
von Christian Benz
Hallo,

schau dir noch mal die Änderungen in Zeile 769 an, da müßte ein Fehler vorliegen. "Column count doesn't match value count" besagt nichts anderes als dass die Anzahl der zu übergebenden Werte (Values) nicht mit der Anzahl der angegebenen Tabellenspalten/Felder übereinstimmt und das sieht man auch wenn man deinen besagten Programmcode von Zeile 769 anschaut:

Code: Alles auswählen

"INSERT INTO " . TOPICS_TABLE . " (topic_title, 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, '$topic_password')"
topic_title -> $post_subject
topic_poster -> $userdata['user_id']
topic_time -> $current_time
forum_id -> $forum_id
topic_status -> TOPIC_UNLOCKED
topic_type -> $topic_type
topic_vote -> $topic_vote
??? -> $topic_password

Du hast 8 Werte, gibst dafür aber nur 7 (Ziel-)Felder an. Ergo: "Column count doesn't match value count"

Gruß,
Chris

Verfasst: 29.05.2005 12:54
von Milania
super jetzt gehts wieder, vielen dank :)