When I first tried to use a user registration path, I got

warning: in_array() [function.in-array]: Wrong datatype for second argument in autoassignrole.module on line 461

I then discovered that I have to go into the content profile admin page for the content type to connect the profile with the path, but it won't let me. The two proper checkboxes are showing, but I get

warning: Invalid argument supplied for foreach() in includes/form.inc on line 1211.

and it won't save the checked box. If I comment out the #default_value in your form_alter for the content_profile admin form, the error goes away, but the registration page is still not working. There seems to be a problem with content_profile_get_settings($type, 'autoassignrole_use') working. Is there some specific version of the module that establishes the 'autoassignrole_use' with content_profile? It doesn't seem to have had a new version in a long time.

Comments

willeaton’s picture

I had major issues here. I have autoassignrole.module working with content_profile.module and content_profile_registration.module. The idea is that the standard register form automatically gives you a specific role, and that the profile fields appear in the registration form. I changed the standard role and all of my fields disappeared. There appears to be an issue in content_profile_registration_form_alter().

Simply changing...

$form += array('#content_profile_registration_use_types' => $default_types);

to

$form['#content_profile_registration_use_types'] = $default_types;

Fixed all my problems and my fields re-appeared

mike.davis’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)

Looks like this issue has been fixed for this issue: #699888: Auto Assign Role paths is broken.

This has been committed but needs a release for 6.x-1.x, I'll be looking at doing a 6.x-1.x release soon hopefully, so this should sort this issue out.