Some of the ones using Firebug may have noticed an error message in the console when using a Social GK5 module as in the Facebook Likebox module.
The error message is:
not found tourisme.nadorpresse.com:489
FB.init has already been called - this could indicate a problem connect.facebook.net/fr_FR/all.js:49
Well, thing is, it tries to locate 'fb-root', does not find it, returns the error.
The Social GK5 script does not generate an 'fb-root' entry, it does generate a variable of it named 'gkfb-root', see /templates/gk_publisher/layouts/blocks/social.php, lines 13 and 80:
Line 13:
- Code: Select all
<div id="gkfb-root"></div>
Line 80:
- Code: Select all
document.getElementById('gkfb-root').appendChild(root);
Modifying both of gkfb-root to fb-root fixes it.
Now I'm wondering what do we need a variable named gkfb-root for?
Regards.