Topic-icon Warn: Another Facebook extension is installed

Active Subscriptions:

None
Dear Alex,

When I run AutoTune with JFBConnect 5.1.1, I get the error:

Warn: Another Facebook extension is installed, including the Facebook Javascript library, and may conflict.

Most of the posts say to examine the HTML code and search for "all.js". I can only find one instance of that in the HTML for my home page.

Most of the posts indicate I need to turn off another application's FB extension. How would I go about finding which FB application is the culprit?

Also, when a user logs in with their FB credentials, a whole bunch of lines appear with the same message: Facebook profile successfully connected. I have attached a picture of it.

I wonder if the two issues are related. Thanks in advance for your help.

Spike

File Attachment:
The topic has been locked.
Support Specialist
12 years 8 months ago #36722 by alzander
On your site, in the actual raw HTML, is the following block:
<div id='fb-root'></div><script type='text/javascript'>

      // Load the SDK Asynchronously
      (function(d){
      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = '//connect.facebook.net/en_GB/all.js';
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));
I'm not sure what's including that block. It could be your template or EasyBlog, though neither of those is including extra Facebook functionality on the page, so they shouldn't be loading it from what I can tell.

As for the repeated messages, I don't think that's related honestly. For me, when I click the Facebook login button, the page hangs after showing the "You are now being logged in..." popup. I then have to reload the page to see the repeated messages. Is that what's happening for you, or does it properly redirect automatically?

I'm not seeing any Javascript errors and I really don't know what's preventing our redirection from occurring, but it seems there's some loop that keeps trying to log the user in.. and causing the repeated messages.

If you're seeing the same behavior, can you try disabling all of the socialprofile plugins and trying again to see if that works? If so, enable them one at a time and see which one is causing the problem. Otherwise, please Private Message us admin credentials and we'll gladly investigate further on-site.

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

None
12 years 8 months ago #36773 by spikesantee
Dear Alex,

I think I fixed the problem where the SCLogin was hanging. I think it had something to do with the Community Builder plug-in because the letters cb were in the URL that wouldn't resolve. I think the multiple login messages in the picture above came from repeated turns through the endless loop the program was in. Somehow, I don't know how, that problem has gone away. The log in goes through, although it seems to take a few seconds, and I don't see the multiple messages any more.

The Autotune Error Check still shows that another instance of the Facebook extension is still installed. I've looked through all of the obvious culprits but I can't seem to find another application that is using the Facebook extensions. I tried using Firebug but I couldn't find the code you find in my raw HTML. But of course, I'm not a very experienced programmer. I may not even be looking in the right place.

Thanks for your help.
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #36810 by spikesantee
Dear Alex,

I've searched the files in:

administrator
components
includes
modules
plugins
templates

And I can only find a part of the script you say was in my raw html. I can find

'//connect.facebook.net/en_GB/all.js';

but it has en_US instead of en_GB. It is in a file for the Warp Framework that my template is using called warp.js. Would this be what is generating that raw html? It doesn't look like it to me because but it is part of a function so maybe what you read was the output of that function.

Are there any other subdirectories that make up the Joomla system that I can search for that raw html.

Spike


Thanks for your help.
The topic has been locked.
Support Specialist
12 years 8 months ago #36860 by alzander
Spike,
The block that's being added looks like:
<div id='fb-root'></div><script type='text/javascript'>

      // Load the SDK Asynchronously
      (function(d){
      var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
      js = d.createElement('script'); js.id = id; js.async = true;
      js.src = '//connect.facebook.net/en_GB/all.js';
      d.getElementsByTagName('head')[0].appendChild(js);
    }(document));

    </script>
That could definitely be coming from the warp template. You'd need to check if there's a setting in the template to disable Facebook integration or Likes, do that.

If you're doing a search of files, look for "connect.facebook.net" as the language string likely isn't hard-coded into it and would be replaced with your Joomla value. That may uncover something else for you to investigate.

In general, I'm not sure if the extra inclusion is really even causing any problems based on how it's done. It would slow down the loading of the page by a very slight amount, but may not really be a problem... so I wouldn't stress too much about it.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #36896 by spikesantee
Dear Alex,

Thanks so much for your help. I know you are busy.

I have been using that block of HTML code to search for the offending file. I can find it with Firebug. It's hard for me to see where it comes from though. I've been searching for the following text:

connect.facebook.net/en_GB/all.js'

I find that in the warp.js file but instead of GB it has US in the file. I've searched the template for any Facebook connectivity switches but I haven't found it yet. I will download all of my site and keep checking.

I agree that I don't think it is affecting the functionality but I do think it is slowing things down a little bit. I appreciate the help.

Spike
The topic has been locked.
Support Specialist
12 years 8 months ago #36902 by alzander
Spike,
Feel free to Private Message me super admin details and we can poke around to see if we can find the right setting that's adding that value.

Thanks,
Alex
The topic has been locked.
Support Specialist
12 years 8 months ago #36908 by alzander
Spike,
Big apologies. I just noticed you had sent me a Private Message a few days ago. I just had a chance to get into the site and found the offender. The extra code was being inserted by the "sh404SEFcore - Social buttons plugin" plugin.

I disabled that and it went away. Please test and/or let me know if there's anything that disabling that plugin causes that you don't like.

I hope that helps, and best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 8 months ago #37260 by spikesantee
Dear Alex,

I just installed the latest JFBC release and my problem with:

Warn: Another Facebook extension is installed, including the Facebook Javascript library, and may conflict.

has gone away?!?

I'm a happy JFBC user.

Thanks

Spike
The topic has been locked.
Support Specialist
12 years 8 months ago #37270 by alzander
Spike,
In the post above, I mentioned that I disabled the "sh404SEFcore - Social buttons plugin". That is likely why the error went away, unless you re-enabled it. There were no changes in v5.1.2 that should have changed our detection of other Facebook plugins on the site.

Either way, hopefully things are going well, and, as always, should you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.