Modularisierte Fortbildung.PLUS+<br>Bildungsraum: Kindergarten-Volksschule
TypeError

TypeError

flock(): Argument #1 ($stream) must be of type resource, bool given

/var/www/yii/framework/logging/CFileLogRoute.php(143)

131     }
132 
133     /**
134      * Saves log messages in files.
135      * @param array $logs list of log messages
136      */
137     protected function processLogs($logs)
138     {
139         $logFile=$this->getLogPath().DIRECTORY_SEPARATOR.$this->getLogFile();
140         if(@filesize($logFile)>$this->getMaxFileSize()*1024)
141             $this->rotateFiles();
142         $fp=@fopen($logFile,'a');
143         @flock($fp,LOCK_EX);
144         foreach($logs as $log)
145             @fwrite($fp,$this->formatLogMessage($log[0],$log[1],$log[2],$log[3]));
146         @flock($fp,LOCK_UN);
147         @fclose($fp);
148     }
149 
150     /**
151      * Rotates log files.
152      */
153     protected function rotateFiles()
154     {
155         $file=$this->getLogPath().DIRECTORY_SEPARATOR.$this->getLogFile();

Stack Trace

#6
+
 /var/www/wb-admin/index.php(18): CApplication->run()
13 // specify how many levels of call stack should be shown in each log message
14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
15 
16 require_once($yii);
17 $app = Yii::createWebApplication($config);
18 $app->run();
2024-07-16 05:45:59 Apache/2.4.52 (Ubuntu) Yii Framework/1.1.12