Topic-icon Login to Facebook works only in site debug mode

Active Subscriptions:

None
12 years 2 months ago #42074 by bungee
Nslookup is instantaneous and ping is fairly quick.
PING googleapis.l.google.com (173.194.65.95) 56(84) bytes of data.
64 bytes from ee-in-f95.1e100.net (173.194.65.95): icmp_req=1 ttl=50 time=4.50 ms
64 bytes from ee-in-f95.1e100.net (173.194.65.95): icmp_req=2 ttl=50 time=4.99 ms
64 bytes from ee-in-f95.1e100.net (173.194.65.95): icmp_req=3 ttl=50 time=4.64 ms
64 bytes from ee-in-f95.1e100.net (173.194.65.95): icmp_req=4 ttl=50 time=4.51 ms
64 bytes from ee-in-f95.1e100.net (173.194.65.95): icmp_req=5 ttl=50 time=4.52 ms

This is what I am seeing from the browser network console:
index.php?option=com_jfbconnect&task=authenticate.login&provider=google&return=Lw==&62a44bc0fb191008243cc91c14c333ec=1
3.29 s2 ms

auth?response_type=code&client_id=72711623038-vhchm7mld8ckret1b559rhkir6lhlvb2.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Fdev2.bungeemon.com%2Findex.php%3Foption%3Dcom_jfbconnect%26task%3Dauthenticate.callback%26provider%3Dgoogle&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fplus.me&state=62a44bc0fb191008243cc91c14c333ec&access_type=offline&approval_prompt=auto
accounts.google.com/o/oauth2
399 ms3 ms

index.php?option=com_jfbconnect&task=authenticate.callback&provider=google&state=62a44bc0fb191008243cc91c14c333ec&code=4/jcj95Oez4lbqU-ijAT69lPSBaISN.InWGDlckke8eOl05ti8ZT3Z1dENfiQI

The first two requests are quick, but the last one stucks for a long time.

Is there any debug setting available that could help to find out more?

Thanks,
Alan
The topic has been locked.
Support Specialist
12 years 2 months ago #42082 by alzander
Alan,
You can turn on the "Enable Debugging" setting in JFBConnect. That *may* present an error message after the login process finally completes. However, since the login process is completing, there likely isn't an error.

As for the URLs above, the first 2 are completely loaded by the user's browser. There's no communication between your server and Google or any other social network at that point. The only time that server <-> social network communication happens is during that last process, which is why I'm focusing on your server as being problematic.

I'm not sure what's happening here, but it definitely seems to be some communication issue with Google. However, I can't tell what it is from what I can see trying to login to your site or from the captures above. Obviously, something is wrong, I really do think it's a connectivity issue between your server and other social networks, but I've never seen a login process that slow before *that still works*.

Can you tell me me if the ping and nslookups perform the same for all 3 URLs I provided above? From here, all I can guess is that:
a) One of the other 2 URLs won't perform the same
b) There's a connectivity issue 'higher up' in your Joomla installation, like a firewall extension or even a PHP incompatibility. The tests above only test the server, not Apache or PHP (or Joomla itself).

Keep me posted on anything you find,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42100 by bungee
Yes, the ping and nslookups perform the same for all 3 URLs.

My VPS provider tells me that everything is ok from their side:

We have a direct peer with Google and your latency towards the first google hop is less than 1 ms. I can assure you this has nothing to do with our network.


I tried JFBC component on the other development site which runs on Joomla 2.5 and managed to mess my subscription up. The site and JFBC appear to be running but I can not run any autotune tests anymore. It says "user: User Not Found!". Anyway, on the J25 site facebook login worked the same as on J3, but Google+ login gave me an error "We were unable to retrieve your Google account information". After my subscription broke I stopped testing on J25, so I have no other results.

Could you please fix my subscription?

Is there a way I can use the same subscription for testing on other sites in order to see if the Joomla or PHP versions are causing these problems?

My PHP version is 5.3.10-1ubuntu3.10. Could it be too old?

Thanks,
Alan
The topic has been locked.
Support Specialist
12 years 2 months ago #42116 by alzander
Alan,
You can use JFBConnect on as many sites as you want. We'd actually love for you to try in other environments to see what behavior you get, as we're a bit clueless as to what's happening here.

As for your subscription ID, it should continue working on the new site (and old site) just fine. However, your subscription ID is tied to your password on this site. If you changed your password recently, your subscription ID will change as well. Can you go to the My Account -> My Profile area and just double-check you're using the correct Subscriber ID?

The next steps (beyond testing on another server for comparisons sake) would be to get us access to your server. The best thing for us would be FTP access and a Joomla super admin account. We'd need to be able to change some JFBC settings and modify some files to insert some debugging code to narrow down where the issue is. We'll gladly dig in though to figure out what could possibly be going wrong.

If that works for you, please Private Message them by clicking the mail icon under my picture to the left.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42123 by bungee
Alex,

I wasn't aware that my Subscription ID changed. Now everything is ok with subscription. I will send server details through private message.

Thanks,
Alan
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42125 by Prffrost
sorry .. i can also not login with Facebook... only Twitter and Google ... www.gig-hair.com/de/aktivitaetsprotokoll/Anmelden
is this the same diskuss???
The topic has been locked.
Support Specialist
12 years 2 months ago #42128 by alzander
Alan,
Glad to hear that got you going. We actually realized there was an issue on our end with Subscriber IDs. With the latest Joomla 2.5.18 release, passwords are being upgraded automatically to a more secure hashing function. Our subscriber IDs are based on the password hash, which means when you logged in using your Joomla credentials, your password hash and, hence, your subscriber ID was automatically changed. We're working on a system to make that migration for other users, but you're already done.. Thanks for being our guinea pig :)

I'll be looking at your site soon to try to narrow down what's going on.

Prffrost,
No, your issue is unrelated. You don't have the Bootstrap Javascript library loading on your site. Please go to the JFBConnect -> Configuration area and enable the "Include jQuery / Bootstrap" setting. That should get you going.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42143 by Prffrost
many thx ..Alex..
The topic has been locked.
Support Specialist
12 years 2 months ago #42146 by alzander
No problem. Glad to help. Should you need anything else, just let us know.

Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42156 by bungee
Just a quick update. I managed to run the site on Joomla 2.5.19. I had to turn off sh404SEF processing for JFBConnect. Login to Google+ is still taking a long time.

I will be moving the site to a new VPS these days to see if there is a problem with a version of PHP or some other environmental stuff. As soon as I set up new server I will send an update.

Thanks,
Alan
The topic has been locked.