All stats set to 0 at midnight (1.1b5)


#1

Hi,

right after having a look to my stats, i’ve seen that all montly stats are set to 0! This seems to appear right after my 0:00 cron job.

Also a PDF report shows all with zeroes and no data in it.

Going to the “last week” shows that the data are still in the week view. Manually rerunning the cron script won’t solve it.

Does anybody have an advice for that?

Thanks,
Marco


(Matthieu Aubry) #2

Thanks for bug report. For a quick patch, try the following

Replace the following lines in core/ArchiveProcessing.php


377	 	                                $today = date('Y-m-d', Piwik_Date::factory('now', $this->site->getTimezone())->getTimestamp()); 
378	 	                                $minDatetimeArchiveProcessedUTC = Piwik_Date::factory($today)->getTimestamp();

replace by


377	                                $timezone = $this->site->getTimezone(); 
378	                                $minDatetimeArchiveProcessedUTC = Piwik_Date::factory('today', $timezone)->setTimezone($timezone)->getTimestamp();

and please report if you experience the issue again or have other issues


#3

I have the same problem

In core/ArchiveProcessing.php I have

/**

Which is commented out
I replaced as required, but no change
I inserted the two lines below the commented out part and that did not work

It is only not showing one of the sites stats - that is account #1


#4

I have just updated to 1.1 and find that those lines do not exist in core/ArchiveProcessing.php

It shows the months stats for last month - Dec 2010 - ok


(Matthieu Aubry) #5

Yes please use 1.1 and this problem should be fixed. if you still experience an issue please create a new post