Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Cellar Door CreditAttribution: Cellar Door commentedFinding the same here as well - I'm looking into it and will report back what I find
Comment #2
grasmash CreditAttribution: grasmash commentedI can confirm this bug on a clean installation. WIll look intol @Cellar Door, let me know if you find anything in the meantime.
Comment #3
Cellar Door CreditAttribution: Cellar Door commentedI'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.
Comment #4
oskylark CreditAttribution: oskylark commentedThanks 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.
Comment #5
grasmash CreditAttribution: grasmash commentedI'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.
Comment #6
oskylark CreditAttribution: oskylark commentedI can confirm the latest 7.x-2.x-dev fixes the bug for my setup. Many thanks.
Comment #7
pawelgur CreditAttribution: pawelgur commentedConfirming that 7.x-2.x-dev have this bug fixed. Thanks