Posted: July 2, 2017 at 1:52 am
Hi there, I got the following error randomly the other day:
The way we run courses, I am worried that someone registering for a Level 1 course might not be able to register themselves for a Level 2 course. Do you have any advice? Thanks. |
|
Hi Peter, With the EE User integration add-on if the user is logged in they can’t add registrations for other users that already have accounts, we call this the user traffic cop feature. Another user asked about disabling that feature and we have a filter available t do so posted here: You likely want the second function which disables the check for all users. |
|
OK cool. I have inserted: //* Disable email match check for all users into the site plugin. I notice that the error still comes up though: “An error has occurred: Should I have entered more of that code from the other post? Kindly. |
|
Hmm, no you shouldn’t. So to confirm your adding that code to a custom functions plugin, not your themes |
|
That is correct. Is there a way I can link you to it? Worth noting I saw in the other thread you linked to – they mention a toggle switch, but I haven’t toggled anything. All I have done so far is the addition of that line to the site custom plugin. I didn’t touch the functions.php file. |
|
No, but as long as its within a plugin and that plugin is activated that’s fine.
Do you mean ‘User sync option’? That option is within Event Espresso -> Registration Form -> User Integration Settings and should look like this – http://take.ms/uCb7v |
|
OK cool thanks Tony. I took a look at my settings page like in your Take.ms screenshot, and noticed that the only setting on the page I have different is the very first setting, “default setting for login required on registration”. I have mine set to No, because the way we run our page users don’t need to confirm accounts or anything… We just want to keep them organized together in the back as wordpress users. I didn’t want them getting emails about having to become a user or anything like that. Sorry I’m still just new to this and am trying to learn as I go. Thanks, |
|
Hi Peter,
That option sets the default value used for any new events you create. If its set to Yes it means that users must be logged in to register. So your only using the WP User Integration add-on to auto create users as they sign up to an event? Just to note, EE doesn’t send any emails stating the user must become a user,. If the above is enabled it will not allow you to register with logging in or creating an account first but no emails. |
|
Correct, I was just using WP User Integration to auto create new users. I have turned “default setting for login required on registration” to yes, but now when registering from a known email address that has registered already, I get the error message: “An error has occurred: Is there a way to make it so that the same user could use the same email address to sign up for multiple courses? We would prefer if they go through the checkout simply once for each individual student they sign up, and with the ability to do so for multiple courses. If it helps I can message you privately about what it is that our business is trying to do exactly with respect to the order in which they sign up for courses – you might have some alternate suggestions because you know EE4 a lot better than us. Thanks. |
|
Hi Peter, The error message can be avoided if you (or they) log in before registering for an event (if they already have an account). You can also avoid the error by adding the code from this gist: https://gist.github.com/joshfeck/1131145859a3fab58f4d#file-disable_email_match-php to a functions plugin. |
|
Thanks. I’ve added that code and it seems to be working great. I’ll keep an eye on it and open a new thread if need be. Again, thanks kindly! |
|
The support post ‘System Error’ 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.