Home › Forums › WoodMart support forum › Error on social login
Error on social login
- This topic has 41 replies, 2 voices, and was last updated 5 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 27, 2019 at 7:21 am #146973
Artem TemosKeymasterCould you please send us a screenshot from your Facebook configuration where both URLs are inserted so we can check?
September 27, 2019 at 7:47 am #146980
RicableParticipantYou have the administration role on the app, you can check directly.
September 27, 2019 at 8:39 am #146992
Artem TemosKeymasterSomething 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 pagehttps://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.October 4, 2019 at 9:45 am #148392
RicableParticipantHi,
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_callbackwhere 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?
October 4, 2019 at 10:29 am #148406
RicableParticipantHi 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 pageBest
October 4, 2019 at 11:44 am #148418
Artem TemosKeymasterHello,
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
October 4, 2019 at 1:41 pm #148445
RicableParticipantHello,
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
October 5, 2019 at 1:44 am #148449
Artem TemosKeymasterOf 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/peusmlOctober 7, 2019 at 9:49 am #148865
RicableParticipantHey, 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.
October 7, 2019 at 11:12 am #148881
Artem TemosKeymasterHi,
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/pfx3isRegards
October 8, 2019 at 8:59 am #149034
RicableParticipantSolved, thanks
October 8, 2019 at 9:01 am #149035
Artem TemosKeymasterYou are welcome.
-
AuthorPosts
The topic ‘Error on social login’ is closed to new replies.
- You must be logged in to create new topics. Login / Register