froger-me / wp-remote-users-sync

Synchronise users across WordPress websites
GNU General Public License v3.0
72 stars 33 forks source link

Subsite user not syncing on main site /network in Multisite #33

Closed Hsherazch762 closed 10 months ago

Hsherazch762 commented 3 years ago

Hi there, Hope you are doing well i need to discuss and issue and hope so you will give me a solution for it. I have setup Multisite on server Main site: https://aletere.com/ sub-site: https://sub.aletere.com/

I just installed your plugin but when i added a user on sub-site i can’ see it on the main site users list. Please give me a solution. Also tell me should i need to install a plugin also on the sub-site.Just asking as i also installed it on subdomain site.

ptrsmk commented 3 years ago

Did you Network Activate the plugin or activate it separately on each site?

qstudio commented 3 years ago

this plugin - if network activated - reads from the wrong tables for it's own settings, like logs and nonces, so you need to fork it and use base_prefix - instead of $wpdb->prefix - also for user and usermeta tables.

A fix could be made to wrap the prefix selection in some wp API like is_plugin_active_for_network

qstudio commented 3 years ago

This patch tries to address multisite issues - https://github.com/TotalAccessHealth/wp-remote-users-sync

froger-me commented 10 months ago

fixed in 2.0