Support

Home Forums WP User Integration EE4/WP User Integration-registering users with existing accts – fix not working

EE4/WP User Integration-registering users with existing accts – fix not working

Posted: March 3, 2016 at 2:53 pm

Viewing 5 reply threads


Heather Acton

March 3, 2016 at 2:53 pm

Hi there,
We’ve attempted the fix in this thread https://eventespresso.com/topic/disable-email-check-for-logged-out-customers/

However it’s not working. We have it installed as a plugin that is activated.

Looking into this, there is no longer a function that matches ED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check. It looks like the function in WP User Integration has changed. There’s now a callback function for FHEE__EE_SPCO_Reg_Step_Attendee_Information___process_registrations__pre_registration_process in EED_WP_Users_SPCO.module.php starting at line 273.

How would this fix be modified to have the same effect with this new method of implementation?

Thanks much,
Heather


Heather Acton

March 3, 2016 at 3:09 pm

Just to clarify – the situation we’re trying to fix is that we want to let logged in users successfully register other users on the site via multiple registration. Currently we’re getting this error when a logged in user tries to register someone, in addition to themselves, with an email address that’s already a user on the site:

An error has occurred:

You have entered an email address that matches an existing user account in our system. You can only submit registrations for your own account or for a person that does not exist in the system. Please use a different email address.


Josh

  • Support Staff

March 3, 2016 at 3:17 pm

Hi Heather,

It turns out that the
EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check

filter was added very recently and you’ll find it in the WP Users Integration add-on’s EED_WP_Users_SPCO.module.php file on line 378. Which just so happens to be inside the verify_user_access() method that’s a callback function for the other filter you mentioned.

Does the site have the current version of the WP Users integration add-on?


Josh

  • Support Staff

March 3, 2016 at 3:53 pm

Sorry I didn’t catch your update. Here’s the code in question from the other thread:

Since you’re looking to allow a logged in user to register another registration for another user that already has an account, you could try removing the ! is_user_logged_in() check and simply do:

return false;

To be honest, this particular use case hasn’t been tested though. You may want to disable the Always sync contact information with WP user profile? in Event Espresso > Registration Form > User Integration Settings. This will help avoid any issues where the individual registering for a group could unintentionally update another’s contact record to have incorrect information.


Heather Acton

March 3, 2016 at 6:01 pm

Josh – thank you! Modifying the filter to only return false did the trick (and I had a “duh” moment for not thinking to do that). I did disable the sync of info too – good warning. Thanks much – we seem to be in working order.

-Heather


Josh

  • Support Staff

March 4, 2016 at 6:42 am

You’re welcome Heather.

Viewing 5 reply threads

The support post ‘EE4/WP User Integration-registering users with existing accts – fix not working’ 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.

Event Espresso