• Resolved theputul

    (@theputul)


    I have problem with two sites with G+ login. They are in different hosts. Some common for the sites are:
    -Both are placed in subdirectory
    -same method of G+ oauth obtain (seen your blog and followed)
    -Site url for both starts with www
    -Same theme and mostly all plugins are same.
    Now problems are:
    1. Site 1 logs in properly for commenting. But using login meta of wordpress, it logins properly but rediects to https://www.site1.com/subdir (means page not found).However, login still active and can be logged out.
    2. Site 2 logs in for commenting, but nothing happens, still loads the same page with the G+ button. Using login meta gives same result as site 1, but if browsed the site I see no login active.

    I want to tell you a minor difference in subdirectory name. Site 1 subdirectory is a addon domain and path is site1.com/subdir. Site 2 is a subdirectory of a root domain with path /subdir.

    I am totally confused.
    What may be the causes? Is there any server issue like php.ini?
    I somewhere read to put canonical urls in google and I put two combinations with only http and http+www. In that case those origin mismatch and other redirect issues arises.

    Can you help me?

    https://www.ads-software.com/plugins/super-socializer/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter theputul

    (@theputul)

    I have done an uniformity for the sites in Google+ Oauth.
    For your reference site 1 is https://www.websbaba.com and site 2 is https://www.appsbaba.com.

    In google javascript origin and redirect uris set at https://www.webssbaba.com for site 1
    In google javascript origin and redirect uris set at https://appsbaba.com for site 2

    I have to mention that if I put www for site 2, it does not work for meta log in, but with this setup, commenting gives origin mismatch error.
    if I put both versions with www and without www, comment redirects to #commentsform, which is 404.

    Plugin Author Rajat Varlani

    (@the_champ)

    Can you share the urls of both the websites so that I can look into the issue?

    Thread Starter theputul

    (@theputul)

    I have already provided above.
    For your reference site 1 is https://www.websbaba.com and site 2 is https://www.appsbaba.com.

    Thread Starter theputul

    (@theputul)

    I have already provided above.
    For your reference site 1 is https://www.websbaba.com and site 2 is https://www.appsbaba.com.

    Plugin Author Rajat Varlani

    (@the_champ)

    Hi,
    Please find your answers below:

    1. Site 1 logs in properly for commenting. But using login meta of wordpress, it logins properly but rediects to https://www.site1.com/subdir (means page not found). However, login still active and can be logged out.

    When you login from the login form of your website, plugin fetches the homepage url of your website (which in your case is returning https://www.websbaba.com/blog/) and redirects user to that url. Seems, you have installed this website in ‘blog’ folder. Technically, your website content should be in “blog” folder and it should not return 404 error.

    2. Site 2 logs in for commenting, but nothing happens, still loads the same page with the G+ button. Using login meta gives same result as site 1, but if browsed the site I see no login active.

    Set “Javascript Origin” and “Redirect URIs” to https://appsbaba.com

    Thread Starter theputul

    (@theputul)

    Hi,
    1. For your first answer:
    My website contents are in blog folder and it is installed there. I already mentioned. That is my wordpress url. But my site url is https://www.websbaba.com. Means I have changed it from wordpress settings. Any option is there in the plugin that will redirect to site url and not wordpress url?
    2. For second answer too, I mentioned already that I set “Javascript Origin” and “Redirect URIs” to https://appsbaba.com.

    Plugin Author Rajat Varlani

    (@the_champ)

    To change the redirection for first website, I need to look into the code. Can you drop me an email at lordofthechamps[at]gmail[dot]com regarding the same?
    In your second website, login page url is starting from https://appsbaba.com/, whereas post url is starting from https://www.appsbaba.com/. That’s why when you login from comment form at any post, it gives you “origin mismatch” error.

    Thread Starter theputul

    (@theputul)

    I will mail you. However, I think there is no difference in the problems. What you telling about the second website is due to settings in the host. As it is a root domain and sites in my host starts without www by default, therefore in the setting I could not make it with www. For the first domain, however, I had option to name the folder of the add-on domain, which eased me to have a wordpress url with www.
    These things are irrelevant, but what I understand, due to high flexibility of WP, now it is very difficult to correlate a issue with another issue.
    For a coder, a plugin devs like you, it must be a headache to solve stand alone issues now and then!

    Plugin Author Rajat Varlani

    (@the_champ)

    For a coder, a plugin devs like you, it must be a headache to solve stand alone issues now and then

    These kinds of issues do not occur that frequently. And then, resolving issues is part of a coder’s life ??

    Thread Starter theputul

    (@theputul)

    Closed issue. Thanks for replies Rajat.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘G redirection issues’ is closed to new replies.