Hi,
Please excuse my asking for help on an unsupported setup.
ISPConfig 3 on Ubuntu Lucid Lynx
I would still appreciate any help with the following error I am getting in my ISPC Cron log:
PHP Notice: Undefined offset: 1 in /usr/local/ispconfig/server/cron_daily.php on line 95
This is the section that from cron_daily.php with line #95 highlighted:
################################################## ################################################## ###
// Create webalizer statistics
################################################## ################################################## ###
function setConfigVar( $filename, $varName, $varValue ) {
if($lines = @file($filename)) {
$out = '';
$found = 0;
foreach($lines as $line) {
list($key, $value) = preg_split("/[\t= ]+/", $line, 2);
if($key == $varName) {
$out .= $varName." ".$varValue."\n";
$found = 1;
} else {
$out .= $line;
}
}
if($found == 0) {
//* add \n if the last line does not end with \n or \r
if(substr($out,-1) != "\n" && substr($out,-1) != "\r") $out .= "\n";
//* add the new line at the end of the file
if($append == 1) $out .= $varName." ".$varValue."\n";
}
file_put_contents($filename,$out);
}
}
I am thinking that daily cron task is looking for a value which I have not set in my server but have no idea where to start troubleshooting this error.
I can manually pull down the stats pages from webalizer and view them so I know that webalizer is collecting stats.
What is line 95 actually trying to do?
Thanks
Recent comments
11 hours 35 min ago
16 hours 34 min ago
18 hours 26 sec ago
18 hours 53 min ago
20 hours 36 min ago
1 day 59 min ago
1 day 1 hour ago
1 day 4 hours ago
1 day 17 hours ago
1 day 18 hours ago