froger-me / wp-remote-users-sync

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

Login not working from one site to another? #65

Closed janboen closed 1 year ago

janboen commented 1 year ago

See below... This is what happens when login to academy.kiwanis.eu and it wants to login to kiwanis.eu. BTW only on academy do we have a forms system deployed and we maintain an extendes set of user details, kiwanis.eu serves other purposes but users must be logged in to get access to members only info.

2023-03-20 16:57:05 - Info - Added https://kiwanis.eu/wprus/login/?wprusdata=mCJGSdqifagEGUeTfmm3SyYgIeNn_j_msEF6nxt9PjAjP8Z_Iw_dStL3GMHsLCXkyeomNo7XL_dDdtDkAgUJstmgXB76R1V0CD8baAYD_kGxkLEvB5orseDKy3j%2BYQ6UGffu6vbi6VoN3f3%2BgQeGTtEnzTwY6exp_zWdvIQ17PS2dxuUeBoqq2ZNJwQjidn%2B&token async URL in wp_footer 2023-03-20 19:29:52 - Info - Login action - enqueueing asynchronous actions for username "Eva L." 2023-03-20 19:29:54 - Info - Renewing token for https://kiwanis.eu/ 2023-03-20 19:29:55 - Warning - Failed to renew token for https://kiwanis.eu/ - retrying... 2023-03-20 19:29:55 - Alert - Failed to renew token for https://kiwanis.eu/ 2023-03-20 19:29:55 - Info - Response data received from the remote site:

    Array

( [0] => Array ( [headers] => Array ( [date] => Mon, 20 Mar 2023 19:29:55 GMT [server] => Apache/2.4.55 () OpenSSL/1.0.2k-fips [x-powered-by] => PHP/7.4.33 [expires] => Thu, 19 Nov 1981 08:52:00 GMT [cache-control] => no-store, no-cache, must-revalidate [pragma] => no-cache [set-cookie] => PHPSESSID=ffjpckcsct7sl1ga5mtu8udkri; path=/ [upgrade] => h2,h2c [content-length] => 0 [content-type] => text/html; charset=UTF-8 )

        [response_code] => 200
        [response_message] => OK
        [body] => 
    )

)

2023-03-20 19:29:55 - Alert - Failed to renew token for https://kiwanis.eu/ 2023-03-20 19:29:55 - Info - Response data received from the remote site:

    Array

( [0] => Array ( [headers] => Array ( [date] => Mon, 20 Mar 2023 19:29:54 GMT [server] => Apache/2.4.55 () OpenSSL/1.0.2k-fips [x-powered-by] => PHP/7.4.33 [expires] => Thu, 19 Nov 1981 08:52:00 GMT [cache-control] => no-store, no-cache, must-revalidate [pragma] => no-cache [set-cookie] => PHPSESSID=1hnqu4cva21jdt0q5g4mqvp9i4; path=/ [upgrade] => h2,h2c [content-length] => 0 [content-type] => text/html; charset=UTF-8 )

        [response_code] => 200
        [response_message] => OK
        [body] => 
    )

)

2023-03-20 19:29:55 - Info - Added https://kiwanis.eu/wprus/login/?wprusdata=NrYkxbFuHAM%2BmBpq4t2GzCTyBYTvWHUejI%2BbYiZvouB_5btGb1Ngr1W3LcgbhdHe7Sg1ealcaVsFzB8LS2x8%2BnDFcyUTKhcfwS8IP6%2BmJ6UFUQio1yCjs8lMbk1343K4G8OxNh3BpivOg5NVLCriKRXU%2BKwYpmPuiA76C6R0UH8%3D&token async URL in wp_footer

janboen commented 1 year ago

It seems that on one site the wp_wprus... tables were not created. By completely removing the plugin and installing it again the problem was finally solved.

pol-pm commented 1 year ago

It seems that on one site the wp_wprus... tables were not created. By completely removing the plugin and installing it again the problem was finally solved.

Thanks for sharing @janboen

I will be trying to implement this on my 3 sites in the next few weeks.