Wordpress ed i problemi con Google Friend Connect
Edit part 18 April 2011: THE PROBLEM SEEMS TO OFFICIALLY SOLVED WITH THE VERSION OF WORDPRESS 3.1.1: “Check if you’re including the Prototype javascript library anywhere in your WP code. If so, please upgrade it to the latest version. Older versions conflicted with GFC due to a bug in their code.“
It was a long time that the WordPress widget Google Friend Connect, that here is in the right sidebar titled “Social”, no longer appeared.
Was not shown any error, nè in Internet Explorer, nè in Firefox e Firebug, there was just an empty space in the sidebar.
I tried to search several times in Google, I tried to change the subject, but the result was always the same: the widget was not displayed.
A few days ago, casually, incappo in this question mail forum Google, where a user indicates that the widget only works in Opera and Google Chrome…
After a month get a response from a Google employee, who writes that, for some months, there are conflicts between the widget Google Friend Connect, and the javascript file prototype.js, that is inside of WordPress.
The solution is quite simple:
in Wordpress, just open the control panel where the widget is the code of Friend Connect, and add just above this code:
<script>
window.JSON = {
parse: function(St){
return st.evalJSON();
},
stringify: function(obj){
return Object.toJSON(obj);
}
};
</script>
And here! Magically the widget will work properly and will be shown in the sidebar of the blog!
According to the clerk of Google, is a problem that needs solving who wrote the file prototype.js, However, after one year, This bug is still present, and it is outrageous…
Whoever is to blame:
