#1  
Old 31st December 2010, 15:53
mini14 mini14 is offline
Member
 
Join Date: Oct 2010
Posts: 66
Thanks: 2
Thanked 3 Times in 3 Posts
 
Default web log issue

I started noticing this in my server logs a while ago. Please help!

Code:
ispconfig/scripts/shell/logs.php

PHP Warning:  Invalid argument supplied for foreach() in /root/ispconfig/scripts/shell/logs.php on line 173

__line 173__
foreach($index as $i => $t) {
    if($t < time()-86400*$purge) {
      @unlink($dir.'/'.$files[$i]);
    }
  }
}

$time_end = getmicrotime();
$dauer = $time_end - $time_start;
//echo "Duration: $dauer seconds. Lines: $zeilen_gesamt\n";

?>

====================================================================

PHP Warning:  readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125


// Traffic auswerten und Symlinks für Webalizer aktualisieren
foreach($traffic as $virtual_host => $bytes) {

        if(trim($virtual_host) != '' && trim($virtual_host)!='localhost') {
                // Traffic in DB Schreiben
                // Bestimme Web-ID
 __line 125___       $link =  readlink("$webroot/$virtual_host");
                $parts = split("/",$link);
                $web_id = intval(substr($parts[count($parts) - 1],3));

Last edited by mini14; 31st December 2010 at 16:12.
Reply With Quote
Sponsored Links
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
Bind / IPTABLES issue ybz Installation/Configuration 4 2nd November 2009 13:22
email not working anymore oddo General 2 13th February 2008 17:54
custom firewall showe1966 Installation/Configuration 0 8th February 2008 03:10
Rejected e-mail (unknown user) w/Postfix doronkeller HOWTO-Related Questions 9 27th January 2008 20:09
SuseFirewall expert pls help zacch Installation/Configuration 11 17th March 2006 04:24


All times are GMT +2. The time now is 19:06.


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