froger-me / wp-remote-users-sync

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

Can I use `WP Remote Users Sync` in a local environment? #79

Open shunsuke-kawai opened 8 months ago

shunsuke-kawai commented 8 months ago

I am using www.lvh.me to build a Wordpress multisite in a local Docker environment. It is a subdomain system and the sub is the address jmas.lvh.me.

In that state, I installed WP Remote Users Sync and set up bi-directional user synchronization.

When I add a user on jmas.lvh.me, I get the following log output and nothing is synced.

2023-12-27 09:35:40 - Info - Create action - firing action for username "test10"
2023-12-27 09:35:40 - Info - Renewing token for http://www.lvh.me
2023-12-27 09:35:41 - Warning - Failed to renew token for http://www.lvh.me - retrying...
2023-12-27 09:35:44 - Info - Token created: site http://www.lvh.me - action "Create"
2023-12-27 09:35:45 - Info - Update action - firing action for username "test10"

Also, when I run the outgoing test, I get the following log output. It does not seem to recognize it as a separate site.

2023-12-27 09:38:32 - Success - Access granted - http://jmas.lvh.me
2023-12-27 09:38:32 - Success - Ping received for activated action "Login" from http://jmas.lvh.me with remote IP 127.0.0.1 (incoming)
2023-12-27 09:38:32 - Success - Ping success for action "Login" from http://www.lvh.me with remote IP 127.0.0.1 (incoming)

The same synchronization did not happen with the subdirectory method.

Is it possible to use WP Remote Users Sync in a local environment?

froger-me commented 8 months ago

I don't know if it is since I developed with a live dev server. Please let us know if it is!