Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tsteur opened this issue Apr 13, 2013 · 4 comments
Closed
Assignees
Labels
Bug For errors / faults / flaws / inconsistencies etc.

Comments

@tsteur
Copy link
Member

tsteur commented Apr 13, 2013

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
Copy link
Member Author

tsteur commented Apr 13, 2013

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
Copy link
Member

mattab commented Apr 14, 2013

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

@mattab
Copy link
Member

mattab commented Apr 14, 2013

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

@tsteur
Copy link
Member Author

tsteur commented Apr 14, 2013

thx!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

2 participants