Opened 13 months ago

Closed 12 months ago

Last modified 12 months ago

#3892 closed Bug (fixed)

Browser Plugins API returns an error in combination with filter_truncate

Reported by: tsteur Owned by: mattab
Priority: normal Milestone:
Component: Core Keywords:
Cc: Sensitive: no

Description

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%'"
}

Change History (4)

comment:1 Changed 13 months ago by tsteur

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

comment:2 Changed 12 months ago by matt (mattab)

  • Owner set to mattab
  • Resolution set to fixed
  • Status changed from new to closed

In 7853d2d1d04b2fd59630d116055bf439d843076c:

fixes #3892 Fixing + testing filter_truncate on getPlugin

comment:3 Changed 12 months ago by matt (mattab)

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

comment:4 Changed 12 months ago by tsteur

thx!

Note: See TracTickets for help on using tickets.