Feng Forum

Support => How To's => Topic started by: Aslak on January 14, 2010, 07:30:00 am

Title: Creating groups?
Post by: Aslak on January 14, 2010, 07:30:00 am
Hello,

I'm a newbie using OpenGoo(FengOffice).

I have a very simple problem: I try to make groups as administrator. I can see and fill in group information but when I try to save it it disappears?

What am I doing wrong?

Aslak
Title: Re: Creating groups?
Post by: Saerimner on January 14, 2010, 07:47:38 am
What happens more exactly when you press "save group"? Does it just reload  the Group page or do you get any kind of error message in top, or are you still in the "add group" window?
Title: Re: Creating groups?
Post by: Aslak on January 14, 2010, 10:44:04 am
Well, I go to "administration" click "+Add Group" and move to "New Group" window.

I give the group a name, permissions, assign users to it and define workspace permissions.

Then I click "Add Group" and end up in an empty window (look at the attachment).

When I go to look at the groups there is nothing but "administrators"
Title: Re: Creating groups?
Post by: Aslak on January 18, 2010, 06:22:34 am
I went and set the debug mode on from config.php and tried to set up a group.

I got a fatal error:

Code: [Select]
Fatal error: Argument 1 passed to ProjectUsers::clearByUser() must be an instance of User, called in
............../opengoo/application/controllers/GroupController.class.php on line 88 and defined in
............../opengoo/application/models/project_users/ProjectUsers.class.php on line 153

I deleted the actual address of the solution and marked it like (......../opengoo)

Have I misgonfigured users somehow? What should I repair? I don't have a clue what I should do.

I do not know php and can not do anything to the code. Can somebody help?
Title: Re: Creating groups?
Post by: ignacio on January 20, 2010, 12:55:33 pm
Hi,

Edit file 'application/models/project_users/ProjectUsers.class.php, line 183 and change from:

Code: [Select]
static function clearByUser(User $user, $ids = null) {
to:

Code: [Select]
static function clearByUser($user, $ids = null) {
Title: Re: Creating groups?
Post by: Aslak on January 20, 2010, 07:40:33 pm
Ignacio,

thanks. When I went to the line 153 and replaced the code, creating groups works like the toilet of the train. ;)