Seite 1 von 1

Fehlermeldung bei Erstellung von neuen Foren

Verfasst: 13.01.2008 12:44
von vallehru
Moin Moin

Wenn ich ein neues Forum erstellen möchte, kommt bei mir in letzter Zeit immer folgende Fehlermeldung:
Couldn't insert row in forums table

DEBUG MODE

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

INSERT INTO phpbb_forums (forum_id, forum_name, cat_id, attached_forum_id, forum_desc, forum_order, forum_status, prune_enable, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate) VALUES ('75', 'Preisratgeber', 13, -1, 'Was sollte man ausgeben????', 130, 0, 0, 0, 0, 0, 1, 1, 1, 1, 3, 3, 1, 1)

Line : 569
File : admin_forums.php
Was will mir diese Meldung sagen?
Link zur admin_forums


Danke im voraus :wink:

Verfasst: 14.01.2008 10:35
von Seimon
Ich würd sagen hier ist ein Fehler:

Code: Alles auswählen

$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, attached_forum_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
				VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) .  ", " . intval($HTTP_POST_VARS['attached_forum_id']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . ", " . intval($HTTP_POST_VARS['stop_bumping']) . $value_sql . ")";
ich würde vermuten es gehört ein , stop_bumping nach prune_enable

also so:

Code: Alles auswählen

$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, attached_forum_id, forum_desc, forum_order, forum_status, prune_enable, stop_bumping" . $field_sql . ")
				VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) .  ", " . intval($HTTP_POST_VARS['attached_forum_id']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . ", " . intval($HTTP_POST_VARS['stop_bumping']) . $value_sql . ")";
überprüf mal die Einbauanleitung des Easy Sub-Forums MOD

Verfasst: 15.01.2008 17:45
von vallehru
Moin

Vielen Dank, das war der Fehler. Nun läuft es wieder.