Call to undefined method Piwik_DataTable_Array::getFirstRow
|Reported by:||Zet||Owned by:|
|Priority:||major||Milestone:||1.7 Piwik 1.7|
|Component:||Core||Keywords:||Goals, Piwik_DataTable_Array, getFirstRow|
I use latest Piwik 1.6.
To get goals for specific site, I use this API:
And everything is OK.
But when I want to get goals for all sites, I set "idSite=all" and get error:
Fatal error: Call to undefined method Piwik_DataTable_Array::getFirstRow() in /home/piwik/www/plugins/Goals/API.php on line 412
"idSite=all" works perfectly for visitors and I expect the same for goals. idSite="128,129,130" gives the same error.
I looked into the code but was unable to understand what's wrong. There's a protected function enrichTable($table) which is called in two places and I suspect one of them calls it with wrong type. I am not familiar with piwik internals to fix it properly.
Change History (3)
comment:1 Changed 2 years ago by matt (mattab)
- Milestone set to 1.7 Piwik 1.7
- Priority changed from normal to low