Topic-icon Problem with Looping login using JFBConnect

Active Subscriptions:

None
13 years 2 weeks ago #33271 by y021ahe
Hi,
I am having a problem with the Login with the Facebook id using JFBConnect which is intermittent, but when it happens its a real pain and I am struggling to understand a) what is causing it and b) how to stop it.

In short, the "logging in with your facebook credentials" feature seems to go into a loop and is constantly trying to log in. When it finishes and disappears, before you have a chance to do anything the same box opens up again and locks the site access whilst it is logging in again..... and again... and again ...

The only way round it is to completely close all the browser windows and start again - which tends to work.

I have not managed to get to the bottom of what is causing it and would appreciate any advice - i want to expand my user community using the feature, but with this looping "bug" if feel that i cannot do so.

I am using JFBConnect 5.0 in Joomla 2.5.8 on my live site - I have embedded the JFBCLogin tag in the Kunena Login box (Kunena version 2.0.3). The same issue is observed in Firefox and Internet Explorer.

Is there a way to limit the number of login attempts / retries (or an equivalent) to at least give control back to the site, even if not as a logged in user, because this constant looping prevents anyone accessing the site at all.

As I say, this doesn't happen all the time, which may affect diagnosis and correction.

Thanks in advance

Rich
The topic has been locked.
Support Specialist
13 years 2 weeks ago #33273 by alzander
Rich,
Thanks for the detailed explanation. There's a few things that sounds like could be at work here, but I'll need some of your help to try changing a few settings to see how it changes the behavior.

First, disable the "Automatically log Facebook users in" setting. We set a cookie in the user's browser to signal that an automatic login attempt has been tried and prevent doing so again for a period of time. From your description above, that cookie may be having issues being set... although, the login process should work in the first place.

Next, if you still have issues, disable any Social Profiles plugins you have enabled. I'm assuming you have the Kunena plugin installed at least.

Then, check your plugins and set the JFBConnect - Authentication and JFBConnect - User plugins to the first ordered (lowest number) position. Make sure that each plugin in those groups has a unique number (they aren't all 0 for instance).

Finally, if none of that helps, let me know what authentication and user plugins you have installed and, if possible, the URL we can see the issue on. Even if it's intermittent, we can check for common issues.

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

None
13 years 2 weeks ago #33276 by y021ahe
Alex, Thanks for your reply.
Can you please confirm whether the actions that you are requesting e.g "disabling the automatic log facebook users in" are to try to establish where the problem lies, or to work around or remove the problem - i.e is this a long term solution or diagnostic task.

Also disabling the plugins - when do thye get re-enabled.

What I am trying to understand is your thought processes and what you are hoping to see / not see as a result of doing the actions.

I hope this makes sense

Rich
The topic has been locked.
Support Specialist
13 years 2 weeks ago #33277 by alzander
All of the above is diagnostic. Once we can narrow down what seems to be causing the intermittent problems, we'll know where to focus. Right now, if you have all those features enabled, any of them can be the could cause the problem which makes it hard to diagnose.

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

None
13 years 2 weeks ago #33284 by y021ahe
Hi
I have been struggling to recreate the problem, but whilst reviewing I note that all JFBConnect plugins have an ordering version of 0.

I have included some screen shots for your review.


File Attachment:


File Attachment:


Rich
The topic has been locked.
Support Specialist
13 years 2 weeks ago #33285 by alzander
Rich,
In the Plugin Manager, don't do a search for "JFBC", use the "Type" filter and select "User", "Authentication", and or "System". Then, within that group, check the ordering of the plugins. My guess is that they're all 0, because that's what Joomla does. You just need to set an order for any of the plugins and hit "Save" and Joomla will automatically assign a unique number to each.

With a unique number, it may take away the intermittent problem and either a) make the problem constant or b) remove the problem altogether. With all the plugins at '0', it means they could run in any order, which makes things difficult to debug. If the problem 'sticks' when the ordering is updated, then it means we need to find a new ordering that fixes the problem.

Hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 2 weeks ago #33299 by y021ahe
Alex,
Here are screen prints showing the ordering of all the plugins

What order do you recommend that we should put the relevant ones in for a system running well with the definition that I have stated - JFBConnect, Kunena and Joomla.

Thanks

Rich


File Attachment:


File Attachment:


File Attachment:
The topic has been locked.
Active Subscriptions:

None
13 years 2 weeks ago #33300 by y021ahe
Alex,
Here are screen prints showing the ordering of all the plugins

What order do you recommend that we should put the relevant ones in for a system running well with the definition that I have stated - JFBConnect, Kunena and Joomla.

Thanks

Rich


File Attachment:


File Attachment:


File Attachment:
The topic has been locked.
Support Specialist
13 years 2 weeks ago #33310 by alzander
Really, any order is better than 'no order', which is what you currently have. By simply changing one of those '0' numbers to '1', that will set an order for them all. From there, it'll be easier to diagnose.

However, seeing your plugins, my guess is that it may be the Contact Creator plugin that's causing your problems. If you're trying to login with a user that you previously deleted from Joomla, there is probably a contact for them still created. If so, when you try to login with Facebook again, that plugin will throw an error (loop and vomit) because there's already a contact with that email address in your system.

So, my first recommendation would be to disable that plugin and test again. We've never really diagnosed if there's a good fix for working with it as no one else has ever used that plugin and wanted us to investigate further. In general, it's simply been enabled on accident. If you really want that plugin enabled and it is the culprit, let us know and we can investigate more.

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

None
12 years 11 months ago - 12 years 11 months ago #34012 by y021ahe
Hi, My apologies for the delay in coming back to you on this problem but I have been away. I have managed to recreate the problem on my test site www.fgatest.com and I hope that by giving you the same instructions, this may enable you to identify a fix for it.

In summary, I belive that this is probably some kind of conflict between the JFBConnect product and another product I am using as it is only prevalant on specific pages of my site.

It can be recreated by
i) Open a web page - I have used IE10 and FF 1.7.06
ii) Log into Facebook using an Id which is registered on the website and is in the JFBConnect map
iii) Open a new Web Page (I created a new Window - not a new tab)
iv) Open www.fgatest.com
v) Log in using the Login With Facebook - it should auto log in and connect
vi) Click on the Site Tab - Championship Tables and you will see that it logs in - again and again - even though it is already logged in.
v) At the point that you can get in between the logins and go back to the Home or About Page for example, the logins stop.

I would appreciate it if you can ascertain why this is happening - I believe there is a conflict as it doesnt happen on every page, but I will find it difficult to remove the modules /plugins that are on the pages. It may be something to do with the Plugin Plugin Include Component , although I am not yet convinced.

Thanks in advance

Rich
Last edit: 12 years 11 months ago by y021ahe.
The topic has been locked.