View Single Post
  #3  
Old 12th May 2010, 01:15
CSsab CSsab is offline
Senior Member
 
Join Date: Apr 2010
Posts: 174
Thanks: 19
Thanked 32 Times in 27 Posts
Default debug error line 95 cron daily

Hi till,

I thought there may be something wrong with my setup so I started over with the Ubuntu Lucid server giude and I am getting the same error - so I decided to debug and this is the result.

Line 95:
list($key, $value) = preg_split("/[\t= ]+/", $line, 2);

PHP Notice: Undefined offset: 1 in /usr/local/ispconfig/server/cron_daily.php on line 95
PHP Stack trace:
PHP 1. {main}() /usr/local/ispconfig/server/cron_daily.php:0
PHP 2. setConfigVar() /usr/local/ispconfig/server/cron_daily.php:139

many times repeated then ....

PHP Notice: Undefined offset: 1 in /usr/local/ispconfig/server/cron_daily.php on line 95
PHP Stack trace:
PHP 1. {main}() /usr/local/ispconfig/server/cron_daily.php:0
PHP 2. setConfigVar() /usr/local/ispconfig/server/cron_daily.php:140

many times repeated then ....

PHP Notice: Undefined offset: 1 in /usr/local/ispconfig/server/cron_daily.php on line 95
PHP Stack trace:
PHP 1. {main}() /usr/local/ispconfig/server/cron_daily.php:0
PHP 2. setConfigVar() /usr/local/ispconfig/server/cron_daily.php:141

many times repeated then ....

These are lines 139-141 highlighted in red:

if(!@is_file($webalizer_conf)) {
exec("cp $webalizer_conf_main $webalizer_conf");
}

if(@is_file($webalizer_conf)) {
setConfigVar($webalizer_conf, 'Incremental', 'yes');
setConfigVar($webalizer_conf, 'IncrementalName', $statsdir.'/webalizer.current');
setConfigVar($webalizer_conf, 'HistoryName', $statsdir.'/webalizer.hist');

}


if(!@is_dir($statsdir)) mkdir($statsdir);
exec("$webalizer -c $webalizer_conf -n $domain -s $domain -r $domain -q -T -p -o $statsdir $logfile");
}

Is this something I need to change in webalizer.conf or might it have something to do with my website setup?

Thank you in advance.
Reply With Quote