July 28, 2014


Fix For WordPress 2.8.x for Google Friend Connect if not Working in Firefox 3.5


Last day i noticed that my Google-Friend connect plugin is not working for my latest wordpress.I tried a lot to find out the issues behind that.I realized that it is not a code issue since gadget is shown properly in a static page.So,there must be clashes with other plugin codes which might prevent my gadget to load up.I have been seeing  just a empty plain or white box ,nothing else.

I searched a lot,and at last found out the issue.It was a bug in Prototype JS Framework which causes it to interfere with the Native JSON parser in Firefox 3.5 and leads to the GFC-prototype conflict.[Refer Explanation]

So,Just copy this piece of code and paste it above the google-connect gadget code.The better option is ,place the code in the header.php of the wordpress code.

<script>
window.JSON = {
parse: function(st){
return st.evalJSON();
},
stringify: function(obj){
return Object.toJSON(obj);
}
};
</script>

Comments

  1. Thx dear. you solve my problem because i was thinking that there is some problem in my wordpress.

    Great :)

  2. This is the one which I am looking for.Its really one of the fabulous post which I really like it.keep it up.Keep up the good works.

  3. This is a really good read for me.I really like this blog a lot.thanks for sharing with us.keep blogging.

  4. Great trick. thx for sharing with whole world.

  5. Tank you, my friend.. I’ve been obsessing over this problem for more than a week now.. It also works for 2.9.1.

    Tank you once again!

  6. In the previous comment, the “h” doesn’t work very well on my computer :)

  7. javascript is a pain, I just wish all the developers would use one standard. Its just ridiculous lol.

  8. Thanks for the fix,it can be so tough to find one and the other u get it and it was just so easy :)

  9. Thanks..it works

  10. Could you send me a rapidshare premium account please??

  11. Thanks a ton for this information. you saved a lot of my time… :)

  12. Thanks a lot.. i’ve been looking for this for a days..

    Thanks again…

  13. Thanks so much for this – mine was working fine then suddenly disappeared. Thanks to you, it’s back :)

  14. Thanks a ton,,,

  15. thats indeed very informative, i been looking for that for such long time and at last able to manage it..

    thanks for sharing it bro.. bless you :)

  16. I tried adding the code but it’s still not working. I’m on wordpress too. Can you help me please?

  17. Thank you so much! This worked immediately, and I’ve been searching for a fix for my ‘non-appearing’ Google Friend Connect for a long time. My blog loves you. ♥

Speak Your Mind

*