WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Google Analyticator] possible bug (error included) (9 posts)

  1. Steven Vachon
    Member
    Posted 3 years ago #

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/google-analyticator/google-analyticator.php on line 932

    http://wordpress.org/extend/plugins/google-analyticator/

  2. cavemonkey50
    Member
    Posted 3 years ago #

    That error points to an issue with authentication. Are you having trouble authenticating with Google, or have you authenticated a Google account that does not have any Analytics accounts associated with it?

  3. cavemonkey50
    Member
    Posted 3 years ago #

    This also points to the experimental function get_analytics_visits_by_page. How are you using this function?

  4. Steven Vachon
    Member
    Posted 3 years ago #

    Everything's been authenticated.

    I wasn't having this issue before updating to the latest version, and I'm using it in a very simple fashion:

    get_analytics_visits_by_page($current_url, 99999);

  5. cavemonkey50
    Member
    Posted 3 years ago #

    Thanks for the clarification that this worked fine before the update. I have an idea now of what's breaking the function, and I apologize for not completely testing that function.

    Right now, I'm planning on releasing a bug fix this weekend at the latest with any bugs that have cropped up since release. I will make sure this is fixed for that release, and if I have any trouble reproducing the issue, I'll respond back here.

    For now, I believe the issue is related to a variable not being set. By setting $_POST['token'] to the token found in your database, it should solve the issue if you're looking for a temporary workaround.

    For the future, I do have a much better stat system planned that will make getting stats like page visits and other API data a breeze with themes. The system is prototyped out; it's just a matter of finding time to code it. When I do get around to writing the code, would you be interested in helping beta test the new system?

  6. Steven Vachon
    Member
    Posted 3 years ago #

    Sure, I'd be glad to help. I've actually been somewhat anxious about it since you first released the function in v6.0

  7. Yalla-one
    Member
    Posted 3 years ago #

    Is this the same bug that shows up in the Settings part of the plugin too, where the roles to track and not are listed with checkboxes?
    I get the following series of errors:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/htdocs/wp-content/plugins/google-analyticator/google-analyticator.php on line 362
    /> Administrator

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/htdocs/wp-content/plugins/google-analyticator/google-analyticator.php on line 362
    /> Editor

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/htdocs/wp-content/plugins/google-analyticator/google-analyticator.php on line 362
    /> Author

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/htdocs/wp-content/plugins/google-analyticator/google-analyticator.php on line 362
    /> Contributor

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /var/www/htdocs/wp-content/plugins/google-analyticator/google-analyticator.php on line 362
    /> Subscriber

  8. Steven Vachon
    Member
    Posted 3 years ago #

    Just curious on how the new stat system is coming

  9. cavemonkey50
    Member
    Posted 3 years ago #

    No ETA. To be honest Google Analyticator has really been on the back burner lately.

Topic Closed

This topic has been closed to new replies.

About this Topic