Home Forums WoodMart support forum Error on social login

Error on social login

Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • #146973

    Artem Temos
    Keymaster

    Could you please send us a screenshot from your Facebook configuration where both URLs are inserted so we can check?

    #146980

    Ricable
    Participant

    You have the administration role on the app, you can check directly.

    #146992

    Artem Temos
    Keymaster

    Something on your website breaks PHP super global $_SERVER array and overrides the value of REQUEST_URI key in that array. This variable contains URI parameters. For example on the page https://website.com/page/id/some/other it will contain /page/id/some/other but it doesn’t work in this way on your website. Check the screenshot https://gyazo.com/f10575a21c864c3315bcd996647d57e3 as you can see, it misses the /en/ part.
    It may be due to some plugins or problem with your server.

    #148392

    Ricable
    Participant

    Hi,

    We have done a bit of testing these days and it seems that the problem is in the user registration / login done with the following Like URIs:

    https://www.ricable.com/en/mio-account/facebook/int_callback
    https://www.ricable.com/de/mio-account/facebook/int_callback

    where we have / en e / de of the sites translated into different languages.

    At this link you can see the settings in Facebook: https://gyazo.com/37afa40598df46b99a85f213983aa976

    The Login procedure works correctly until the Facebook credentials are entered, after this step, when you return to the site, you end up on the page not found and the registration or login are not successful. (Everything works correctly in Italian)

    Could this problem be due to the fact that for social login different URIs are used?

    #148406

    Ricable
    Participant

    Hi team,

    I’m from Weglot plugin, Ricable customer gave me access here so we can find a solution.

    So, yes indeed Weglot changes the REQUEST_URI and removes the ‘/en’
    Where is this used and how does it cause the 404 ? If we need, Weglot can output different things on the /en page

    Best

    #148418

    Artem Temos
    Keymaster

    Hello,

    Any plugin should not override system PHP global variables. They have to fix this on their side, otherwise, our social login function will not work.

    Kind Regards

    #148445

    Ricable
    Participant

    Hello,

    I’m not sure you can dictate what can be or not be done in PHP, our plugin works very well this way. I’m ok to try to find a solution but I’ll need to know how the fact that this is variable has not the ‘/en/’ causes the error

    Thanks

    #148449

    Artem Temos
    Keymaster

    Of course, we don’t dictate you and you are able to do anything with your PHP on your website. But our theme uses this variable and if this variable is broken on your website, the thing will be broken too. It is used in the file wp-content/plugins/woodmart-core/inc/auth.php https://prnt.sc/peusml

    #148865

    Ricable
    Participant

    Hey, just to be clear, I’m no the client. I’m from Weglot plugin support. The client (website ricable), gave me access to this support so we can talk and find a solution.

    I’m trying to understand exactly how you are using this variable and why this cause the error.

    #148881

    Artem Temos
    Keymaster

    Hi,

    We use this variable to get the current page URL as already shown on the screenshot https://prnt.sc/peusml
    Then we match it with the account URL to see if it is correct http://prntscr.com/pfx3is

    Regards

    #149034

    Ricable
    Participant

    Solved, thanks

    #149035

    Artem Temos
    Keymaster

    You are welcome.

Viewing 12 posts - 31 through 42 (of 42 total)

The topic ‘Error on social login’ is closed to new replies.