Navigation Menu

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

Custom DataTable code fail when date=lastX or previousY #2133

Closed
mattab opened this issue Mar 4, 2011 · 3 comments
Closed

Custom DataTable code fail when date=lastX or previousY #2133

mattab opened this issue Mar 4, 2011 · 3 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Mar 4, 2011

From forum post:

?module=API&method=Actions.getPageUrl&idSite=1&pageUrl=$url&period=day&date=last1&format=JSON&token_auth=$tkn

Fatal error: Call to undefined method Piwik_DataTable_Array::getRows() in /stats/plugins/Actions/API.php on line 127

This is similar to #1125

The solution involves maybe creating a helper or somehow ensuring that the filters understand that reports are grouped by Date.

@mattab
Copy link
Member Author

mattab commented Mar 4, 2011

Another report of probably similar bug (to check!) in the forum:


method=Actions.getPageTitles
idSite=1
period=week
date=today
filter_sort_order=desc
filter_limit=15
format=JSON
token_auth=$tkn

But, if you change date to keyword 'last4', it gives the following error:
"Column avg_time_on_page already in the array!" 

@mattab
Copy link
Member Author

mattab commented Mar 23, 2011

actually comment #1 above is the bug #2218, but the ticket itself is a different issue

@mattab
Copy link
Member Author

mattab commented Mar 26, 2011

(In [4197]) Refs #2133 Ensuring no error is thrown, but not dealing with the issue itself as unfortunately there is no easy way to do so

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. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

1 participant