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
Calling API with idSite=All and a period range like last30 results in an error #5736
Comments
Attached a patch that fixes the issue. The patch also does a fairly extensive refactoring of Piwik_Archive_Array_IndexedBySite. Specifically it splits getDataTableFromNumeric into several smaller functions and combines some loops so that instead of iterating through each of the site ids four times, it only goes through once. I’m not very happy with the implementation of getFirstArchive. My PHP is a bit rusty, but that is the best way I could find to get the first element of an associative array when you don’t have the key. I would greatly appreciate suggestions for how to do that better. |
Updated the patch, I somehow managed to upload a version that had a typo in it. |
thanks for the patch, but I fixed it another way, so that when requesting with idSite it will always have the same structure (ie. a result node with idSite attribute). |
I mean this changeset [and you can even ignore the second diff I reverted in 585(584]) |
[and 585(584]) fix #5734. This is a separate issue that they do not fix. To reproduce the error run the following command run the attached script (based off of the archive.sh) you will see the same error described in the initial ticket. I understand if you are hesitant about such a large patch. The fix for the issue itself is quite simple, and runs from line 44-51 of the updated IndexedBySite.php. Basically, getDataTableFromNumeric can’t assume that the archives array contains objects of type Piwik_Archive_Single, as it will contain objects of type Piwik_Archive_Array_IndexedByDate if a date range is provided. I also strongly feel that getDataTableFromNumeric should be refactored from one monolithic method to several shorter methods. Furthermore, lines 72-96 of the existing IndexedBySite.php contain four loops that iterate through all the archives that could be combined into one loop. Line 89 contains an unnecessary sort (The archives are sorted by the idSite in the constructor, so iterating through the archives array to construct the contentArray on line 80 guarantees that the contentArray will be ordered by the idSite) If you prefer, I’d be happy to split the patch into two: one to fix this issue, and one to refactor to smaller methods and less loops. |
Attachment: Script to reproduce this bug. |
Attachment: |
Updated patch to work on the head of trunk, with the modules directory renamed to core. |
patrick, |
This has been fixed. Matt committed it in 656. |
Calling the API with idSite=all and a period range results in the following error:
``
The stack trace is as follows:
``````
Backtrace —>#0 Piwik_ErrorHandler(8, Undefined property: Piwik_Archive_Array_IndexedByDate::$archiveProcessing, /piwik/modules/Archive/Array/IndexedBySite.php, 55, Array ([fields] => Array (0 => nb_uniq_visitors_returning,1 => nb_visits_returning,2 => nb_actions_returning,3 => max_actions_returning,4 => sum_visit_length_returning,5 => bounce_count_returning),[inName] => ‘nb_uniq_visitors_returning’, ‘nb_visits_returning’, ‘nb_actions_returning’, ‘max_actions_returning’, ‘sum_visit_length_returning’, ‘bounce_count_returning’,[numericTable] => ,[aIds] => Array (),[archive] => Piwik_Archive_Array_IndexedByDate Object ([] => Array (1214265600 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 152,[] => 1,[] => 1214265600,[] => Piwik_Date Object ([timestamp] => 1214265600),[] => Piwik_Date Object ([timestamp] => 1214265600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214265600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214265600),[] => 1214352000,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214265600)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-24,[strDateEnd] => 2008-06-24,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214265600)),[] => 1,[] => Array (),[] => Array (),[] => 152,[] => 1,[] => Piwik_Site Object ([] => 2)),1214352000 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 153,[] => 1,[] => 1214352000,[] => Piwik_Date Object ([timestamp] => 1214352000),[] => Piwik_Date Object ([timestamp] => 1214352000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214352000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214352000),[] => 1214438400,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214352000)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-25,[strDateEnd] => 2008-06-25,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214352000)),[] => 1,[] => Array (),[] => Array (),[] => 153,[] => 1,[] => Piwik_Site Object ([] => 2)),1214438400 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 192,[] => 1,[] => 1214438400,[] => Piwik_Date Object ([timestamp] => 1214438400),[] => Piwik_Date Object ([timestamp] => 1214438400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214438400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214438400),[] => 1214524800,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214438400)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-26,[strDateEnd] => 2008-06-26,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214438400)),[] => 1,[] => Array (),[] => Array (),[] => 192,[] => 1,[] => Piwik_Site Object ([] => 2)),1214524800 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 205,[] => 1,[] => 1214524800,[] => Piwik_Date Object ([timestamp] => 1214524800),[] => Piwik_Date Object ([timestamp] => 1214524800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214524800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214524800),[] => 1214611200,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214524800)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-27,[strDateEnd] => 2008-06-27,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214524800)),[] => 1,[] => Array (),[] => Array (),[] => 205,[] => 1,[] => Piwik_Site Object ([] => 2)),1214611200 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 206,[] => 1,[] => 1214611200,[] => Piwik_Date Object ([timestamp] => 1214611200),[] => Piwik_Date Object ([timestamp] => 1214611200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214611200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214611200),[] => 1214697600,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214611200)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-28,[strDateEnd] => 2008-06-28,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214611200)),[] => 1,[] => Array (),[] => Array (),[] => 206,[] => 1,[] => Piwik_Site Object ([] => 2)),1214697600 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 213,[] => 1,[] => 1214697600,[] => Piwik_Date Object ([timestamp] => 1214697600),[] => Piwik_Date Object ([timestamp] => 1214697600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214697600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214697600),[] => 1214784000,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214697600)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-29,[strDateEnd] => 2008-06-29,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214697600)),[] => 1,[] => Array (),[] => Array (),[] => 213,[] => 1,[] => Piwik_Site Object ([] => 2)),1214784000 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 214,[] => 1,[] => 1214784000,[] => Piwik_Date Object ([timestamp] => 1214784000),[] => Piwik_Date Object ([timestamp] => 1214784000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_06,[] => 1214784000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_06,[] => 1214784000),[] => 1214870400,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214784000)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-06-30,[strDateEnd] => 2008-06-30,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214784000)),[] => 1,[] => Array (),[] => Array (),[] => 214,[] => 1,[] => Piwik_Site Object ([] => 2)),1214870400 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 5,[] => 1,[] => 1214870400,[] => Piwik_Date Object ([timestamp] => 1214870400),[] => Piwik_Date Object ([timestamp] => 1214870400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1214870400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1214870400),[] => 1214956800,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214870400)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-01,[strDateEnd] => 2008-07-01,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214870400)),[] => 1,[] => Array (),[] => Array (),[] => 5,[] => 1,[] => Piwik_Site Object ([] => 2)),1214956800 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 21,[] => 1,[] => 1214956800,[] => Piwik_Date Object ([timestamp] => 1214956800),[] => Piwik_Date Object ([timestamp] => 1214956800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1214956800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1214956800),[] => 1215043200,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214956800)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-02,[strDateEnd] => 2008-07-02,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1214956800)),[] => 1,[] => Array (),[] => Array (),[] => 21,[] => 1,[] => Piwik_Site Object ([] => 2)),1215043200 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 231,[] => 1,[] => 1215043200,[] => Piwik_Date Object ([timestamp] => 1215043200),[] => Piwik_Date Object ([timestamp] => 1215043200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215043200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215043200),[] => 1215129600,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215043200)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-03,[strDateEnd] => 2008-07-03,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215043200)),[] => 1,[] => Array (),[] => Array (),[] => 231,[] => 1,[] => Piwik_Site Object ([] => 2)),1215129600 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 232,[] => 1,[] => 1215129600,[] => Piwik_Date Object ([timestamp] => 1215129600),[] => Piwik_Date Object ([timestamp] => 1215129600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215129600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215129600),[] => 1215216000,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215129600)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-04,[strDateEnd] => 2008-07-04,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215129600)),[] => 1,[] => Array (),[] => Array (),[] => 232,[] => 1,[] => Piwik_Site Object ([] => 2)),1215216000 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 233,[] => 1,[] => 1215216000,[] => Piwik_Date Object ([timestamp] => 1215216000),[] => Piwik_Date Object ([timestamp] => 1215216000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215216000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215216000),[] => 1215302400,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215216000)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-05,[strDateEnd] => 2008-07-05,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215216000)),[] => 1,[] => Array (),[] => Array (),[] => 233,[] => 1,[] => Piwik_Site Object ([] => 2)),1215302400 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 234,[] => 1,[] => 1215302400,[] => Piwik_Date Object ([timestamp] => 1215302400),[] => Piwik_Date Object ([timestamp] => 1215302400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215302400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215302400),[] => 1215388800,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215302400)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-06,[strDateEnd] => 2008-07-06,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215302400)),[] => 1,[] => Array (),[] => Array (),[] => 234,[] => 1,[] => Piwik_Site Object ([] => 2)),1215388800 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 235,[] => 1,[] => 1215388800,[] => Piwik_Date Object ([timestamp] => 1215388800),[] => Piwik_Date Object ([timestamp] => 1215388800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215388800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215388800),[] => 1215475200,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215388800)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-07,[strDateEnd] => 2008-07-07,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215388800)),[] => 1,[] => Array (),[] => Array (),[] => 235,[] => 1,[] => Piwik_Site Object ([] => 2)),1215475200 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 230,[] => 1,[] => 1215475200,[] => Piwik_Date Object ([timestamp] => 1215475200),[] => Piwik_Date Object ([timestamp] => 1215475200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215475200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215475200),[] => 1215561600,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215475200)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-08,[strDateEnd] => 2008-07-08,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215475200)),[] => 1,[] => Array (),[] => Array (),[] => 230,[] => 1,[] => Piwik_Site Object ([] => 2)),1215561600 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 375,[] => 1,[] => 1215561600,[] => Piwik_Date Object ([timestamp] => 1215561600),[] => Piwik_Date Object ([timestamp] => 1215561600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215561600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215561600),[] => 1215648000,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215561600)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-09,[strDateEnd] => 2008-07-09,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215561600)),[] => 1,[] => Array (),[] => Array (),[] => 375,[] => 1,[] => Piwik_Site Object ([] => 2)),1215648000 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 376,[] => 1,[] => 1215648000,[] => Piwik_Date Object ([timestamp] => 1215648000),[] => Piwik_Date Object ([timestamp] => 1215648000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215648000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215648000),[] => 1215734400,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215648000)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-10,[strDateEnd] => 2008-07-10,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215648000)),[] => 1,[] => Array (),[] => Array (),[] => 376,[] => 1,[] => Piwik_Site Object ([] => 2)),1215734400 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 377,[] => 1,[] => 1215734400,[] => Piwik_Date Object ([timestamp] => 1215734400),[] => Piwik_Date Object ([timestamp] => 1215734400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215734400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215734400),[] => 1215820800,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215734400)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-11,[strDateEnd] => 2008-07-11,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215734400)),[] => 1,[] => Array (),[] => Array (),[] => 377,[] => 1,[] => Piwik_Site Object ([] => 2)),1215820800 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 378,[] => 1,[] => 1215820800,[] => Piwik_Date Object ([timestamp] => 1215820800),[] => Piwik_Date Object ([timestamp] => 1215820800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215820800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215820800),[] => 1215907200,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215820800)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-12,[strDateEnd] => 2008-07-12,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215820800)),[] => 1,[] => Array (),[] => Array (),[] => 378,[] => 1,[] => Piwik_Site Object ([] => 2)),1215907200 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 379,[] => 1,[] => 1215907200,[] => Piwik_Date Object ([timestamp] => 1215907200),[] => Piwik_Date Object ([timestamp] => 1215907200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215907200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215907200),[] => 1215993600,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215907200)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-13,[strDateEnd] => 2008-07-13,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215907200)),[] => 1,[] => Array (),[] => Array (),[] => 379,[] => 1,[] => Piwik_Site Object ([] => 2)),1215993600 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 380,[] => 1,[] => 1215993600,[] => Piwik_Date Object ([timestamp] => 1215993600),[] => Piwik_Date Object ([timestamp] => 1215993600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1215993600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1215993600),[] => 1216080000,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215993600)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-14,[strDateEnd] => 2008-07-14,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1215993600)),[] => 1,[] => Array (),[] => Array (),[] => 380,[] => 1,[] => Piwik_Site Object ([] => 2)),1216080000 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 381,[] => 1,[] => 1216080000,[] => Piwik_Date Object ([timestamp] => 1216080000),[] => Piwik_Date Object ([timestamp] => 1216080000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216080000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216080000),[] => 1216166400,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216080000)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-15,[strDateEnd] => 2008-07-15,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216080000)),[] => 1,[] => Array (),[] => Array (),[] => 381,[] => 1,[] => Piwik_Site Object ([] => 2)),1216166400 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 382,[] => 1,[] => 1216166400,[] => Piwik_Date Object ([timestamp] => 1216166400),[] => Piwik_Date Object ([timestamp] => 1216166400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216166400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216166400),[] => 1216252800,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216166400)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-16,[strDateEnd] => 2008-07-16,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216166400)),[] => 1,[] => Array (),[] => Array (),[] => 382,[] => 1,[] => Piwik_Site Object ([] => 2)),1216252800 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 383,[] => 1,[] => 1216252800,[] => Piwik_Date Object ([timestamp] => 1216252800),[] => Piwik_Date Object ([timestamp] => 1216252800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216252800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216252800),[] => 1216339200,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216252800)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-17,[strDateEnd] => 2008-07-17,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216252800)),[] => 1,[] => Array (),[] => Array (),[] => 383,[] => 1,[] => Piwik_Site Object ([] => 2)),1216339200 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 384,[] => 1,[] => 1216339200,[] => Piwik_Date Object ([timestamp] => 1216339200),[] => Piwik_Date Object ([timestamp] => 1216339200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216339200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216339200),[] => 1216425600,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216339200)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-18,[strDateEnd] => 2008-07-18,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216339200)),[] => 1,[] => Array (),[] => Array (),[] => 384,[] => 1,[] => Piwik_Site Object ([] => 2)),1216425600 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 409,[] => 1,[] => 1216425600,[] => Piwik_Date Object ([timestamp] => 1216425600),[] => Piwik_Date Object ([timestamp] => 1216425600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216425600),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216425600),[] => 1216512000,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216425600)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-19,[strDateEnd] => 2008-07-19,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216425600)),[] => 1,[] => Array (),[] => Array (),[] => 409,[] => 1,[] => Piwik_Site Object ([] => 2)),1216512000 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 410,[] => 1,[] => 1216512000,[] => Piwik_Date Object ([timestamp] => 1216512000),[] => Piwik_Date Object ([timestamp] => 1216512000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216512000),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216512000),[] => 1216598400,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216512000)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-20,[strDateEnd] => 2008-07-20,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216512000)),[] => 1,[] => Array (),[] => Array (),[] => 410,[] => 1,[] => Piwik_Site Object ([] => 2)),1216598400 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => 1,[] => 408,[] => 1,[] => 1216598400,[] => Piwik_Date Object ([timestamp] => 1216598400),[] => Piwik_Date Object ([timestamp] => 1216598400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216598400),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216598400),[] => 1216684800,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216598400)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-21,[strDateEnd] => 2008-07-21,[logTable] => ,[logVisitActionTable] => ,[logActionTable] => ,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => 1,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216598400)),[] => 1,[] => Array (),[] => Array (),[] => 408,[] => 1,[] => Piwik_Site Object ([] => 2)),1216684800 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => ,[] => 762,[] => 1,[] => 1216684800,[] => Piwik_Date Object ([timestamp] => 1216684800),[] => Piwik_Date Object ([timestamp] => 1216684800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216684800),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216684800),[] => 1216771200,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216684800)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-22,[strDateEnd] => 2008-07-22,[logTable] => log_visit,[logVisitActionTable] => log_link_visit_action,[logActionTable] => log_action,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => ,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216684800)),[] => 1,[] => Array (),[] => Array (),[] => 762,[] => 1,[] => Piwik_Site Object ([] => 2)),1216771200 => Piwik_Archive_Single Object ([archiveProcessing] => Piwik_ArchiveProcessing_Day Object ([isThereSomeVisits] => ,[] => 763,[] => 1,[] => 1216771200,[] => Piwik_Date Object ([timestamp] => 1216771200),[] => Piwik_Date Object ([timestamp] => 1216771200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_numeric,[] => archive_numeric_2008_07,[] => 1216771200),[] => Piwik_TablePartitioning_Monthly Object ([] => archive_blob,[] => archive_blob_2008_07,[] => 1216771200),[] => 1216843491,[idsite] => 2,[period] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216771200)),[site] => Piwik_Site Object ([] => 2),[strDateStart] => 2008-07-23,[strDateEnd] => 2008-07-23,[logTable] => log_visit,[logVisitActionTable] => log_link_visit_action,[logActionTable] => log_action,[] => ,[db] => Zend_Db_Adapter_Pdo_Mysql Object ([] => mysql,[] => Array (),[] => 2,[] => Zend_Db_Profiler Object ([] => Array (),[] => ,[] => ,[] => ),[] => PDO Object (),[] => 0,[] => 1)),[isThereSomeVisits] => ,[] => Piwik_Period_Day Object ([] => day,[] => Array (),[] => 1,[] => Piwik_Date Object ([timestamp] => 1216771200)),[] => 1,[] => Array (),[] => Array (),[] => 763,[] => 1,[] => Piwik_Site Object ([] => 2))),[] => Piwik_Site Object ([] => 2)))) called at [/piwik/modules/Archive/Array/IndexedBySite.php:55]
``````
The problem appears to be that```
/piwik/modules/Archive/Array/IndexedBySite.php:55``` is assuming that```
$archive``` is of the type```
Piwik_Archive_Single
$archive``` is actually of the type```
Piwik_Archive_Array_IndexedByDate```
Essentially there is an extra layer of nesting that isn’t being accounted for.
I’m going to take a look at fixing this later tonight.
``````
The text was updated successfully, but these errors were encountered: