Hi,
There is something erroneous going on between Rules and Entity Plus when a user registers:
If the Register-button is clicked:
-------------------------------------------
The rule:
In written text, the actions are:
-
Assign role:
User account: [site:current-user], Roles: Initiate
- This doesn't actually set the role -
Set data value to a field:
[site:current-user:field-my-code]
-[random:hash:crc32b]
- The error disappears when removing this action (or anything that sets data).
In principle, the user gets through. The account appears in "Manage user accounts", but without any role.
Side notes:
I don't fully understand Entity Plus yet, I'm only focused on native account fields.
I don't know what could be cross-interacting. I have no other registration modules on. On another Backdrop site, this rule fires fine. Any ideas, suggestions, solutions?
Hi Graham,
Done. In a nutshell: The
[account]
selector is for the registering account instance, while[site:current-user]
is for an already existing user.I think it's a pretty logical error that can happen when using a wrong data selector - It can't set something that doesn't exist. :-)
Cheers, and thanks.