WordPress.org

Forums

Google Analytics Dashboard for WP
[resolved] Error installing onto GoDaddy WordPress managed hosting (9 posts)

  1. W S
    Member
    Posted 1 year ago #

    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/

  2. Alin Marcu
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. W S
    Member
    Posted 1 year ago #

    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

  4. Alin Marcu
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. W S
    Member
    Posted 1 year ago #

    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

  6. Alin Marcu
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. Michael
    Member
    Posted 12 months ago #

    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

  8. Alin Marcu
    Member
    Plugin Author

    Posted 12 months ago #

    @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)!

  9. Michael
    Member
    Posted 12 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Analytics Dashboard for WP
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.