Support

Home Forums Event Espresso Premium User unable to register without logging in if user account exits in system

User unable to register without logging in if user account exits in system

Posted: December 4, 2023 at 10:46 am


Evergreen Nature Center

December 4, 2023 at 10:46 am

We want to allow users to register for events whether or not they have an account in the system. Our user reports:

“I am having a problem renewing my family membership for 2024. When I complete all the information, I am instructed to log in first as my email address is already in the system. So I log in and am then informed that I am recognized and all is good. But when I try to proceed to checkout, again I am told that I must log in first.”

This action is a registration for an “event”.

This is similar to two other items in the forum, but one doesn’t have the fix and the other requires modifying the code, which I’d rather not have to do.

See https://eventespresso.com/topic/i-cannot-log-in-to-register-event/ and https://eventespresso.com/topic/ee4wp-user-integration-registering-users-with-existing-accts-fix-not-working/

Thank you!
-Lisa


Tony

  • Support Staff

December 4, 2023 at 5:44 pm

Hi Lisa,

You need to add this code to the site:

https://gist.github.com/joshfeck/1131145859a3fab58f4d#file-disable_email_match_everyone-php

That single line of code on line 4 of the second snippet disabled the check for a user account.

You can add that to a custom functions plugin on the site and we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Note that you are not modifying EE’s code here, you are hooking in and changing how it functions.


Rio

  • Support Staff

December 4, 2023 at 7:35 pm

I did try on my site and i cannot reproduce the problem describe. Did you try to test it too? did you receive the same error?

Can you send us the log-in you used or create new one for us.

Can you also do some basic trouble shooting, such as checking theme/plugin conflict.

You can use https://wordpress.org/plugins/health-check/ or any similar plugin.

You can do the above using Troubleshooting mode:

Tools -> Site Health -> Troubleshooting -> Enabled Troubleshooting mode.

That will disable all plugins and switch to a default theme and then allow you to enable specific plugins in troubleshooting mode. Once disabled you will revert back to the current state.

You can also check this documentation. https://eventespresso.com/wiki/troubleshooting-checklist/

Let me know what happen.

thanks


Evergreen Nature Center

December 11, 2023 at 2:13 pm

I followed the instructions for creating a sitewide plugin folder and file, pasted the code into it, and checked the permissions. I cannot see the plugin in the WordPress Admin Plugin list.


Tony

  • Support Staff

December 11, 2023 at 2:56 pm

Post the full content of your plugin file to PasteBin and then include the link here, I’ll take a look.


Evergreen Nature Center

December 12, 2023 at 10:17 am

It’s really short, so I can paste it right here:

<?php
//* Please do NOT include the opening php tag, except of course if you’re starting with a blank file
//* Disable email match check for all users
add_filter( ‘EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check’, ‘__return_false’ );


Tony

  • Support Staff

December 12, 2023 at 5:18 pm

You’re missing the code shown at the beginning of the snippet:

<?php
/*
Plugin Name: Site plugin for myexamplesite.com
Description: Site specific code for myexamplesite.com
*/

WordPress parses to show the name and description of the plugin in Dashboard -> Plugins.

Plugin Name: and Description: need to stay as they are but the values set for them can change to whatever you want, for example:

<?php
/*
Plugin Name: A custom functions plugin for Event Espresso
Description: This plugin holds custom functions to change EE's default behaviour
*/

add_filter( ‘EED_WP_Users_SPCO__verify_user_access__perform_email_user_match_check’, ‘__return_false’ );


Evergreen Nature Center

December 14, 2023 at 12:44 pm

Ah! Thank you so much – that did the trick. I was thinking those were comments, but of course they weren’t. All is working now. 🙂

The support post ‘User unable to register without logging in if user account exits in system’ 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