API not loaded, please pass in a 'site'

Hello,

I have a puzzling message on my page at http://www.learnintouch.com/page/68

It says the API is not loaded.

The Firebug gives this: uncaught exception: API not loaded, please pass in a ‘site’

I wonder which API…

Any clue ?

Stephane

It’s the friendconnect script that’s giving you that message.

Hi Paul,

Thanks for your investigation. I will check again that I have a website domain name in the Google Connect.

I had looked for a website url in there but could not find it.

But now I found it, hidden under the Parameters properties.

It was at http://www.google.com/friendconnect/admin/site/settings?id=

I changed the domain name to reflect the new one of learnintouch.com

But after saving the page, I still get the same error message at my website…

Strange… Maybe it’s a propagation timing…

Stephane

The file itself that’s being loaded is “friendconnect.js?key=notsupplied&v=0.8”
There-in perhaps lies a clue.

Another problem though is that your google analytics code contains some <br> HTML tags that must not be within a script block of code.

Good point Paul, I shall clean up the mess before disturbing you again, I just had this major refactoring and sure enough, the plant is still very green…
Cheers,

Hi Paul,

I have now corrected the rendering of the markup code including the javascript code and the <br> tags are not there any more. Thanks for that.

But I still get the same strange message and it seems like it is coming from Facebook… if I’m not mistaken…

Have a look at: http://www.learnintouch.com if you have time.

Thanks again !

Stephane

Something real strange is that the message:

uncaught exception: API not loaded, please pass in a ‘site’

does not appear consistently on each page reload.

Clicking on the Refresh button sometimes displays this message but not every time.

Look at the source code for your web page and you see this:


google.friendconnect.container.initOpenSocialApi({
  site: '',
  onload: function(securityToken) { googleSocialInit(); }
});

Look at the error message: Uncaught API not loaded, please pass in a ‘site’

Can you determine what needs to be done?

Spot on Paul !

site: ‘18312750800694811824’ :slight_smile:

I continue to the next error message now… I should find my way.

Thanks again !