PHP warning

file_put_contents(/usr/local/www/hosting/touradmin.ru/app/runtime/debug/6606b0d5c46dc.data): failed to open stream: Permission denied

/usr/local/www/hosting/touradmin.ru/vendor/zhuravljov/yii2-debug/Yii2Debug.php(254)

242         $request = Yii::app()->getRequest();
243         $manifest[$this->getTag()] = $data['summary'] = array(
244             'tag' => $this->getTag(),
245             'url' => $request->getHostInfo() . $request->getUrl(),
246             'ajax' => $request->getIsAjaxRequest(),
247             'method' => $request->getRequestType(),
248             'code' => $statusCode,
249             'ip' => $request->getUserHostAddress(),
250             'time' => time(),
251         );
252         $this->resizeHistory($manifest);
253 
254         file_put_contents("$path/{$this->getTag()}.data", serialize($data));
255         file_put_contents($indexFile, serialize($manifest));
256     }
257 
258     /**
259      * Debug files rotation according to {@link ::$historySize}.
260      * @param $manifest
261      */
262     protected function resizeHistory(&$manifest)
263     {
264         $tags = array_keys($manifest);
265         $count = 0;
266         foreach ($tags as $tag) {

Stack Trace

#0
+
 /usr/local/www/hosting/touradmin.ru/vendor/zhuravljov/yii2-debug/Yii2Debug.php(254): file_put_contents("/usr/local/www/hosting/touradmin.ru/app/runtime/debug/6606b0d5c4...", "a:6:{s:6:"config";a:4:{s:10:"phpVersion";s:6:"5.6.40";s:10:"yiiV...")
249             'ip' => $request->getUserHostAddress(),
250             'time' => time(),
251         );
252         $this->resizeHistory($manifest);
253 
254         file_put_contents("$path/{$this->getTag()}.data", serialize($data));
255         file_put_contents($indexFile, serialize($manifest));
256     }
257 
258     /**
259      * Debug files rotation according to {@link ::$historySize}.
#1
+
 /usr/local/www/hosting/touradmin.ru/vendor/zhuravljov/yii2-debug/Yii2Debug.php(208): Yii2Debug->processDebug()
203     /**
204      * @param CEvent $event
205      */
206     protected function onEndRequest($event)
207     {
208         $this->processDebug();
209     }
210 
211     /**
212      * Log processing routine.
213      */
#5
+
 /usr/local/www/hosting/touradmin.ru/app/controllers/SeminarController.php(77): CApplication->end()
72                     }
73                 }
74             }
75             echo $result;
76         }
77         Yii::app()->end();
78     }
79 }
2024-03-29 15:15:17 nginx/1.20.1 Yii Framework/1.1.15