Feng Forum

Support => How To's => : Aslak January 14, 2010, 07:30:00 AM

: Creating groups?
: Aslak 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
: Re: Creating groups?
: Saerimner 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?
: Re: Creating groups?
: Aslak 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"
: Re: Creating groups?
: Aslak 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:

:
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?
: Re: Creating groups?
: ignacio January 20, 2010, 12:55:33 PM
Hi,

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

:
static function clearByUser(User $user, $ids = null) {
to:

:
static function clearByUser($user, $ids = null) {
: Re: Creating groups?
: Aslak 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. ;)