TPhpErrorException

Description

[Warning] file_put_contents(/home/WWW/mebart.om.pl/protected/runtime/application.xml-3.1.1/config.cache): failed to open stream: Permission denied (@line 922 in file /var/www/PRADO3.1.1/framework/TApplication.php).

Source File

/var/www/PRADO3.1.1/framework/TApplication.php (922)

0911:     protected function initApplication()
0912:     {
0913:         Prado::trace('Initializing application','System.TApplication');
0914: 
0915:         if($this->_configFile!==null)
0916:         {
0917:             if($this->_cacheFile===null || @filemtime($this->_cacheFile)<filemtime($this->_configFile))
0918:             {
0919:                 $config=new TApplicationConfiguration;
0920:                 $config->loadFromFile($this->_configFile);
0921:                 if($this->_cacheFile!==null)
0922: file_put_contents($this->_cacheFile,Prado::serialize($config),LOCK_EX);
0923: } 0924: else 0925: $config=Prado::unserialize(file_get_contents($this->_cacheFile)); 0926: 0927: $this->applyConfiguration($config,false); 0928: } 0929: 0930: if(($serviceID=$this->getRequest()->resolveRequest(array_keys($this->_services)))===null) 0931: $serviceID=self::PAGE_SERVICE_ID; 0932: 0933: $this->startService($serviceID); 0934: }

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'file_put_conten...', '/var/www/PRADO3...', 922, Array)
#1 /var/www/PRADO3.1.1/framework/TApplication.php(922): file_put_contents('/home/WWW/mebar...', 'a:1:{i:0;O:25:"...', 2)
#2 /var/www/PRADO3.1.1/framework/TApplication.php(364): TApplication->initApplication()
#3 /home/WWW/mebart.om.pl/index.php(21): TApplication->run()
#4 {main}
2017-07-23 14:47 Apache/2.4.18 (Ubuntu) PRADO/3.1.1