View Single Post
  #6  
Old 5th January 2012, 01:20
8omas 8omas is offline
Senior Member
 
Join Date: Jan 2011
Posts: 148
Thanks: 16
Thanked 35 Times in 26 Posts
Default

With the new year I had the confirmation that I wanted. The stats updated normally.
The only problem, is that I could not see the update. But the update was there!

The problem was the lines:
Code:
        if (date("d") == 1)
        {
                $month = date("m")-1;
                if (date("m") == 1)
                {
                        $year = date("Y")-1;
                        $month = "12";
                }
        }
in the file ......stats/index.php

Anyway. The stats dissappeared for only one day. When the day was 2 the stats appeared normal.

A quick fix is to comment out every instance of the above code in every index.php of every site.

Another fix (is a bad fix because we have to mess up with core) is to comment out the above lines in:

/usr/local/ispconfig/server/conf/awstats_index.php.master

I did the second. The bad thing is that I must remember this when the new update of ISPConfig will be ready.
Reply With Quote