Under "administer >> settings >> automember" the option for setting a "Max number of users in target role" claims that "If you do not wish to limit the number of members in the target role, enter -1." However, if this value is given to the module it complains "There are no vacancies at this time."

Temporary Workaround: Set this value to a number equal to or higher than the number of users in the source role.

CommentFileSizeAuthor
#6 automember_invite_debug.patch1.09 KBnjivy

Comments

njivy’s picture

I updated CVS with a small tweak that should solve your problem. You saw the message on the invitation page, not in the log, right?

grohk’s picture

Sorry, yes njivy, this was on the Invite page. I upgraded to the newest CVS 4.5 version 1.14.2.8 but I seem to be still seeing the "There are no vacancies at this time." message. I will wait a bit until after the cron run and see if it persists.

grohk’s picture

Weird...the problem persists. I think we should reopen.

grohk’s picture

I think I noticed something interesting. The error message is not the one near line 875 which reads: "There are no vacancies. Please check again later." The Invite members page is saying "There are no vacancies at this time." which appears near line 1011.

njivy’s picture

Assigned: Unassigned » njivy

Excellent. I mean, that's a good hint. ;] Let the hunt begin ....

njivy’s picture

StatusFileSize
new1.09 KB

I cannot reproduce the problem. Would you try this debugging patch and tell me what appears in the 'special' log? You can write to me at nji@njivy.org if you would like to pursue this out-of-channel.

njivy’s picture

I should have gone to bed and looked at it with fresh eyes. The problem was an incorrect logic construct. It should be: ($max_members < 0) || (count($in_target) < $max_members). I updated the DRUPAL-4-5 edition in CVS.

Thanks for your patience, grohk.

grohk’s picture

Thank you njivy!