member_id not matching user_id
-
Hi,
I was just looking through the database in my site because of an error concerning email addresses in a php function (unrelated to Simple Membership), and noticed that after a certain member_id, the user_id has stopped matching, with the member_id being mostly 1 different from the user_id, with one user having a difference of 2. Is this normal or should they be the same always? I am concerned because (a) there might be a problem in my site, and (b) if I need to do anything that involves user_ids in my theme functions I won’t be able to use the Simple Membership methods for retrieving member_id and then using that as user_id. My setup includes Buddypress and I do need to use functions to retrieve user_id a lot, sometimes not for logged in users. The site is still being tested so there are only 13 users, but do you have any suggestions what is causing this, and how to fix it? I can obviously manually alter the database now, but once we go live that is not practical.P.S. I have just looked through the support forum on your site and there are a couple concerning this issue, but as they are from 7 years ago I wasn’t sure if they are still applicable. If they are, I guess I will have to write a function to add the member_id to the user_meta table when users register, and a temporary one to do the same for current users. Then I can reference the member_id in the user meta for any other functions that require it. However some other fix would be preferable!
- The topic ‘member_id not matching user_id’ is closed to new replies.