Seite 1 von 1

Kann keine gruppe mehr anlegen...auto_group MOd

Verfasst: 05.10.2006 20:51
von ichda
Hallo,
hat vorher alles geklappt,nun wollte ich eine neue Gruppe anlegen und bekomme folgende Meldung:

Code: Alles auswählen

Could not insert new group

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 'group_single_user) VALUES (0, 'test', '', 2, '1000','100000','1' '0')' at line 1

INSERT INTO phpbb_groups (group_type, group_name, group_description, group_moderator, group_count,group_count_max,group_count_enable group_single_user) VALUES (0, 'test', '', 2, '1000','100000','1' '0')

Line : 402
File : admin_groups.php
Kann mir da bitte einer helfen?

Gruss Peter

Verfasst: 05.10.2006 21:03
von Dr.Death
Da fehlen insgesamt 2 Komma(tas)
INSERT INTO phpbb_groups
(group_type, group_name, group_description, group_moderator, group_count,group_count_max,group_count_enable, group_single_user)
VALUES
(0, 'test', '', 2, '1000','100000','1', '0')
Du hast warscheinlich etwas beim Einbau falsch gemacht.

Poste doch mal die Zeilen 398 bis 405 von der admin_groups.php

Verfasst: 05.10.2006 21:15
von ichda
$sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_count,group_count_max,group_count_enable group_single_user)
VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '$group_count','$group_count_max','$group_count_enable' '0')";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new group', '', __LINE__, __FILE__, $sql);
}
$new_group_id = $db->sql_nextid();

$sql = "INSERT INTO " . USER_GROUP_TABLE . " (group_id, user_id, user_pending)
VALUES ($new_group_id, $group_moderator, 0)";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not insert new user-group info', '', __LINE__, __FILE__, $sql);
}
Das ist von 398 bis 410

Das komische ist nur ich habe es damals geschafft ,eine Gruppe anzulegen.Gestern habe ich den neuen Tracker eingebaut ...ich weiss jetzt aber nicht ob es mit dem zusammenhängen kann,das war jetzt Zufall das ich heute ne neue Gruppe anlegen wollte.

Und die betreffende Datei ist ja auch gar nicht mit im Trackereinbau berücksichtigt.

Verfasst: 05.10.2006 21:21
von Dr.Death
SUCHE:

Code: Alles auswählen

$sql = "INSERT INTO " . GROUPS_TABLE . " (group_type, group_name, group_description, group_moderator, group_count,group_count_max,group_count_enable group_single_user) 
VALUES ($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '$group_count','$group_count_max','$group_count_enable' '0')"; 
ERSETZE MIT:

Code: Alles auswählen

$sql = "INSERT INTO " . GROUPS_TABLE . " 
(group_type, group_name, group_description, group_moderator, group_count, group_count_max, group_count_enable, group_single_user) 
VALUES 
($group_type, '" . str_replace("\'", "''", $group_name) . "', '" . str_replace("\'", "''", $group_description) . "', $group_moderator, '$group_count','$group_count_max','$group_count_enable', '0')";  

Verfasst: 05.10.2006 21:35
von ichda
Super,du bist der BEste.

Danke dir vielmals!!!

Gruss Peter