• Resolved pardoj

    (@pardoj)


    Hello,

    I have a problem with CF7 Google Sheets Connector Plugin. See debug log here.
    I have this “Auth, Invalid OAuth2 access token”. The conexion to my Google account is ok, and all configuration parameters (Google sheet/tab name/id) oar also ok. Nothing appear in my google sheet anyway.

    Anay idea?

    Thanks a lots !

    John

    17 avril 2020 17:27:49 PHP 7.4.4Array
    (
    [ERROR_MSG] => Auth, Invalid OAuth2 access token
    [TRACE_STK] => #0 /home/www/www.silverecoquest.be/wordpress/wp-content/plugins/cf7-google-sheets-connector/includes/class-gs-service.php(131): cf7gsc_googlesheet->auth()
    #1 /home/www/www.silverecoquest.be/wordpress/wp-includes/class-wp-hook.php(287): Gs_Connector_Service->cf7_save_to_google_sheets()
    #2 /home/www/www.silverecoquest.be/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #3 /home/www/www.silverecoquest.be/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action()
    #4 /home/www/www.silverecoquest.be/wordpress/wp-content/plugins/contact-form-7/includes/submission.php(214): do_action()
    #5 /home/www/www.silverecoquest.be/wordpress/wp-content/plugins/contact-form-7/includes/submission.php(34): WPCF7_Submission->submit()
    #6 /home/www/www.silverecoquest.be/wordpress/wp-content/plugins/contact-form-7/includes/contact-form.php(740): WPCF7_Submission::get_instance()
    #7 /home/www/www.silverecoquest.be/wordpress/wp-content/plugins/contact-form-7/includes/rest-api.php(285): WPCF7_ContactForm->submit()
    #8 /home/www/www.silverecoquest.be/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1015): wpcf7_rest_create_feedback()
    #9 /home/www/www.silverecoquest.be/wordpress/wp-includes/rest-api/class-wp-rest-server.php(342): WP_REST_Server->dispatch()
    #10 /home/www/www.silverecoquest.be/wordpress/wp-includes/rest-api.php(306): WP_REST_Server->serve_request()
    #11 /home/www/www.silverecoquest.be/wordpress/wp-includes/class-wp-hook.php(287): rest_api_loaded()
    #12 /home/www/www.silverecoquest.be/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
    #13 /home/www/www.silverecoquest.be/wordpress/wp-includes/plugin.php(544): WP_Hook->do_action()
    #14 /home/www/www.silverecoquest.be/wordpress/wp-includes/class-wp.php(388): do_action_ref_array()
    #15 /home/www/www.silverecoquest.be/wordpress/wp-includes/class-wp.php(735): WP->parse_request()
    #16 /home/www/www.silverecoquest.be/wordpress/wp-includes/functions.php(1274): WP->main()
    #17 /home/www/www.silverecoquest.be/wordpress/wp-blog-header.php(16): wp()
    #18 /home/www/www.silverecoquest.be/wordpress/index.php(17): require(‘/home/www/www.s…’)
    #19 {main}
    )

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WesternDeal

    (@westerndeal)

    Hi @pardoj,

    The error “Auth, Invalid OAuth2 access token” means it has not authenticated perfectly.

    We suggest you to go in google permissions and remove Access manually,
    https://myaccount.google.com/permissions
    and then reauthenticate once again from a plugin using a fresh authentication code.

    Also, clear the log.txt file before reauthentication.

    Hope this helps. Let us know.

    Thanks
    Abdullah

    aizatfaliq

    (@aizatfaliq)

    Hello,

    I’m facing the same issue and have followed the advice given, but I’m still facing the same issue. This leads to data not being stored in the google sheets. Is there anything else that I can do?

    husain12121

    (@husain12121)

    Hello,

    I’m facing the same issue and have followed the advice given, but I’m still facing the same issue. I’m unable to save the access code and in below “Save” button it gives me two more options Log, Clear. When I click on log it opens a new link.. “…log.txt” and it’s a blank page. please help.

    Plugin Author WesternDeal

    (@westerndeal)

    Hello @aizatfaliq, @husain12121,

    If the authentication box displays “Currently Active” and your log.txt file is empty it means it has successfully integrated.

    But if while adding the authentication code if spinner just spins and not save anything then do the following:

    Add the below code in the wp-config.php above /* That’s all, stop editing! Happy blogging. */
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, true );
    define( ‘SCRIPT_DEBUG’, true );
    define( ‘SAVEQUERIES’, true );

    After adding the above code get the fresh authentication code and save it again and see what error is printed under the debug.log file created under the wp-content folder of WordPress.

    Lastly, send us the debug file.

    Thanks
    Abdullah

    Hello,
    I have tried everything. Yesterday I was getting error logs but today when I connect i am not getting any error logs. I have uninstalled and reinstalled the plugin. I have manually removed the google connect code and put in a new one multiple times. I have recopied and pasted the Google Sheet name, id, tab name and tab id multiple times. I have made certain that all my headers are correct and do not have brackets. My debug log is true.

    I have version 4.2.
    Any help is appreciated.

    Plugin Author WesternDeal

    (@westerndeal)

    Hi @wlcarr,

    As you are not getting any error under log.txt file it means you have successfully integrated and are you able to see “Currently Active” inside the authentication box?

    If all is good then did you enable WordPress debug and checkout any error under it?

    Also checkout console error and deactivate other CF7 add-ons and see if there is no conflict.

    If all is good and still not working then contact our support for further assistance.

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

The topic ‘Auth, Invalid OAuth2 access token’ is closed to new replies.