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

Fatal error: Call to undefined method Piwik_DataTable_Array::getRows() in /var/www/piwik/core/DataTable/Renderer/Html.php on line 83 #2417

Closed
anonymous-matomo-user opened this issue May 10, 2011 · 4 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@anonymous-matomo-user
Copy link

When using the API with the Html output and the 'lastX' date value, I get the error above.

index.php?module=API&method=Referers.getSearchEngines&idSite=all&period=day&date=last2&format=Html&token_auth=

example URL. Apparently, getRows() is not a method. This bug is compounded by the fact that later, there is no getColumns() method in Piwik_DataTable, so the majority of this does not work.
Keywords: api

@anonymous-matomo-user
Copy link
Author

Please note, that this is only the combination of multiple idSite values (or all), the Html renderer, and a lastX date value. No other combination of these values seems to trigger this problem.

Also, I'm using version 1.3 currently.

@ziegenberg
Copy link
Contributor

Applies to Version 1.4 as well.

@sgiehl
Copy link
Member

sgiehl commented May 21, 2011

HTML DataTable Renderer can't handle that case at the moment. If more that one siteId is given there will be DataTableArrays within a DataTableArray. The HTML-Renderer only handles one dimension of DataTableArrays.

@mattab
Copy link
Member

mattab commented May 30, 2011

(In [4829]) Error message when unsupported combination of parameters (please use json or XML or csv which work, HTML is designed only as a debug/test output) fixes #2417

@anonymous-matomo-user anonymous-matomo-user added this to the 1.5 - Piwik 1.5 milestone 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
Labels
Bug For errors / faults / flaws / inconsistencies etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

4 participants