Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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-piwik-user opened this Issue · 4 comments

4 participants

@anonymous-piwik-user

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-piwik-user

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

Applies to Version 1.4 as well.

@sgiehl
Collaborator

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
Owner

(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-piwik-user anonymous-piwik-user added this to the 1.5 - Piwik 1.5 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.