[SOLVED]Could not insert new group on v1.1.2

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 !

Postby pzsniper on Fri 25. Apr, 2003 17:01

Ok, fixed that error

Code: Select all
Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/virtual/site12/fst/var/www/html/luxiaobscurea/admin/admin_groups.php on line 97


But still suffer the old one.

in MEANTIME i'm forced to add groups directly on Mysql :(
pzsniper
Poster
Poster
 
Posts: 59
Joined: Sun 06. Oct, 2002 09:00
Location: Italy

Postby Niels on Fri 25. Apr, 2003 20:25

the order does not matter regarding how mySQL is arranged, But the order of the INSERT is importent
the FIELDS names and the VALUES, MUST came in same order
e.g. NOT correct (as you did)
Code: Select all
INSERT INTO ".GROUPS_TAble ." (A,B) values ($b,$a)

it should look like this
Code: Select all
INSERT INTO ".GROUPS_TAble ." (A,B) values ($a,$b)


I have though understood that you have fixed this, your other probelm is that you some how have made this wrong
Code: Select all
$group_info = array (
         'group_name' => '',
         'group_description' => '',
         'group_moderator' => '',
         'group_type' => GROUP_OPEN);
         'group_allow_pm' => AUTH_ADMIN,
            'group_count' => '99999999',
            'group_count_enable' => '0',
     


witch is not looking alrigth, should be
Code: Select all
$group_info = array (
         'group_name' => '',
         'group_description' => '',
         'group_moderator' => '',
         'group_type' => GROUP_OPEN,
         'group_allow_pm' => AUTH_ADMIN,
            'group_count' => '99999999',
            'group_count_enable' => '0');


this is syntax correct, I havenøt though spend time on verifying that the actual code is alrigth, but asume it is (you may lok inside my pre-loaded pack, to see this file)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46

Postby pzsniper on Sat 26. Apr, 2003 04:55

Yes Nield, already told u that i fixed that issue!

That way:

Code: Select all
$group_info = array (
'group_name' => '',
'group_description' => '',
'group_moderator' => '',
'group_allow_pm' => AUTH_ADMIN,
'group_count' => '99999999',
'group_count_enable' => '0',
'group_type' => GROUP_OPEN);
   $group_open = ' checked="checked"';


But the original ERROR creating groups STILL popup!

Now i'll try to look into your fully modded phpbb files ;)
pzsniper
Poster
Poster
 
Posts: 59
Joined: Sun 06. Oct, 2002 09:00
Location: Italy

Postby pzsniper on Sat 26. Apr, 2003 05:00

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_id, group_type, group_name, group_description, group_moderator, group_single_user, group_allow_pm, group_count, group_count_enable) VALUES (0, 'asd', 'asd', 11, '5', '99999999', '', '0')

Line : 372
File : /home/virtual/site12/fst/var/www/html/luxiaobscurea/admin/admin_groups.php


NO way... uhmmm... :roll: :cry: :oops: :x
pzsniper
Poster
Poster
 
Posts: 59
Joined: Sun 06. Oct, 2002 09:00
Location: Italy

Postby pzsniper on Sat 26. Apr, 2003 05:05

YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!!!

Il nuovo gruppo è stato creato con successo

Clicca qui per tornare al pannello Amministrazione Gruppi

Clicca qui per tornare al Pannello di Amministrazione


SUCCESS!

I re-done that code line as u told from beginning :oops: :D

this is the WORKING placement:

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


MISSION ACCOMPLISHED!
Thank you for your valuable supprot, u r my favorite MODDER!!!
You rock!
pzsniper
Poster
Poster
 
Posts: 59
Joined: Sun 06. Oct, 2002 09:00
Location: Italy

Postby agil daeng on Fri 01. Apr, 2005 14:29

i ve been lookin for this every where !!!!

THANKS !!!!
agil daeng
Poster
Poster
 
Posts: 2
Joined: Fri 01. Apr, 2005 12:51

Previous

Return to Auto group [2.0.8/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron