Title: Access Code Saved. But do check the debug log for invalid access code.
Last modified: April 28, 2017

---

# Access Code Saved. But do check the debug log for invalid access code.

 *  Resolved [Rwan](https://wordpress.org/support/users/du-penhoat/)
 * (@du-penhoat)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/access-code-saved-but-do-check-the-debug-log-for-invalid-access-code/)
 * Hi
 * I have got this message when I try to connect google sheet integration to my 
   Google Drive account.
    I am not into a local host.
 * 19 avril 2017 11:10:33 PHP 7.0.15-0ubuntu0.16.04.4 Error fetching OAuth2 access
   token, message: ‘invalid_grant’ :: 400
 * Thanks
 * Erwan

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WesternDeal](https://wordpress.org/support/users/westerndeal/)
 * (@westerndeal)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/access-code-saved-but-do-check-the-debug-log-for-invalid-access-code/#post-9103450)
 * Hi [@du-penhoat](https://wordpress.org/support/users/du-penhoat/)
 * We have released a new version. we recommend you to upgrade the plugin.
 * For your invalid grant issue refer ( [https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35](https://blog.timekit.io/google-oauth-invalid-grant-nightmare-and-how-to-fix-it-9f4efaf1da35))
 * Refer point #2 on the above link
    Now go to this file cf7-google-sheets-connector\
   lib\php-google-oauth\auth\Google_OAuth2.php line number 33 and replace “offline”
   to “online” and test.
 * either,
 * After upgrading the plugin, first deactivate your plugin and delete it, after
   that again install the plugin.
 * While deleting it will clear existing auth data from the database. So you need
   to update first and than delete.
 * Hope this helps. Let us know.
 * Thanks
    Abdullah
 *  [carolt2195](https://wordpress.org/support/users/carolt2195/)
 * (@carolt2195)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/access-code-saved-but-do-check-the-debug-log-for-invalid-access-code/#post-9481974)
 * Does your plug in work with the newer version of Google forms? Does it required
   Google forms at all?I use another plug in that requires I select the older version
   of google forms every time I create a new form. Want to be able to create forms
   on WP pages tied to Google sheet docs. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Access Code Saved. But do check the debug log for invalid access code.’
is closed to new replies.

 * ![](https://ps.w.org/cf7-google-sheets-connector/assets/icon-128x128.gif?rev=
   3232650)
 * [GSheetConnector for CF7 – Connect Contact Form 7 to Google Sheets and Send Form Submissions in Real Time](https://wordpress.org/plugins/cf7-google-sheets-connector/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-google-sheets-connector/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-google-sheets-connector/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-google-sheets-connector/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-google-sheets-connector/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-google-sheets-connector/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [carolt2195](https://wordpress.org/support/users/carolt2195/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/access-code-saved-but-do-check-the-debug-log-for-invalid-access-code/#post-9481974)
 * Status: resolved