Forum: Unable tp get stats
RussS 3871 days ago | Just installed JAWStats on my server and I get the following error message:
The data file being looked for is awstats20095.site1.txt in folder /stats/ In my my config.php individual site configuration I added the line: "statsname" => "awstats[MM][YYYY].txt", My server saves this month's files as "awstats052009.txt" with no url name So why is it looking for a file in a different format? |
Ulrich 3871 days ago | I think it will not work that way.
I would do it this way: Create a config entry with $aConfig[""] { "statspath" => "/stats/", the rest of the settings } Then open clsAWStats.php Go to "function GetLogList" and replace the line (substr($oItem, 14) == ($sStatsName . ".txt"))) { with (substr($oItem, 13) == ("." . $sStatsName . ".txt"))) { I hope this works. |
RussS 3871 days ago | That didn't fix it.
Now I get the following error: The data file being looked for is awstats20095..txt in folder /stats/ All that did was remove the site1 (which is necessary) but still didn't format the date correctly. It should be looking for the data file awstats052009.txt |
Ulrich 3871 days ago | Yes, I think you are right.
Try to *additionally* replace $sFilePath .= ($this->iMonth . $this->iYear . "." . $sStatName . ".txt"); with if ($sStatName != "") { $sFilePath .= ($this->iMonth . $this->iYear . "." . $sStatName . ".txt"); } else { $sFilePath .= ($this->iMonth . $this->iYear . ".txt"); } I haven't tried it, but I think that should fix it. |
RussS 3870 days ago | Nope I still get the same result and error message:
The data file being looked for is awstats20095..txt in folder /stats/ The date just isn't formatted correctly. it sure looks like using $sFilePath .= ($this->iMonth . $this->iYear . ".txt"); should format the month before the year, but that's not what it's doing - it still puts the year first followed by the month |
RussS 3870 days ago | Also notice that I am still getting an extra "." before the "txt" extension in that error message |
Participate in this discussion
You must be logged in to post in this thread.
Version 0.7 beta available now
Released 25th Janury 2009Try the online demo or download now.
Latest JAWStats News:
Version 0.7 Beta Released
Sprechen Sie Deutsch? Multi-lingual JAWStats v0.7 is finally here.
posted 25th Jan '09. read more »
Help JAWStats
Please donate a dollar (or more!) towards the hosting costs for this site. This money doesn't go anywhere near my pocket, it is purely used against my hosting bill.
Get $50 off your webhosting
You could do far worse than choose Dreamhost. I've used them for 6 years and they're great. Simply enter the promo code: JAWSTATS on signup!