Posted: April 27, 2018 at 6:59 am
|
Hi, See |
Hi Paul, You probably would contact the plugin support that does the new user registration and ask for help with troubleshooting this. May I ask what’s the name of the plugin that handles the new user registration? |
|
|
Hi, It’s the eventexpresso plugin we’re using! Sorry the registration link was incorrect, it should be https://bhaa.ie/events/annual-membership-2018/ Regards, |
Hi there, Just to note, you need to update your SSL certificate, any user using Chrome to view your site will now see this – http://take.ms/Bfe6c
So when this happens, the user account is created and has the subcriber role assigned to it? Where are you setting the role that should be assigned to the user? Within the event, like this – http://take.ms/ySn8T — If you go to Event Espresso -> Registration form -> User integration settings. What is the ‘Default role for User Creation on Registration’ option set to there? |
|
|
Hi, At the global Registration Form > User Integration Settings level, we have the default role set to ‘Subscriber’. The text at this level states ‘On new events, when User creation is set to yes, this setting indicates what the default role for new users will be on creation. You can still override this on each event.’. On our specific Annual Membership event, I’ve over-written the settings and apply our custom ‘bhaa_member_2018’ role. It seems this custom setting is not always applied. Thanks for spotting the SSL cert, this was renewed during the week. |
Hmm, that’s strange. Ok, so starting from the beginning is there any possibility that these users already had a user account (based on the email address) in your WP Users? EE checks for existing user accounts and exits if it finds one, I know this sounds like a basic question but its really strange to get to the point in the code that adds a user and it does not have the role updated, even more so for ‘some’ registrants to experience this and not others. If you check one of the accounts this happened to you should see:
within the Bio of the user profile if EE created that user – http://take.ms/53KjS The user integration add-on has actions fired when either a user is created:
or updated:
I can give you some code that runs on both of those hooks, checks the user’s current role and the role set on the event and updates it if needed… but it as mentioned it would be really strange to get to that point without the role being set in the first place so I think there is something else at play here, just no idea what right now. |
|
|
Hey Tony, I did a quick check with this SQL query
but the field is empty in all cases. I’ll setup a new plugin with those hooks that you have provided and will add some logging details to track the user status in these cases. |
For all users? Or just the users that are having the problem? |
|
|
Tony, Can you take a look at this github PR https://github.com/emeraldjava/bhaa_ee_plugin/pull/2 Best Regards, |
Hi Paul, What if, for some reason I’d log Also, I’d do something like:
Writing the full WP_User object to the log will also save the users hashed password, thats up to you if you wish to do so but the above will give you the Registration, User ID and roles the user is assigned to. |
|
The support post ‘Ticket Capability Requirement’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.