I've encountered same issue as here: http://drupal.org/node/1476814

I have separate registration path for profile type with image field. "Show on all user account registration forms. " is unchecked.

When trying to create account with image uploaded - role is not assigned. When entering identical information but leaving image field blank - everything is ok.

Upgraded ( replaced files, cleared cache ) to 7.x-2.x-dev - no results. Tried to downgrade to 7.x-1.x-dev - issue is still here.

It seems that issue appeared first after running cron update ~two weeks ago, although not sure about this.

Comments

Cellar Door’s picture

Finding the same here as well - I'm looking into it and will report back what I find

grasmash’s picture

I can confirm this bug on a clean installation. WIll look intol @Cellar Door, let me know if you find anything in the meantime.

Cellar Door’s picture

I've got a pending patch created by my team but I have yet to test in a live environment. Unfortunately I'm going to be on planes for the next 24 hours so I'll try to test and post it this weekend.

oskylark’s picture

Thanks for posting this issue and in particular referencing the previous closed issue that I'd missed.

I'm getting the same bug using 7.x-2.0-beta2 when using the Location module on a profile2_regpath registration form. In this instance I am capturing the user's country via the select list provided by Location. However, when selecting a country other than the default, an AJAX call is made by Location (haven't looked into why it finds it necessary to do this). Leaving the country selection as it is or removing Location from the registration form altogether removes the bug.

So it would seem to confirm any kind of AJAX call on the registration form is currently breaking the assignment of user roles.

I'm following so will be happy to help with any testing of patches.

grasmash’s picture

Status: Active » Fixed

I've pushed a change to 7.x-1.x-dev and 7.x-2.x-dev that seems to have fixed this issue. Please let me know if you experience any further problems.

oskylark’s picture

I can confirm the latest 7.x-2.x-dev fixes the bug for my setup. Many thanks.

pawelgur’s picture

Confirming that 7.x-2.x-dev have this bug fixed. Thanks

Status: Fixed » Closed (fixed)

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