Two different ways for my site registration.
| Project: | Membership types and registration modification |
| Version: | 5.x-1.2 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hello!
I try to provide different ways for my site registration.
I have two roles: Person and Company, with no common fields.
I create two new content types:
register_company and register_user
For each this custom content type I set:
Maximum population: 1
[v] Use this content type as a nodeprofile for users
Default options: all turn off
Attachments: off
Inside of "Node profile" tab:
[v] Integrate this node profile with user categories.
[ ] Show this node profile during user registration. (if I select this
option than this node profile will be seen for any role choice)
User page display style:
(*) Don't display this nodeprofile on the user account page
Each content type has some different fields (as I said above there is no
commn fields for each role)
Than I create two pageroutes: company-login-route and person-login-route
Each pageroute I assign to nodefamily type (in Content type section)
according to role:
company-login-route to register_company
person-login-route to register_person
and set up access control:
Permit access to the pageroute for only this roles:
[v] anonymous user (for both pageroutes)
[v] authenticated user (for both pageroutes)
[v] Company (for company-login-route and off for person-login-route)
[v] Person (for person-login-route and off for company-login-route)
! Actually I need no more pages, so I didn't add any pages for both
pageroutes - is it wrong?
When I try to create new user, I make a choice for one of account roles
(Person or Company)
on a /user/membership_select?destination=user%2Fregister page,
then I see only a standart page.
Well-know warning show after registration
"user warning: Duplicate entry '0-3' for key 1 query: INSERT INTO
users_roles (uid, rid) VALUES (0, 3) in
/var/www/includes/database.mysql.inc on line 172."
When I edit profile of the user, created by one of that ways, than
I see no any roles selected.
BTW warning at the top of Edit tab: "warning: Invalid argument supplied
for foreach() in
/var/www/sites/all/modules/nf_registration_mod/nf_registration_mod.module
on line 934."
Module: nf_registration_mod 5.x-1.2 from Official releases
Can You help me what's wrong in my configuration?
Should I provide additional info?
Thanks!

#1
Try the dev release.
#2
Didn't hear back from poster, so things must be fine.