Error inserting new group

You'll automatically gain access to this forum when you will post your first post in another forum. That way it will demonstrate how the Auto Group MOD works.
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Error inserting new group

Postby Christel on Sun 20. Jun, 2004 12:14

I am having trouble with the auto_group mod. At first it worked great and now it's giving errors. I don't believe I installed another mod after this one....can anyone help me? I searched for a sollution inhere but none off them gave me the exact answer....thanks in advance!

Code: Select all
Could not insert new group

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 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 (2, 'Vips', 'Voor de crewmembers.....', 2, '99999999', '99999999', '' '0')

Line : 394
File : /home/virtual/site83/fst/var/www/html/forum/admin/admin_groups.php



And here you'll find the query in the admin_groups.php:
Code: Select all
else if( $mode == 'newgroup' )
                {
                        $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();
Christel
Poster
Poster
 
Posts: 6
Joined: Sun 20. Jun, 2004 11:12

Postby crinrict on Sun 20. Jun, 2004 14:49

There is a comma missing in your code:


FIND:

Code: Select all
'$group_count_enable'    '0')";


REPLACE WITH

Code: Select all
'$group_count_enable', '0')";
crinrict
Poster
Poster
 
Posts: 37
Joined: Sun 18. Apr, 2004 00:25
Location: Switzerland


Return to Auto group [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron