• Home
  • Docs
  • About
  • Resume
  • Services
    • Testimonials
    • Leave A Testimonial
  • Stack Exchange
    • Android
      • Spanish
      • French
      • German
    • Apple
      • Spanish
      • French
      • German
    • Ask Ubuntu
      • Spanish
      • French
      • German
    • Bicycles
      • Spanish
      • French
      • German
    • Cooking
      • Spanish
      • French
      • German
    • CrossValidated
      • Spanish
      • French
      • German
    • Database Administrator
      • Spanish
      • French
      • German
    • Drupal
      • Spanish
      • French
      • German
    • Electronics
      • Spanish
      • French
      • German
    • Game Development
      • Spanish
      • French
      • German
    • Gaming
      • Spanish
      • French
      • German
    • GIS
      • Spanish
      • French
      • German
    • Home Improvement
      • Spanish
      • French
      • German
    • Mathematics
      • Spanish
      • French
      • German
    • Photography
      • Spanish
      • French
      • German
    • Physics
      • Spanish
      • French
      • German
    • Programmers
      • Spanish
      • French
      • German
    • Stack Overflow
      • Spanish
      • French
      • German
Humbug
Bah! Humbug!
Home 2009 Fix Empty Blue Google Friend Connect (GFC) Bar in Wordpress
  • Email
  • Share

Fix Empty Blue Google Friend Connect (GFC) Bar in WordPress

  • 20 Comments
  • Tweet
Pratik Sinha | October 1, 2009

Google Friend Connect (GFC) is a great tool to build a community around a website. Last week, I thought it was finally time I got cracking on my wife’s website. The website is getting good traction and I can see from Google Analytics stats that the number of returning visitors is increasing. I thought it was the ideal time to integrate GFC. I followed the standard procedure as stated on Google’s Friend Connect Page – setting preferences, generating the code and integrating it into the wordpress theme – but all I got was an Empty Blue Bar.

My default browser is Firefox (3.5). However when I opened the site in Chrome and IE, the GFC bar showed up without any issues! It was hard to believe that GFC would have a browser specific issue and that too Firefox which is one of the two recommended browsers by Google. I tried googling the issue but couldn’t find anything relevant.

I figured GFC must be conflicting with one of the many plugins that are installed on the website. I tried deactivating a few plugins, which I thought might conflict but I still got the empty blue bar. So finally, I had to resort to the lengthy procedure – disable all plugins, check whether GFC works (it did!), activate the plugins one by one and check which one causes GFC to break.

After activating 15 odd plugins, I found the culprit - Collapsing Archives. Collapsing archives uses Javascript (JS) to make the Archive links in the sidebar collapsible by year and/or month. The javascript uses the fabulous Script.aculo.us JS Framework which in turn is based on the Prototype JS Framework. I ‘un-enqueued’ the JS files one by one and until I found that prototype.js broke GFC.

A quick google search for “GFC prototype” lead me to this GFC forum thread. A Google employee states (third post) that a bug in prototype causes it to interfere with the Native JSON parser in Firefox 3.5 and leads to the GFC-prototype conflict.

prototype-GFC

He had pasted a code snippet which was supposedly the fix and was to be added just above the GFC code.

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

I quickly added the code snippet just above the GFC code, and voila it worked! Essentially, the code instructs the browser to use the Prototype JSON parser instead of the Native JSON parser.

Posted in Tips-N-Tricks | Tagged Empty Blue Bar, GFC, Google, Google Friend Connect, JavaScript, JSON, Mozilla Firefox, Prototype, Script.aculo.us | 20 Responses

  • Tweet

Logging In...

Reply Click here to cancel reply.

Sign in with Twitter Sign in with Facebook
or

  • 20 Replies
  • 17 Comments
  • 0 Tweets
  • 0 Facebook
  • 3 Pingbacks
