Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#682 closed Bug (fixed)

Notice: Undefined property: Piwik_DataTable rows

Reported by: kolchak Owned by:
Priority: normal Milestone:
Component: Core Keywords:
Cc: Sensitive:


I've noticed a problem with newly registered sites and the MultiSitesPlugin. As soon as you register a site via the API, then go straight to the Multi Site widget, you get an error like this:

Notice: Undefined property: Piwik_DataTable_Simple::$rows in /home/stats/piwik/core/DataTable.php on line 457 Backtrace -->
#0 Piwik_ErrorHandler(8, Undefined property: Piwik_DataTable_Simple::$rows, /home/stats/piwik/core/DataTable.php, 457, Array ()) called at home/stats/piwik/core/DataTable.php:457
#1 Piwik_DataTable->rebuildIndex() called at home/stats/piwik/core/DataTable.php:433
#2 Piwik_DataTable->getRowFromLabel(0) called at home/stats/piwik/core/DataTable/Simple.php:54
#3 Piwik_DataTable_Simple->getColumn(0) called at home/stats/piwik/plugins/MultiSitesPlugin/Controller.php:156
#4 Piwik_MultiSitesPlugin_Controller->getSummary(Piwik_DataTable_Array Object ([metadata] => Array (),[] => Array ([2] => Piwik_DataTable_Simple Object ([] => Array ([0] => Piwik_DataTable_Row Object ([c] => Array ([0] => Array ([label]

An example of the API call I'm using is:[0]=

Change History (3)

comment:1 Changed 5 years ago by matt (mattab)

  • Summary changed from Error in addSite API call and MultiSitesPlugin to Notice: Undefined property: Piwik_DataTable rows

comment:2 Changed 5 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1079]) - fixed #682 Notice: Undefined property: Piwik_DataTable

comment:3 Changed 5 years ago by domtop

Note: See TracTickets for help on using tickets.