Simple Membership Plugin › Forums › Simple Membership Plugin › dissonance between membership login and wordpress login
- This topic has 13 replies, 3 voices, and was last updated 1 week, 3 days ago by
admin.
-
AuthorPosts
-
July 17, 2026 at 10:28 pm #32205
cowiz
ParticipantHello, please i have an issue, when i log in via my simple membership form, wordpress does not recognize i am logged in and vice versa
July 18, 2026 at 1:28 pm #32206The Assurer
ModeratorWhat you describe usually points to the WordPress user session and the Simple Membership (SWPM) session not being synchronized.
Normally:
Logging in via the Simple Membership login form should also log the user into WordPress.
Logging in via the WordPress login page should also log the user into Simple Membership (if synchronization is enabled and the accounts are linked).Go to Simple Membership → Settings → Advanced Settings.
Make sure Force WP User Synchronization is enabled.This setting ensures that:
Logging into WordPress also logs the user into Simple Membership.
Logging out of one logs the user out of the other.
The login cookie duration is synchronized as well.July 19, 2026 at 4:15 am #32208cowiz
ParticipantThis is the error messgae i get when i activate that setting and try to connect with the membership form:
Error! This site has the force WP user login feature enabled in the settings. We could not find a WP user record for the given username: ariolodin@gmail.comThis error is triggered when a member account doesn’t have a corresponding WP user account. So the plugin fails to log the user into the WP User system.
Contact the site administrator and ask them to check your username in the WP Users menu to see what happened with the WP user entry for your account.
The site administrator can disable the Force WP User Synchronization feature in the settings to disable this feature and this error will disappear.
You can use your browser’s back button to return to the website.
July 19, 2026 at 5:32 am #32211admin
KeymasterThat error is actually the clue here. It means the member account exists in SWPM but has no matching WP User record, so the forced WP login fails.
Please try what the message suggests: take the username value from the error (ariolodin@gmail.com) and search for it in the WP Users menu (Users → All Users). Do you see a WP User entry for that username? If not, that missing WP user is the cause, let us know and we’ll advise on restoring it.
July 19, 2026 at 10:51 am #32212cowiz
ParticipantI have searched the username in all users and i have found it, yet the error messgae says it is absent.
July 20, 2026 at 5:42 am #32213admin
KeymasterDid you import any users into this site, or were they created directly through the Simple Membership plugin? During an import, invisible whitespace or other hidden characters in a field value can sometimes cause this type of mismatch.
As a test, delete the affected user (from WP users interface) and also from the SWPM interface. Then manually add the member through the Simple Membership admin interface:
https://simple-membership-plugin.com/manually-adding-members-site/July 20, 2026 at 2:55 pm #32214cowiz
ParticipantAll the members are created through simple membership
July 22, 2026 at 6:17 pm #32215cowiz
Participant??
July 23, 2026 at 1:22 am #32216The Assurer
ModeratorDid you do what we have suggested?
1. Turn on WP and SWPM user account syncing. This will ensure any new SWPM registered users are properly synced.
2. Delete a user that was created before you turned on account syncing and manually recreate it using the procedure @admin described. Note: the affected user(s) will need to reset their passwords.
July 30, 2026 at 5:49 am #32221cowiz
ParticipantIt still doesn’t work. I added a member just before activating the synchronization. And when the sync was on, i tried to login with that member but it displayed the usual error message saying the user cannot be found in wordpress(wp users). I then added another member while the sync was still on and tried to login again. But still, i got the same error message yet again.
August 1, 2026 at 1:46 pm #32229cowiz
Participant??
August 2, 2026 at 12:24 am #32230The Assurer
Moderatordelete ALL users added BEFORE sync was turned on and re-add them.
When adding new users, the email addresses must not currently exist on the WordPress side. In other words, any new members added must have email addresses not already registered in SWPM and WordPress.
August 6, 2026 at 4:49 am #32239cowiz
Participantplease i wish to know if there is a way to add the logout link of membership into my nav bar? Such that when a user is logged in, he must not always use the logout button beneath his profil info but can use the a link in the nav bar?
August 7, 2026 at 6:38 am #32241admin
KeymasterPlease check this documentation to see if this is helpful:
https://simple-membership-plugin.com/creating-member-logout-link/ -
AuthorPosts
- You must be logged in to reply to this topic.