Browser Plugins API returns an error in combination with filter_truncate #3892

Closed
tsteur opened this Issue Apr 13, 2013 · 4 comments

2 participants

@tsteur
Piwik Open Source Analytics member

Link to reproduce: http://demo.piwik.org/?module=API&method=UserSettings.getPlugin&idSite=7&period=day&date=today&format=JSON&token_auth=anonymous&filter_truncate=3

Error Message:

{
result: "error",
message: "API returned an error: Trying to add two strings values in DataTable_Row::sumRowArray: '79.6%' + '54.4%'"
}
@tsteur
Piwik Open Source Analytics member

Maybe it could count how many other plugins are available instead of adding the percentages?

Background: I am using filter_truncate on all reports of the dashboard in new Piwik Mobile app

@mattab
Piwik Open Source Analytics member

In 7853d2d: fixes #3892 Fixing + testing filter_truncate on getPlugin

@mattab
Piwik Open Source Analytics member

btw the fix is not ideal (the "nb_visits" is pretty incorrect / pointless) but at least it works ;)

@tsteur
Piwik Open Source Analytics member

thx!

@mattab mattab was assigned by tsteur Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment