installed the module and set the permissions so that all existing roles have access to "apply for role"; only admin role has access to the administer and approve functions. On the "Apply for role administration" page I selected four out of 10 existing roles for which logged-in users can apply.

On the My Account -> Apply for role page the only thing that's displayed is: "No roles are available at this time."

Doesn't matter who's logged in or his/her existing role, that's all that will display; also disabled all other contributed modules and no change. Tried both 5.x-1.0 and -1.x-dev versions with Drupal 5.7.

Any suggestions? Have I overlooked something obvious in the set-up?

CommentFileSizeAuthor
#8 apply_for_role.module.patch787 bytesSoren Jones

Comments

Soren Jones’s picture

Go to admin/settings/apply_for_role (or Administer >> Site configuration >> Apply for role administration) to enable roles for the Apply for role module.

Soren Jones’s picture

This is a significant usability issue. Maybe user 1 or anyone with administer apply for role permissions should be provided with a link to admin/settings/apply_for_role from user/%/apply_for_role if there are no roles configured.

svilen’s picture

The roles displayed on my account -> apply for role will be filtered by the roles user already have.

CtrlAltDel911’s picture

As I described above, I did select several roles to make them available to Apply for Role; I think the UI and readme.txt file are both more than adequate.

I just can't get it to work no matter what I try, including activating it on a virgin Drupal install with no other non-code modules. Could this be a PHP-related problem? The server is running 5.2.5 w/ Zend memory mgr enabled.

I did try ver 6.x-1.x on a Drupal 6 test-bed installation on my notebook and that worked OK; it did throw an error on the admin/settings/apply_for_role page until I checked at least one role, but after that it worked as advertised.

CtrlAltDel911’s picture

3/9/2008 Update: OK, after experimenting some more, I'm curious if *anyone* has successfully installed this module on Drupal 5.7 because it just does not seem to work.

As a test I created a brand new physical hosting account for an unused domain, installed Drupal 5.7 and enabled Apply for Role as the only module (other than those enabled by the Drupal install); after configuring the module and its permissions, it still displays "No roles are available at this time."

I then deleted everything from the server and database and repeated the exact same process w/ Drupal 6 and the Apply for Role module worked almost flawlessly. FWIW, I think there's a significant problem w/ the 5.x version.

Soren Jones’s picture

Line 208
-if (!is_array($filter_roles)) {
+if (is_array($filter_roles)) {

I'll submit a patch later.

Soren Jones’s picture

CtrlAltDel911,

I misread your original post. I should have read it more carefully. I'm not using 5.x-1.0 or -1.x-dev. But if I'd read your original problem more carefully I would have realized something was up. Anyway, thank you for your persistence.

Soren

Soren Jones’s picture

Component: User interface » Code
Assigned: Unassigned » Soren Jones
Category: support » bug
Status: Active » Needs review
StatusFileSize
new787 bytes

A patch against -dev.

svilen’s picture

yes. a stupid bug.
v.5 dev is now commited with the patch.

Soren Jones’s picture

Status: Needs review » Fixed

CtrlAltDel911,

Thanks again for your persistence on this one.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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