Loading...
 
Skip to main content

Add Group fails

Status
Closed
Subject
Add Group fails
Category
  • Error
Feature
Administration
Resolution status
Invalid
Submitted by
yuria
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

Add new Group fails with error:
An error occured in a database query!
Built query was probably:
insert into `users_groups` (`groupName`, `groupDesc`, `groupHome`,`groupDefCat`,`groupTheme`,`usersTrackerId`,`groupTrackerId`, `registrationUsersFieldIds`, `userChoice`, `usersFieldId`, `groupFieldId`) values('IHS',,,'0',,'0','0',,,,'')
----------------
No error was reported in error.log

The two last parameters correspond usersFieldId and groupFieldId fields in the users_groups table and defined as int(11) there.
The problem seems to be in default values of those parliaments as they defined in add_group function in userlibs.php:

Copy to clipboard
function add_group($group, $desc='', $home='', $utracker=0, $gtracker=0, $rufields='', $userChoice='', $defcat=0, $theme='', $ufield='', $gfield='') {

Solution
Workaround
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2585
Created
Tuesday 23 June, 2009 16:44:49 UTC
by Unknown
LastModif
Tuesday 26 May, 2026 15:13:27 UTC


Show PHP error messages