View Single Post
  #63  
Old 4th October 2006, 00:34
madcrock madcrock is offline
Junior Member
 
Join Date: Oct 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default webalizer.php warning fixed, log rotation works ok now

I also had a problem with logs growing over 1 GB and not being rotated.
It was related with webalizer.php warnings like this:

Quote:
Warning: array_merge(): Argument #1 is not an array in /root/ispconfig/scripts/shell/webalizer.php on line 161
It's easy to fix. Add $directory_array = array(); just after dir_array function declaration in webalizer.php like this:

Code:
function dir_array($dir){
  $directory_array = array();
  if ($dirstream = @opendir($dir)) {
Everythings works fine for me now.
Reply With Quote