WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Error installing onto GoDaddy WordPress managed hosting

[Resolved] Error installing onto GoDaddy WordPress managed hosting

  • Hi,
    Trying to install your plugin onto GoDaddy WP managed hosting, but getting error. GoDaddy tech support does not see any cause for this though one of their guys suggested your plug-in. Thanks in advance for your help! See error message pasted below:

    Fatal error: Uncaught exception ‘Google_AuthException’ with message ‘Error fetching OAuth2 access token, message: ‘invalid_grant” in /home/content/p3nexnas03/18/2082018/html/wp-content/plugins/clean-my-dashboard-now/src/auth/Google_OAuth2.php:113 Stack trace: #0 /home/content/p3nexnas03/18/2082018/html/wp-content/plugins/clean-my-dashboard-now/src/Google_Client.php(131): Google_OAuth2->authenticate(Array, ‘UA-51213418-2’) #1 /home/content/p3nexnas03/18/2082018/html/wp-content/plugins/clean-my-dashboard-now/ga_dash.php(337): Google_Client->authenticate(‘UA-51213418-2’) #2 [internal function]: ga_dash_content(”, Array) #3 /home/content/p3nexnas03/18/2082018/html/wp-admin/includes/template.php(985): call_user_func(‘ga_dash_content’, ”, Array) #4 /home/content/p3nexnas03/18/2082018/html/wp-admin/includes/dashboard.php(190): do_meta_boxes(‘dashboard’, ‘normal’, ”) #5 /home/content/p3nexnas03/18/2082018/html/wp-admin/index.php(125): wp_dashboard() #6 {main} thrown in /home/content/p3nexnas03/18/2082018/html/wp-content/plugins/clean-my-dashboard-now/src/auth/Google_OAuth2.php on line 113

    https://wordpress.org/plugins/google-analytics-dashboard-for-wp/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Alin Marcu
    Participant

    @deconf

    First of all make sure you use the latest version and go to Google Analytics => General Settings, unckeck the option use my own API Project and authorize as usual.

    Thanks for your reply, Alin. I am using version 4.2.19, which I downloaded via GoDaddy’s interface. And I am not checking the box that says “Use my own API Project.” Here is the error message I am getting now:

    Fatal error: Call to undefined function ga_dash_reset_token() in /home/content/p3nexnas03/18/2082018/html/wp-content/plugins/google-analytics-dashboard-for-wp/admin/ga_dash_settings.php on line 637

    Plugin Author Alin Marcu
    Participant

    @deconf

    Please uninstall it and reinstall because the authentification request is strange (it shouldn’t include an account ID) + the error is about some missing files, let me know if that works.

    Thanks again for your help. Do you I think should generate a new GA tracking ID? Perhaps the one I’m using now is corrupt somehow.

    I deactivated the plugin, deleted it, then re-installed it. Still getting same error:

    Fatal error: Call to undefined function ga_dash_reset_token() in /home/content/p3nexnas03/18/2082018/html/wp-content/plugins/google-analytics-dashboard-for-wp/admin/ga_dash_settings.php on line 637

    Plugin Author Alin Marcu
    Participant

    @deconf

    Being a managed WP, please ask your support to look in the PHP error log, it should be an inclusion error about tools.php.

    Probably something wrong with paths on server side.

    Michael
    Member

    @mikehueter

    I’m having a similar error, could not find solution from searching. I’m hosting with SiteGround.

    when entering auth code, no API, just auth:

    'Fatal error: Call to undefined function ga_dash_reset_token() in /home/--------/public_html/wp-content/plugins/google-analytics-dashboard-for-wp/admin/ga_dash_settings.php on line 637'

    Debug:

    Last Error: exception 'Google_AuthException' with message 'Error fetching OAuth2 access token, message: 'invalid_grant'' in /home/rachelb8/public_html/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/auth/Google_OAuth2.php:115
    Stack trace:
    #0 /home/-----/public_html/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google_Client.php(127): Google_OAuth2->authenticate(Array, 'UA-51488310-1')
    #1 /home/------/public_html/wp-content/plugins/google-analytics-dashboard-for-wp/admin/ga_dash_settings.php(625): Google_Client->authenticate('UA-51488310-1')
    #2 [internal function]: GADASH_Settings::general_settings('')
    #3 /home/------/public_html/wp-includes/plugin.php(470): call_user_func_array(Array, Array)
    #4 /home/------/public_html/wp-admin/admin.php(211): do_action('toplevel_page_g...')
    #5 {main}

    Reinstalled to no avail

    Plugin Author Alin Marcu
    Participant

    @deconf

    @michael & @w-s please read the Google Analytics Dashboard for WP tutorial, because you are entering the UA code when the plugin actually asks you to generate the Access Code (by pushing that blue link called Get Access Code)!

    Michael
    Member

    @mikehueter

    OK thanks I got it! (I had to get my client to login with their google info, thought I didn’t have to before)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Error installing onto GoDaddy WordPress managed hosting’ is closed to new replies.