WordPress.org

Ready to get started?Download WordPress

Forums

SubZane Google Analytics Plugin
After WP upgrade to 3.1, SubZane plugin widget does not sh (4 posts)

  1. akky
    Member
    Posted 3 years ago #

    Google Analytics Dashboard Plugin is on and working (showing stats on admin panel).

  2. Bradford
    Member
    Posted 3 years ago #

    Yep, broken. Widget shows:

    Warning: Missing argument 4 for GALib::GALib(), called in /var/www/theblawblog.com/wp-content/plugins/subzane-google-analytics-plugin/sz-google-analytics-widget.php on line 101 and defined in /var/www/theblawblog.com/wp-content/plugins/google-analytics-dashboard/ga-lib.php on line 37

    Warning: Invalid argument supplied for foreach() in /var/www/theblawblog.com/wp-content/plugins/subzane-google-analytics-plugin/sz-google-analytics-widget.php on line 108
    Popular Posts

    Warning: Invalid argument supplied for foreach() in /var/www/theblawblog.com/wp-content/plugins/subzane-google-analytics-plugin/sz-google-analytics-widget.php on line 32

  3. Bradford
    Member
    Posted 3 years ago #

    If you replace line 101 of sz-google-analytics-widget.php which is:

    $ga = new GALib($login->auth_token, $login->account_id, 60);

    with:

    $ga = new GALib($login->auth_type, $login->auth_token, $login->oauth_token, $login->oauth_secret, $login->account_id, 60);

    it will work. Plugin author, please fix this :) Also, please give it better trim support - the "|" character and "'" character cause it to error.

    Thanks for your hard work.

  4. epot
    Member
    Posted 2 years ago #

    Thanks Bradford, that worked a treat.

    And in regards to the trimming, I can't seem to get rid of my blog title in my popular posts display. Anyone know what to do there?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic