Topic-icon JFBC 5.1 login error

Active Subscriptions:

None
12 years 9 months ago - 12 years 9 months ago #36130 by drjjw
JFBC 5.1 login error was created by drjjw
Hello,

I upgraded to JFBC 5.1.1 this morning on Joomla 2.5.

When trying to login with the SC login module, it fails with an apparent JS error. In console, I see:

FBConnect logger: permissions_fetch jfbconnect.js?v=510:852
JFBConnect logger: Login checks jfbconnect.js?v=510:852
JFBConnect logger: Logging in jfbconnect.js?v=510:852
Uncaught TypeError: Object [object Object] has no method 'modal' jfbconnect.js?v=510:70

In autotune I see:

Test: Facebook Javascript library inclusion
Fail: Facebook Javascript library not found, but JFBCSystem plugin is detected. Please contact support if you experience issues.

Any suggestions?
Last edit: 12 years 9 months ago by drjjw.
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36131 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
Here is the whole error:

Uncaught TypeError: Object [object Object] has no method 'modal' jfbconnect.js?v=510:70
(anonymous function) jfbconnect.js?v=510:70
e jquery.min.js:3
f.event.dispatch jquery.min.js:3
h.handle.i jquery.min.js:3
f.event.trigger jquery.min.js:3
(anonymous function) jquery.min.js:3
e.extend.each jquery.min.js:2
e.fn.e.each jquery.min.js:2
f.fn.extend.trigger jquery.min.js:3
(anonymous function) jfbconnect.js?v=510:164
func.__wrapper debug.js:4981
inspect debug.js:5706
bound debug.js:491
callbackWrapper debug.js:5560
(anonymous function) debug.js:2150
(anonymous function) permissions?access_token=CAAAAFrLxaTkBAJmH6CS36JhvQ5s7HgXCnulfDVaiGL1KNl7lZ…ZD&callback=FB.__globalCallbacks.f300972964&method=get&pretty=0&sdk=joey:1
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36132 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
Sorry...

In addition, there is another error in console that appears after the login modal tries to launch:

Blocked a frame with origin "www.facebook.com" from accessing a frame with origin "platform.twitter.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
csm0cHwkL0S.js:41
2
Blocked a frame with origin "www.facebook.com" from accessing a frame with origin "static.ak.facebook.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36136 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
Hi again Alex :)

Doing some more debugging. This problem is a conflict with Community Polls module. Will try to narrow down further and see if you can help assist with compatibility.

Jordan
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36140 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
Hi Alex,

This conflict is with Core Joomla Community Polls, specifically the mod_randompoll module.

There is an option on Core Joomla to disable loading of jquery, which I did, thinking there may have been a conflict but this didn't solve.

Any help would be appreciated.

Jordan
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36141 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
.....there also seems to be the exact problem on all Jomsocial 3 pages (but not other pages on the site).

So common thread is Jomsocial and Community Polls
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36149 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
Got it....

There seemed to be a conflict with Jomsocial loading the bootstrap JS library.

For now, I went to:

components/com_jfbconnect/includes/jfbconnect.js

and deleted these lines. Works for now:

{
// First, hide the SCLogin modal if it's there
jQuery('#login-modal').modal('hide');
jQuery("#jfbcLoginModal").css({"margin-left": function ()
{
return -(jQuery("#jfbcLoginModal").width() / 2)
}});
jQuery("#jfbcLoginModal").modal();
}
The topic has been locked.
Support Specialist
12 years 9 months ago #36160 by alzander
Replied by alzander on topic JFBC 5.1 login error
Oh boy.. that may may fix the issue, but obviously best to get to the bottom of it.

First, there is a known conflict with JomSocial and JFBConnect that we're investigating. The easiest way to get around that issue for now is to disable the "Show 'logging in' popup" setting in JFBConnect.

Next, on your site (I'm assuming you're talking about the ukid....com site), there are multiple inclusions of jQuery. The first is in the JCH Optimization JS file with a lot of files compressed. This has jQuery and then the Bootstrap library, which is the correct order. However, after that, is another loading of jQuery:
/components/com_cjlib/jquery/jquery.min.js
That line should be removed if possible and may fix up any other lingering issues that you're having. Re-loading jQuery can cause conflicts with many extensions, but it definitely has issues if it's loaded after the Bootstrap JS has already been loaded.

Test that and let me know if that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36165 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
Thanks Alex,

I discovered the modal setting after reading the code more closely; yes disabling solves. Would be nice to get working so the user knows they are being logged in if taking a while.

I will work on disabling the other instances of jquery loading.

Jordan
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #36166 by drjjw
Replied by drjjw on topic JFBC 5.1 login error
....and now have disabled the other jq library from loading.

Jordan
The topic has been locked.