#1  
Old 9th January 2009, 01:20
mghens mghens is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 3
Thanked 2 Times in 2 Posts
Default webalizer cron_daily bug

I was wondering why my sites were not getting stats. Problem is that my weblogs are in the form of

mdY

01012009-access.log 01052009-access.log 12282008-access.log error.log
01022009-access.log 01062009-access.log 12292008-access.log
01032009-access.log 01072009-access.log 12312008-access.log
01042009-access.log 01082009-access.log access.log

but

cron_daily.php is looking for: Ymd

$yesterday = date("Ymd",time() - 86400);

From man vlogger


-t TEMPLATE
Filename template using Date::Format codes. Default is "%m%d%Y-access.log",
or "%m%d%Y-error.log". When using the -r option, the default becomes
"%m%d%Y-%T-access.log" or "%m%d%Y-%T-error.log".


Michael
Reply With Quote
Sponsored Links
  #2  
Old 9th January 2009, 02:17
mghens mghens is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 3
Thanked 2 Times in 2 Posts
 
Default

Fix for me was to change:

$yesterday = date("Ymd",time() - 86400);


to

$yesterday = date("mdY",time() - 86400);
Reply With Quote
The Following User Says Thank You to mghens For This Useful Post:
Antennipasi (15th January 2009)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
missing webalizer stats bolero Installation/Configuration 15 12th November 2008 16:28
Disable Webalizer stats bixtro General 2 10th September 2008 09:09
Running Webalizer with runstats CH Nathan Server Operation 1 11th May 2008 21:57
Howto: Make Webalizer show full QueryString!! Zoon Tips/Tricks/Mods 1 5th November 2007 02:12
Webalizer problem MacPC Server Operation 3 15th May 2007 13:53


All times are GMT +2. The time now is 17:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.