Cotton Rohrscheib

The Cotton Club Blog & Podcast

  • Home
  • About
    • Entrepreneurial Journey
  • Blog
    • Faith & Family
    • Marketing & Tech
    • Farm & Business
    • Entertainment
    • Health & Wellness
    • Urban Farming
    • Weekend Projects
  • Podcast
  • Newsletter
  • Media
    • Photo Galleries
    • Video Archives
  • Marketplace
    • Buying Gold & Silver
    • Accoutrements
      • Bags & Briefcases
      • Notebooks
      • Personal Carry
      • Wallets
    • Artwork
    • Coins & Currency
      • Silver Certificates
      • Gold Banknotes
      • Currency
      • Coin Sets
      • Individual Coins
    • Sports Memorabilia
    • CIvil War Relics
    • Drones
    • Native American Artifacts
      • Individual Pieces
      • Groups (Cache)
    • Pens
    • Rare Books
    • Signs & Advertising
    • Stock Certificates
    • Trading Cards
      • Trading Cards: Autographs
      • Trading Cards: Base
      • Trading Cards: Graded
      • Trading Cards: Raw
      • Trading Cards: Pokémon
      • Trading Cards: Sets
    • Vintage Toys
      • Buddy L
      • Ertl Farm Toys
      • GI Joe
      • Masters of the Universe
      • Hot Wheels
      • Lionel Trains
      • Lunch Boxes
      • Marx Toys
      • NASCAR Die-Cast
      • Schleich Toys
      • Star Wars
      • Tonka Trucks
      • Walt Disney Productions
    • Vintage T-Shirts
    • Vinyl Records
    • Watches & Jewelry
    • Workshop
      • Building Hardware
      • Camping & Outdoors
      • Tools
      • PCMCIA Cards
      • RAM Memory
      • Microcontrollers
      • CPUs
      • Laboratory Glassware
  • Connect
You are here: Home / Marketing & Tech / Bugfix: Google Analyticator Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error refreshing the OAuth2 token

Bugfix: Google Analyticator Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error refreshing the OAuth2 token

August 21, 2013 by Cotton Rohrscheib Leave a Comment

analytics-logo1I typically use the Google Analyticator plugin to setup Google Analytics for client projects and haven’t had that many issues using it over the years and I probably have it on 100+ websites. Well, lately I’ve noticed a few client dashboards w/ the following error message:

Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }” in /home/xxxxx/public_html/cms/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php:279 Stack trace: #0 /home/ffbsst/public_html/cms/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(239): Google_OAuth2->refreshTokenRequest(Array) #1 /home/xxxxx/public_html/cms/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php(216): Google_OAuth2->refreshToken(‘1/zd433lhEC7Azn…’) #2 /home/xxxxx/public_html/cms/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(166): Google_OAuth2->sign(Object(Google_HttpRequest)) #3 /home/xxxxx/public_html/cms/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(183): Google_ServiceResource->__call(‘list’, Array) #4 /home/xxxxx/public_html/cms/wp-co in /home/ffbsst/public_html/cms/wp-content/plugins/google-analyticator/google-api-php-client/src/auth/Google_OAuth2.php on line 279

I did a little research on this and found out that I’m not the only one seeing this issue, see WordPress Support Forum Here…

I finally did find a solution shared by Jeremy Clarke that seems to work. If you will checkout his gist here and replace the Google_OAuth2.php file w/ his code, then de-activate and reactivate & reset your Google Analyticator plugin you can get your site back up and running.

 

No word on what causes this bug to happen, it’s pretty sporadic among my clients…

Share this post on:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Email a link to a friend (Opens in new window) Email
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Pinterest (Opens in new window) Pinterest

Filed Under: Marketing & Tech Tagged With: Google Analyticator, Google Analytics, Wordpress™ Plugins

About Cotton Rohrscheib

The Cotton Club is a monthly podcast hosted by me, Cotton Rohrscheib. I'm a 52 year old entrepreneur w/ ADHD, OCD (and now AARP) that refuses to grow up as I grow old. I have collaborated and invested in hundreds of projects throughout my career in multiple industries such as; technology, healthcare, and agriculture. I also have 25 years experience in the marketing industry as a co-founder of an award-winning advertising agency. I will undoubtedly cover a wide variety of topics on my podcast while sharing some really crazy stories and situations that I've been fortunate to witness firsthand. I also have a book coming out in 2025 titled, "Mistakes were Made"

Leave a Reply Cancel reply

You must be logged in to post a comment.

  • Email
  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Updates

  • Upcoming Podcast w/ World-Renowned Author & Memphis Wrestling Historian Mark James
  • Monthly Garden Update – May 2026
  • What does El Niño mean for Farmers?
  • Trying Out Degree Grading Service
  • Envira Gallery Photo Plugin for WordPress

Blog Categories

  • Blog (448)
  • Entertainment (379)
  • Faith & Family (155)
  • Farm & Business (305)
  • Health & Wellness (38)
  • Marketing & Tech (595)
  • Podcasts (33)
  • Urban Farming (25)
  • Weekend Projects (16)

Blog Archives

Join the Cotton Club!

 

Content Copyright © 2000-2026
Cotton Rohrscheib | Rohrscheib Capital
Disclaimer | Privacy Policy | Account Manager | View Cart

All opinions expressed on this website are 100% Cotton (see my disclaimer). All content, including text, images, and media, are the intellectual property of Rohrscheib Capital unless otherwise noted. To learn how we use your private information, checkout our privacy policy.