Topic-icon Error check failed

Active Subscriptions:

None
11 years 4 months ago #50585 by aestela
Error check failed was created by aestela
During the Error Check of Auto-Tune I get:

JFBCSystem plugin is enabled
Fail: Not Detected! Please enable in the Site Config area of Autotune or in the Joomla plugin manager.

I checked that plugin is enabled. In fact all site pages now have just at the begining of the <body> the following javascript:

<script type="text/javascript">
window.fbAsyncInit = function() {
    FB.init({version: 'v1.0',appId: '31266320544****', status: false, cookie: true, xfbml: false});
FB.Event.subscribe('comment.create', jfbc.social.facebook.comment.create);
FB.Event.subscribe('comment.remove', jfbc.social.facebook.comment.remove);
FB.Event.subscribe('edge.create', jfbc.social.facebook.like.create);
FB.Event.subscribe('edge.remove', jfbc.social.facebook.like.remove);
  };
  (function(d, s, id){
     var js, fjs = d.getElementsByTagName(s)[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement(s); js.id = id;
     js.src = "//connect.facebook.net/en_GB/sdk.js";
     fjs.parentNode.insertBefore(js, fjs);
   }(document, 'script', 'facebook-jssdk'));
</script>

So it seems the system plugin is running.

Site is not OFFLINE, template is a custom one, responsive but not for mobile and there's no other FB integration.
Any ideas why the test is failing?
Thx.
The topic has been locked.
Support Specialist
11 years 4 months ago #50586 by mel
Replied by mel on topic Error check failed
I'm not sure why the error checker is failing, but we'll have to look into that. In the meantime, I've checked your page for everything that the error checker tool looks for and I didn't encounter any problems. If you run into any JFBConnect functionality not working on your page, please let me know but I wouldn't anticipate any issues.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 4 months ago #50587 by aestela
Replied by aestela on topic Error check failed
Well....
I've just added {JFBCLogin} at the end of the page. The FB widget is shown (show the plugin seems working) but clicking on it causes a javascript error in the console:
Uncaught ReferenceError: jfbc is not defined
So something is probably missing.
The topic has been locked.
Support Specialist
11 years 4 months ago #50589 by alzander
Replied by alzander on topic Error check failed
The problem on your site is that our jfbconnect.js file is not being loaded. I'm unsure why it's not being inserted into the page, but it definitely looks as though your template or some other optimization extension is altering and/or removing the Javascript files on your page.

If I visit your site and append ?template=atomic to the URL, the jfbconnect.js file is properly loaded, which may help narrow things down to your template which is likely causing the problem.

I hope that helps, but if not, just let us know.

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

None
11 years 4 months ago #50597 by aestela
Replied by aestela on topic Error check failed
Thank you.
Yes, that was the problem.
On some pages, namely the pages shown to non-registered users we use a static page and we didn't include <jdoc:include type="head" />

Solved.
The topic has been locked.
Support Specialist
11 years 4 months ago #50599 by alzander
Replied by alzander on topic Error check failed
Awesome! Glad to hear that got you going. If you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect or our support on the Joomla Extension Directory. It's certainly not required, but very appreciated:
extensions.joomla.org/extensions/extensi...l-display/jfbconnect

Thanks,
Alex
The topic has been locked.