• Resolved Marius

    (@turkal)


    Hi Alex,

    I’d love to use your addon but unfortunately I can’t make it work so far. When I try to save the Google access code in the setting page, nothing happens. I had a look to my browser console and can see that when clicking on “save”, an AJAX request is sent to admin-ajax.php. However, in my case, I get an [HTTP/1.1 500 Internal Server Error 304ms] in return…

    I had a look to my php error log, and here is what I found:

    [14-Jul-2017 11:48:28 Europe/Brussels] PHP Fatal error:  Uncaught Error: Call to a member function makeRequest() on null in /srv/data/web/vhosts/mysite.com/htdocs/wp-content/plugins/cf7-google-sheets-connector/lib/php-google-oauth/auth/Google_OAuth2.php:92
    Stack trace:
    #0 /srv/data/web/vhosts/mysite.com/htdocs/wp-content/plugins/cf-google-sheets/lib/php-google-oauth/Google_Client.php(128): CF7GSC_Google_OAuth2->authenticate(Array, '4/aVb5-Lb9-e5df...')
    #1 /srv/data/web/vhosts/mysite.com/htdocs/wp-content/plugins/cf-google-sheets/lib/google-sheets.php(27): CFGS_Google_Client->authenticate('4/aVb5-Lb9-e5df...')
    #2 /srv/data/web/vhosts/mysite.com/htdocs/wp-content/plugins/cf-google-sheets/includes/class-cfgs-service.php(44): cfgooglesheet::preauth('4/aVb5-Lb9-e5df...')
    #3 /srv/data/web/vhosts/mysite.com/htdocs/wp-includes/class-wp-hook.php(298): Cfgs_Connector_Service->verify_gs_integation('')
    #4 /srv/data/web/vhosts/mysite.com/htdocs/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
    #5 /srv/data/web/vhosts/mysite.com/htdocs/wp-includes/plugin.php(453): W in /srv/data/web/vhosts/mysite.com/htdocs/wp-content/plugins/cf7-google-sheets-connector/lib/php-google-oauth/auth/Google_OAuth2.php on line 92

    I don’t understand much about this log but I hope it can help resolve the issue!

    Thanks!

    Marius

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alex Agranov

    (@alexagr)

    Looks like something is wrong with your access code. Please make sure that you select all characters before copy/pasting it. And try using a different browser.

    Thread Starter Marius

    (@turkal)

    Hi Alex,

    Thanks for the quick answer. I finally found where was the issue. Looks like there is a conflict when both CF7 Google Sheet Connector and your plugin are activated. I deactivated the former and everything is finally working well.

    Thanks for your job!

    Marius

    I’m having this same issue. I’m getting a couple of different errors:

    20 October 2017 17:25:20 PHP 7.0.24Array
    (
    [ERROR_MSG] => Error refreshing the OAuth2 token, message: ‘{
    “error” : “invalid_request”,
    “error_description” : “Missing required parameter: refresh_token”
    }’
    [TRACE_STK] => #0 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/lib/php-google-oauth/auth/Google_OAuth2.php(239): CFGS_Google_OAuth2->refreshTokenRequest(Array)
    #1 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/lib/php-google-oauth/Google_Client.php(312): CFGS_Google_OAuth2->refreshToken(NULL)
    #2 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/lib/google-sheets.php(50): CFGS_Google_Client->refreshToken(NULL)
    #3 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/includes/class-cfgs-service.php(88): cfgooglesheet->auth()
    #4 /home/binaura1/public_html/fignow.com/wp-content/plugins/caldera-forms/classes/core.php(3156): Cfgs_Connector_Service->cfgs_publish(Array, Array, ‘_cf_process_59e…’)
    #5 /home/binaura1/public_html/fignow.com/wp-content/plugins/caldera-forms/classes/core.php(4849): Caldera_Forms::process_submission()
    #6 /home/binaura1/public_html/fignow.com/wp-content/plugins/caldera-forms/classes/core.php(3539): Caldera_Forms::process_form_via_post()
    #7 /home/binaura1/public_html/fignow.com/wp-includes/class-wp-hook.php(298): Caldera_Forms->cf_init_system(”)
    #8 /home/binaura1/public_html/fignow.com/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
    #9 /home/binaura1/public_html/fignow.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #10 /home/binaura1/public_html/fignow.com/wp-settings.php(469): do_action(‘wp_loaded’)
    #11 /home/binaura1/public_html/fignow.com/wp-config.php(107): require_once(‘/home/binaura1/…’)
    #12 /home/binaura1/public_html/fignow.com/wp-load.php(37): require_once(‘/home/binaura1/…’)
    #13 /home/binaura1/public_html/fignow.com/wp-blog-header.php(13): require_once(‘/home/binaura1/…’)
    #14 /home/binaura1/public_html/fignow.com/index.php(17): require(‘/home/binaura1/…’)
    #15 {main}
    )
    20 October 2017 17:25:24 PHP 7.0.24Array
    (
    [ERROR_MSG] => Error fetching OAuth2 access token, message: ‘invalid_grant’
    [TRACE_STK] => #0 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/lib/php-google-oauth/Google_Client.php(128): CFGS_Google_OAuth2->authenticate(Array, ‘4/D_Knf8aTMTniW…’)
    #1 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/lib/google-sheets.php(27): CFGS_Google_Client->authenticate(‘4/D_Knf8aTMTniW…’)
    #2 /home/binaura1/public_html/fignow.com/wp-content/plugins/cf-google-sheets/includes/class-cfgs-service.php(44): cfgooglesheet::preauth(‘4/D_Knf8aTMTniW…’)
    #3 /home/binaura1/public_html/fignow.com/wp-includes/class-wp-hook.php(298): Cfgs_Connector_Service->verify_gs_integation(”)
    #4 /home/binaura1/public_html/fignow.com/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #5 /home/binaura1/public_html/fignow.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /home/binaura1/public_html/fignow.com/wp-admin/admin-ajax.php(91): do_action(‘wp_ajax_verify_…’)
    #7 {main}

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t save the Google access code’ is closed to new replies.