Login

Prado\Exceptions\TPhpErrorException

Prado\Exceptions\TPhpErrorException

Description

[Warning] error_log(/data/politmonitor/web/protected/runtime/application.xml-4.1.1/web_application.log): failed to open stream: Permission denied (@line 141 in file /data/politmonitor/web/framework/pradosoft/prado/framework/Util/TFileLogRoute.php).

Source File

${PradoFramework}/Util/TFileLogRoute.php (141)

0130:     /**
0131:      * Saves log messages in files.
0132:      * @param array $logs list of log messages
0133:      */
0134:     protected function processLogs($logs)
0135:     {
0136:         $logFile = $this->getLogPath() . DIRECTORY_SEPARATOR . $this->getLogFile();
0137:         if (@filesize($logFile) > $this->_maxFileSize * 1024) {
0138:             $this->rotateFiles();
0139:         }
0140:         foreach ($logs as $log) {
0141: error_log($this->formatLogMessage($log[0], $log[1], $log[2], $log[3]), 3, $logFile);
0142: } 0143: } 0144: 0145: /** 0146: * Rotates log files. 0147: */ 0148: protected function rotateFiles() 0149: { 0150: $file = $this->getLogPath() . DIRECTORY_SEPARATOR . $this->getLogFile(); 0151: for ($i = $this->_maxLogFiles; $i > 0; --$i) { 0152: $rotateFile = $file . '.' . $i; 0153: if (is_file($rotateFile)) {

Stack Trace

#0 [internal function]: Prado\PradoBase::phpErrorHandler(2, 'error_log(/data...', '/data/politmoni...', 141, Array)
#1 ${PradoFramework}/Util/TFileLogRoute.php(141): error_log('Jan 24 03:59:04...', 3, '/data/politmoni...')
#2 ${PradoFramework}/Util/TLogRoute.php(171): Prado\Util\TFileLogRoute->processLogs(Array)
#3 ${PradoFramework}/Util/TLogRouter.php(171): Prado\Util\TLogRoute->collectLogs(Object(Prado\Util\TLogger))
#4 ${PradoFramework}/TComponent.php(1168): Prado\Util\TLogRouter->collectLogs(Object(Prado\TApplication), NULL, 'onendrequest')
#5 ${PradoFramework}/TApplication.php(1238): Prado\TComponent->raiseEvent('onendrequest', Object(Prado\TApplication), NULL)
#6 ${PradoFramework}/TApplication.php(387): Prado\TApplication->onEndRequest()
#7 ${DocumentRoot}/index.php(35): Prado\TApplication->run()
#8 {main}
2026-01-24 03:59 Apache PRADO/4.1.1