WordPress.org

Ready to get started?Download WordPress

Forums

Google Analyticator
[resolved] Google_AuthException - why just on this domain? (36 posts)

  1. raduherjeu
    Member
    Posted 1 year ago #

    Hi.

    I had the same problem. I've just updated the plugin, i took another Google Authentication Code, i inserted it. Now, i have a bigger error :)

    Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3Aga%3A58403231&start-date=2012-08-20&end-date=2012-09-18&metrics=ga%3Avisitors: (400) Invalid value 'ga:ga:58403231'. Values must match the following regular expression: 'ga:[0-9]+'' in /home/licart/public_html/raduherjeu.ro/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php:66 Stack trace: #0 /home/licart/public_html/raduherjeu.ro/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 /home/licart/public_html/raduherjeu.ro/wp-content/plugins/google-analyticator/google-api-php-client/src/service/Google_ServiceResource.php(177): Google_REST::execute(Object(Google_HttpRequest)) #2 /home/licart/public_html/raduherjeu.ro/wp-content/plugins/google-analyticator/google-api-php-client/src/contrib/Google_AnalyticsService.php(274): Google_ServiceResource->__cal in /home/licart/public_html/raduherjeu.ro/wp-content/plugins/google-analyticator/google-api-php-client/src/io/Google_REST.php on line 66

  2. tommcgee
    Member
    Posted 1 year ago #

    I'm getting the same error after upgrading.

    The basic problem seems to be that a second "ga:" is being prepended to the account ID where it's not needed. Can't you put in a pattern-match to see if it's there first, and only prepend if necessary?

    The widget is broken, too. I see a dot (.) then the rest of the widget container fails to execute.

  3. tommcgee
    Member
    Posted 1 year ago #

    Another problem using multisite, I was getting tons of "Request exceeded the limit of 10 internal redirects due to probable configuration error" messages, which I tracked down to a line in google-analytics-summary-widget.php, line 60.

    The ajax call includes this:

    url: 'admin-ajax.php',

    But in a multisite environment your dashboard is in http://www.myblogs.com/wp-admin/network, in which case it's going to be looking for a file that doesn't exist.

    url: '<?php bloginfo('url'); ?>/wp-admin/admin-ajax.php',

    probably makes more sense.

  4. tommcgee
    Member
    Posted 1 year ago #

    Marked "resolved," but isn't.

  5. Peter Le C
    Member
    Posted 1 year ago #

    I was asked by Ben to mark as resolved as I started this thread!
    The current version solves my issues.

    I don't know but maybe it's more appropriate to start your own thread?

    I'm sure Ben will chirp in guys.

  6. Video User Manuals
    Member
    Plugin Author

    Posted 1 year ago #

    Hi tommcgee - when you upgraded, did you de-authorise and reset? There was indeed an old variable being used, which was causing the ga: to be appended twice.

    I haven't looked at this on MU - If you'd be able to test that and let me know, it would be very helpful.

    My guess is, we just need to wrap admin-ajax.php with network_admin_url( 'admin-ajax.php' );

    http://codex.wordpress.org/Function_Reference/network_admin_url

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.