Problems and solutions that occur when “Force WP User Synchronization” is checked in Simple WordPress Membership

avatar
Share This:

The following error occurred when I turned on the “Force WP User Sync” setting.

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: abcdef

This 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 admin and request them to check your username in the WP Users menu to see what happened with the WP user entry of your account.

The site admin can disable the Force WP User Synchronization feature in the settings to disable this feature and this error will go away.

You can use the back button of your browser to go back to the site.

On the other hand, when this setting was removed, when logging in using the Simple WordPress Membership shortcode,

[swpm_login_form]

a problem occurred where the login was not recognized and paid articles could not be viewed.

Solution

  • Disabled Wordfence Login Security plugin
  • Disabled the “image authentication” setting of the Siteguard plugin

Now, even if “Force WP User Synchronization” is checked, no errors occur and paid articles can be viewed normally. This shows that Simple WordPress Membership members are stored on a separate system from WP users. Therefore, I understand that the setting to sync with WP users in Advanced Settings is important, and that it is necessary to check “Force WP User Sync.”

Summary

If you encounter an issue where you are being treated as if you are logged out even though you’re logged in, first check the “Force WP User Sync” settings. Next, it’s a good idea to verify whether there is a conflict between plugins. In my case, the Wordfence Login Security plugin and the Siteguard plugin were involved.

While plugins are useful, they can sometimes cause unexpected problems by interfering with each other. It is important to create the optimal operating environment while checking detailed settings and compatibility.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

2 × 5 =