• Resolved squarestar

    (@squarestar)


    I’m testing this plugin on 2 dev sites that are linked in one direction. Currently I have only this plugin active along with the 2024 official theme.

    I’m getting the error 2024-01-15 14:40:00 - Alert - Login action failed - received invalid data When I try logging in on the source site. The data in the log is:

    Array
    (
        [data] => Array
            (
                [username] => test
                [remember] => 0
                [base_url] => https://subdomain.wpengine.com
            )
    
    )

    The outgoing site log reports no error in the log:

    2024-01-15 14:39:59 - Info - Added https://learntmirldev.wpenginepowered.com/wprus/login/?wprusdata=Cdg_ ... 5c5 async URL in admin_footer

    I’d be grateful for any help in debugging this. I know the plugin works but I’ve set it up correctly and now I don’t know what is invalid about the received data.

    All the tests on the Remote Sites tab succeed.

    Cheers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter squarestar

    (@squarestar)

    After adding some debugging code to the plugin I finally discovered that the reason login was failing was that I had the “Force Login Redirects & Logout Everywhere” setting checked on only the destination site.

    As I wasn’t using Safari or iOS I didn’t realise this would matter, but maybe it’s actually because the 2 sites weren’t set to the same value?

    Anyway, problem solved.

    Plugin Author Alexandre Froger

    (@frogerme)

    Indeed, as stated on the page:

    WARNING: Make sure these settings are the same for all the websites to synchronise.

    Thread Starter squarestar

    (@squarestar)

    Yep, my bad.

    Plugin Author Alexandre Froger

    (@frogerme)

    Sorry – I did not mean to sound dry, and I’m glad you found a solution.
    I left this here for whoever might read the thread, as an indication ??

    Thread Starter squarestar

    (@squarestar)

    No worries ?? It’s a great plugin – thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Login fails’ is closed to new replies.