This object is in archive! 

Facebook & Twitter not working

Archived Helge K. 12 years ago

I just set up a new install of Use Response and enabled the Login Plus module. In the module settings I added Facebook and Twitter app IDs and secret keys.


When I try to register with Facebook I get a popup from Facebook where I enter my Facebook user name and password. After I click OK the popup opens this URL (https://helgeklein.com/forum/login-oauth/facebook?code=<long code here>) and nothing else happens.

Replies (10)

photo
1

We'll try to reproduce the bug and get back to you with solution

photo
1

Some more information: I have SSL enabled, so all UR pages are automatically delivered via HTTPS (which is good). The problem I described occurs only when trying to register on the front page without SSL. In other words:

  • I to to http://helgeklein.com/forum
  • There is no automatic redirect to httpS://helgeklein.com/forum but every link on the front page points to https URLs
  • I click on "Register". As described this works in the popup, but the redirection back to the main page seems to be broken.
  • Interestingly the same happens when trying to login on the non-SSL front page

Let me know if you need more information.

photo
1

I think we have enough information as of now.. Thank you. We are working on reproduction of that issue.

photo
1

Helge, we've tried to reproduce mentioned bug, but couldn't identify it. Even on your community it works like a charm.

Could you please let me know if it works fine now or you still have problems.

photo
1

This is probably the easiest way to reproduce it:

  1. Go to http://helgeklein.com/forum/
  2. Click on "Login"
  3. Enter E-Mail "test@test.com"
  4. Enter Password "asdf"
  5. Click on "Login" button

That gives me an endlessly spinning wheel (see attachment).

photo
1

Helge,

The thing is that you are trying to use https requests on http domain. As I understand, you use community on https, so in application/configs/application.inc you should have baseurl to be https://domainname.com/forum

But if you go to http, no requests will pass.

So you either use http or https. Just put 302 redirect rule in .htaccess located in installation folder of UseResponse. Let me know if it works for you

photo
1

Stas Kuzma wrote:

Helge,

The thing is that you are trying to use https requests on http domain. As I understand, you use community on https, so in application/configs/application.inc you should have baseurl to be https://domainname.com/forum

But if you go to http, no requests will pass.

So you either use http or https. Just put 302 redirect rule in .htaccess located in installation folder of UseResponse. Let me know if it works for you

I understand. What is the correct way to add a redirect rule to UseResponse's .htaccess without breaking anything?

photo
2

Add somewhere in the beginning of .htaccess:

  1. RewriteEngine On
  2. RewriteCond %{HTTP_HOST} ^helgeklein.com/forum$
  3. RewriteRule ^(.*)$ https://helgeklein.com/forum/$1 [R=301,L]

or you can try this:

  1. RewriteEngine On
  2. RewriteCond %{SERVER_PORT} !^443$
  3. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

photo
1

Thank you very much, Stas. The first code block does not work, but the second one is perfect. I put a slightly modified version right at the top of the .htaccess file in the UseResponse install directory:

  1. RewriteEngine On
  2. RewriteCond %{HTTPS} off
  3. RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

photo
1

You are welcome :)

Replies have been locked on this page!