Kann keiner Foren mehr erstellen

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
spritzpistole
Mitglied
Beiträge: 1287
Registriert: 02.10.2004 00:25
Wohnort: Haßloch
Kontaktdaten:

Kann keiner Foren mehr erstellen

Beitrag von spritzpistole »

Es dreht sich um diesen Mod:

Code: Alles auswählen

###############################################
##	Hack Title:		Password-protected forums
##	Hack Version:	0.5.1
##	Author:			Freakin' Booty ;-P
##
##	Installation Level: Easy
##	Installation Time: 20 - 25 minutes
##	Files To Edit: 9
##		posting.php
##		search.php
##		viewtopic.php
##		viewforum.php
##		admin/admin_forums.php
##		includes/functions.php
##		includes/sessions.php
##		language/lang_english/lang_main.php
##		templates/subSilver/admin/forum_edit_body.tpl
##
##	Included Files: 2
##		db_update.php
##		templates/subSilver/password_body.tpl
Nach dem Einbau, wenn ich ein neues Forum erstellen möchte, dann kommt:

Code: Alles auswählen

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, forum_desc, forum_order, forum_password, prune_enable, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_announce, auth_vote, auth_pollcreate) VALUES ('39', 'lol', 1, 'lol', 110, 0, '', 0, 0, 0, 1, 1, 1, 1, 3, 3, 1, 1)

Line : 411
File : admin_forums.php
In Line 411 steht:
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_password, prune_enable" . $field_sql . ")
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['password']) . "', " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't insert row in forums table", "", __LINE__, __FILE__, $sql);
}

if( $HTTP_POST_VARS['prune_enable'] )
{
Dort finde ich aber keinen Fehler!? Wo fehlt denn jetzt noch etwas, dass die Tabelle mit dem anderen übereinstimmen!?

Vielen Dank im Vorraus.
Hades88
Mitglied
Beiträge: 30
Registriert: 07.05.2006 17:09

Beitrag von Hades88 »

hey,

hast du diese Zeile befolgt:

Code: Alles auswählen

#-----[ COPY ]--------------------------------------------
#
# Run this file once as administrator and then delete it
#
db_update.php		=> db_update.php
gruß
spritzpistole
Mitglied
Beiträge: 1287
Registriert: 02.10.2004 00:25
Wohnort: Haßloch
Kontaktdaten:

Beitrag von spritzpistole »

Jupp ;),
mal schaun, was die Zeit noch für Posts bringen :)

Danke trotzdem
John the Ripper
Mitglied
Beiträge: 111
Registriert: 02.10.2005 11:53
Wohnort: Villingen-Schwenningen

Beitrag von John the Ripper »

Du hast die INSERT Anweisung nicht richtig bearbeitet. Du willst einen Wert mehr einfügen, als Spalten im SQL-Query angegeben sind.

Das schafft Abhilfe:

Code: Alles auswählen

SUCHE

, forum_order

FÜGE DAHINTER EIN

, forum_status
Antworten

Zurück zu „phpBB 2.0: Mod Support“