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

UserSettings.getMobileVsDesktop error with period=month, date=previous1, idSite=all #3972

Closed
anonymous-matomo-user opened this issue Jun 3, 2013 · 1 comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

Piwik v1.12 with almost 800 sites.

The following API request

module=API&token_auth=OURTOKEN&method=UserSettings.getMobileVsDesktop&period=month&date=previous1&idSite=all

results in this error:

Fatal error: Call to undefined method Piwik_DataTable_Array::getRowFromLabel() in /var/www/html/piwik/plugins/UserSettings/API.php on line 108

It is strange because the following request is successful, which should be the same report as above:

module=API&token_auth=OURTOKEN&method=UserSettings.getMobileVsDesktop&period=month&date=2013-05&idSite=all

And I get a successful result with period=month&date=previous1 if idSite != all:

module=API&token_auth=OURTOKEN&method=UserSettings.getMobileVsDesktop&period=month&date=previous1&idSite=846

This seems like a bug with the previous keyword, because specifying period=month&date=2013-05 should be the same report as period=month&date=previous1, right? And it seems like it may be specific to getMobileVsDesktop, as none of my other monthly reports have trouble using the previous1 keyword.

@mattab
Copy link
Member

mattab commented Feb 6, 2014

Works for me in Piwik 2.0.4

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