I am trying a basic install of the invite module and everything seems to be configured fine.

When I try to invite new members I get the following error message: (see attached jpg)
"Sorry, you reached the maximum number (0) of invitations."

I tried changing the invitation limit from unlimited to an actual number (e.g. 500) but that didn't fix the problem.
I'm surprised at this error and haven't found any other reference to a similar problem.
I'm using the latest released version of Drupal.

CommentFileSizeAuthor
#1 invite.module.patch718 bytessmk-ka
invite module error.jpg48.52 KBssutankayo

Comments

smk-ka’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » smk-ka
Status: Active » Fixed
StatusFileSize
new718 bytes

Yes, I think that happens if you are surfing the site as administrator (userid 1) and haven't given any role the 'send invites' permission. The workaround is to give authenticated users the 'send invitations' permission.

The attached patch fixes this, and has already been committed. It will thus be available in the devel snapshot within the next hours.

http://drupal.org/cvs?commit=90073

ssutankayo’s picture

Thanks for the patch, I can invite as an administrator now.

I'm using this feature to invite members of an existing group onto a community site. I would like to add some new members directly having an "Organizer" role but this feature doesn't seem to work yet. I will post this as a separate topic.

thanks
Steven

ssutankayo’s picture

Title: Cannot invite new members. » Cannot invite new members to another role
Status: Fixed » Active

I'm using this feature to invite members of an existing group onto a community site. I would like to add some new members directly having an "Organizer" role but this feature doesn't seem to work yet.

You may choose to add invited users to another role (in addition to the default role set in the general section) when they have been invited by a member of Organizer.

Steven

smk-ka’s picture

Status: Active » Postponed (maintainer needs more info)

What exactly isn't working as expected now?

ssutankayo’s picture

On Invite settings under Role Settings, I allow for Administrators to invite other members to an Organizer role by selecting that role under "Target Role".

Then when inviting new members I expected to see a way to select this new target role but there was no new selection available.

smk-ka’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

That's not how it works: all applicable role(s) will be automatically assigned upon registration of the invitee. That is, if the inviter is a member of multiple roles, the invitee will be assigned all of the configured target roles.

ssutankayo’s picture

somehow it's still not working for me. I have multiple roles assigned to Administrator. When I invite a new user, the new user is always assigned to the authenticated_user role only.

if you have any ideas what to check please let me know.
thanks

ssutankayo’s picture

In case anyone else has a similar problem, I found the promotion module allows me to do what I need to do. Unfortunately it requires users to type in a promotion code to be assigned multiple roles but it works.

cheers

schiavo’s picture

I have the same problem.
When invite a new user the roles configured in the admin/config/invite as default or in the seccion of the inviter's role not persist in the users_roles.
As I can see the invite module insert the role in this table, but a few steps after this the user_save() function delete it.