I’m having big trouble with the registration of events in EE3. I’ve the Event Espresso – Members Addon installed so members can see their subscriptions in the frontend.
But when members are subscriping to an event a multiple insert happens into the wp_events_member_rel table. Multiple inserts with a different user-id then the user-id of the member. In some cases one of the double insert has the right userid.
This is quit disturbing: It’s looks ok in the wp_events_attendee table but the wp_events_member_rel isn’t correct. This gives really stranges result in the My Events page: Members see different members into their subscriptions list.
I’m looking into this, and the first thing I’ll check is if this was an issue that was fixed since EE 3.1.36. The current version of EE3 is 3.1.37.5. I’ll let you know what I find.
It looks like there have been some customizations made to a number of the registration page templates. Have any customizations been made to the Event Espresso core plugin or the Espresso Members plugin?
If so, can you let us know which files and functions may contain customizations?
You can disregard the above reply. I found the added functions in your copy of the Event Espresso plugin on your site in /event-espresso/includes/process-registration/payment_page.php in the creatememberportal() function, which isn’t a function that the official release of Event Espresso 3 includes.
Within the function it has this block of code, twice within a few conditionals:
Since the member’s add-on already runs a similar insert, your added code is more than likely what’s causing the duplicate entry.
If you or someone on your team did not add the custom code, you can contact the developer that made this and the other customizations for help on this, or you can try removing the above code. This isn’t code that we developed or can support.
Viewing 3 reply threads
The support post ‘Duplicate entry's in wp_events_member_rel table’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.