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
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.
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?