After I have created a Type and Role, set permissions, I cannot add a group.

I always get the following message.

You have not created any group types yet. Go to the group type creation page to add a new group type.

I'm working on the latest code base (22 Apr 2013 16:50:47)

In the previous version, I got the group creation form

CommentFileSizeAuthor
#5 Snap 2013-04-26 at 17.48.12.png47.9 KBthim

Comments

oenie’s picture

Thim,

Can you go through the steps you took before you got the errors ?
I reinstalled our project and tried out your steps with a new group type & roles/permissions for it, but it works fine for me.
Did you clear caches, etc ... ?

OK, got the error on a clean install, i'm looking into it

oenie’s picture

Thim,

From what i gather is that a cache clear should fix the problem.

I'm not sure yet whether this will be bug or feature. The question is whether you consider a group type a basic building block of the site, or expect group types to be added on a regular basis.

In the former case, a cache clear would be in order because the site base has been changed.

In the latter case, we might have to look into a way to auto-update the menu references when a new type is created (i.e. clear the menu cache)

At the moment i'm leaning towards keeping it cc all, mainly because you would rather create group types when you start building a site, and should stick to creating groups of a certain type once your site is up and running.

thim’s picture

Hi Oenie,

I removed all tables and did a clean install.
Drush cc all

Added a type
Added a role
Set permissions
Drush cc all

Tried to Add group and then this resulted in the follow message

You have not created any group types yet. Go to the group type creation page to add a new group type.

In the previous release, when I added a group to the URL on the group/add had a type attached to it.
In this release, it just says group/add

I'll do a reinstall later today and retest.

kristiaanvandeneynde’s picture

Should be fixed with commit 5e431d50.

thim’s picture

StatusFileSize
new47.9 KB

Hi Kristiaan,

I tried it with the latest release of today (26/04 17:42)
And still no luck, even with several Cache Clears (drush cc all)

The add group link = /group/add (without the admin)
Is this normal?

kristiaanvandeneynde’s picture

Can you try to surf directly to group/add/ where is the machine name of the group type?

thim’s picture

I tried.

Or I get a permissions denied screen or I get 404

thim’s picture

Problem solved.

If you create a group, a new permission becomes available to "Create new group" for the created group_type.

Perhaps, refer in the message to check the permissions?

thim’s picture

Status: Active » Closed (fixed)
kristiaanvandeneynde’s picture

Title: Add group page shows message instead of form » Notify users of new permissions after creating a group type
Assigned: Unassigned » kristiaanvandeneynde
Category: bug » task
Status: Closed (fixed) » Active

Glad you figured it out, adding this to our backlog.

kristiaanvandeneynde’s picture

Status: Active » Fixed

Fixed as per commit 264a003

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 264a003 on 7.x-1.x, ctools_plugins, inheritance by kristiaanvandeneynde:
    Issue #1977334 by kristiaanvandeneynde: Notify users of new permissions...