Last reply was 493 days ago
  1. Kelly
    View 848 days ago

    THANK YOU SO MUCH!!!!!!
    I spent 6 weeks trying to find this fix. You are a genious. And a good husband to that lucky wife, too. Thanks, again. I’ll tweet your site.

    Reply
    • Pratik Sinhareplied:
      View 846 days ago

      Hey Kelly,

      I’m glad I could help :)

      Reply
  2. titou
    View 846 days ago

    Thank you very much, it works for me too !!

    Reply
  3. Google Friend Connect bar and widget not working correctly | LittleTechGirl.com
    View 842 days ago

    [...] I found at fix for this at http://humbug.in/2009/fix-empty-blue-google-friend-connect-gfc-bar-in-wordpress/. The update is fairly simple. Open up the Widget for Google Connect, and above that code, paste [...]

    Reply
  4. Brittany at Mommy Words
    View 839 days ago

    Thank you thank you thank you! It is finally working after months of people telling me they could not find my follower section. You are great husband and a genius!!!

    Reply
  5. Fix Empty Blue Google Friend Connect (GFC) Bar in Wordpress | Google Friend Connect Blog
    View 838 days ago

    [...] the original here: Fix Empty Blue Google Friend Connect (GFC) Bar in WordPress Share and [...]

    Reply
  6. Rodrigo
    View 833 days ago

    thanks man, thats help me a lot.

    Reply
  7. yps
    View 827 days ago

    thank you so much, it works now for firefox 3.5.

    Reply
  8. Anjanette aka. MommaYoung
    View 823 days ago

    OMGosh!!! You are a genius! Thanks so much, this has been driving me batty…

    Reply
  9. Are your Google Friend Connect Features Missing? | Momma Young @ Home
    View 823 days ago

    [...] Finally, I found a post by Patrik over at Bird Brain, Patrik found the reasons why and how to fix the GFC issue. Here is the link: http://humbug.in/2009/fix-empty-blue-google-friend-connect-gfc-bar-in-wordpress/ [...]

    Reply
  10. Ashish
    View 822 days ago

    Thanks it worked

    Reply
  11. josh909
    View 822 days ago

    Your advice did fix the Firefox issue however after adding the extra code, Safari no longer displays properly. Has anyone else experienced this?

    Reply
  12. josh909
    View 822 days ago

    actually, ignore that last comment… a ‘reset’ of Safari seems to have done the trick.

    thanks again!

    Reply
  13. txtface
    View 804 days ago

    Many thanks!

    Reply
  14. Camilo Bejarano
    View 800 days ago

    thanks a lot, this worked perfectly!

    Reply
  15. Amy - Mom Spark & Mom Made That!
    View 787 days ago

    Good grief, thank you! I’ve been going crazy trying to figure this out!

    Reply
  16. Bored & Crafty
    View 752 days ago

    Thank you so much. You are a lifesaver :)

    Reply
  17. Amit Chakradeo
    View 728 days ago

    Thanks very much, I had this issue with my rails based sites for some time. The workaround by Bob Aman works great! Shame this is not fixed yet by Prototype team in 1.6.1. Anyway, I reported it to them here:

    https://prototype.lighthouseapp.com/projects/8886/tickets/988-problem-conflict-with-friendconnect-javascript#ticket-988-1

    Reply
  18. Sandhan
    View 495 days ago

    Boo hoo! Someone directed me to this link and I’ve had a talented techie friend try to do this and followed it to the letter but it hasn’t worked… any other suggestions?

    Reply
    • Pratik Sinhareplied:
      View 493 days ago

      Well I haven’t used the GFC Bar in a bit, so I don’t know why its not working, but I guess it could be a different problem now :)

      Reply
« Previous Next »

Recommend on Google
  • RSS
  • Facebook
  • Twitter

Subscribe

Get the latest posts delivered straight to your inbox.

Chatter Away

Recently Popular

  • Make English the Default Language for Google Chrome Search
  • Kill/Quit and Restart Plasma on KDE
  • Parse Simple XML Files using Bash – Extract Name Value Pairs and Attributes
  • Bash Tricks: Split / Cut a String with Multi Character Delimiters
  • Utility to Send Commands or Data to Other Terminals (tty/pts)
  • Make English the Default Language for Mozilla Firefox Search
  • A Sample Loop in XSL, Alternative for While, For Loops
  • Bash Tricks: Split / Cut a String with Multi Character Delimiters Using AWK
  • Bash Tricks: Create variables dynamically using some eval magic
  • Makefile Tricks: Arithmetic – Addition, Subtraction, Multiplication, Division, Modulo, Comparison

Latest Tweets

  • Ruby on Rails Debugging Techniques: Nice succinct blog on ROR debugging techniques, saving it for future reference... http://t.co/36mceCNP 2 hours ago
  • Get Android Remote Notifier to work with Unity on Ubuntu Natty (11.04) and Oneiric (11.10): Ubuntu Natty onwards, ... http://t.co/c3rLfD27 3 days ago
  • Wireless Sniffer on Ubuntu Linux - Capture / Analyze Network Traffic: Jotting down an easy recipe to get a 802.11 ... http://t.co/rZqwjVE5 1 week ago
  • RT @MaheshNBhatt: Mukul Sinha from Jansangharsh Manch called to say that the police are denying the riot victims the permission to hold ... 4 months ago
  • RT @MaheshNBhatt: They have just informed me that they will court arrest and begin to fast if the Gujarat govt denies them their constit ... 4 months ago

Services Offered

  • Embedded Linux Systems and Services
  • Gateway Routers (Frontend and Backend)
  • Free and Open Source Software Solutions
  • Network Monitoring Solutions
  • Device Driver Development

Recent Comments

  • buckley commented on Utility to Send Commands or Data to Other Terminals (tty/pts)
    (1 weeks ago)
  • Arup Kumar Kabi commented on Wireless Sniffer on Ubuntu Linux - Capture / Analyze Network Traffic
    (1 weeks ago)
  • Varun V Nair commented on Wireless Sniffer on Ubuntu Linux - Capture / Analyze Network Traffic
    (1 weeks ago)
  • Ajit Bhat commented on Wireless Sniffer on Ubuntu Linux - Capture / Analyze Network Traffic
    (1 weeks ago)

Categories

  • As An Aside
  • Code-Snippets
  • Software
  • Testimonials
  • Tips-N-Tricks

Copyright © 2012 Humbug.

Powered by WordPress and Hybrid.