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>

  • Digg
  • del.icio.us
  • Facebook
  • StumbleUpon
  • Technorati
  • Twitter
  • Yahoo! Buzz
  • Google Buzz

18 Responses to “Fix For WordPress 2.8.x for Google Friend Connect if not Working in Firefox 3.5”

  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. i got it:):)

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

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

  10. Thanks..it works

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

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

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

    Thanks again…

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

  15. Thanks a ton,,,

  16. 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 :)

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

  18. reply with your website..

Leave a Reply