PHP warning

file_put_contents(/home/GIR/adaptive.innoeco.ru/wwwdata/files/pictureBox/catalogItem/754/data_sortData.php): Failed to open stream: Permission denied

/home/GIR/adaptive.innoeco.ru/wwwdata/protected/modules/begemot/extensions/vault/FileVault.php(113)

101         } else {
102             return false;
103         }
104     }
105 
106     private function crPhpArrayFile($fileName, $data)
107     {
108 
109         $code = "<?php
110   return
111  " . var_export($data, true) . ";
112 ?>";
113         if (file_put_contents($fileName, $code)) {
114             return true;
115         } else {
116             return false;
117         }
118 
119     }
120 
121     private function startSession()
122     {
123        if (PHP_SESSION_ACTIVE != session_status()){
124            session_start();
125        }

Stack Trace

#0
+
 /home/GIR/adaptive.innoeco.ru/wwwdata/protected/modules/begemot/extensions/vault/FileVault.php(113): file_put_contents("/home/GIR/adaptive.innoeco.ru/wwwdata/files/pictureBox/catalogIt...", "<?php return array ( ); ?>")
108 
109         $code = "<?php
110   return
111  " . var_export($data, true) . ";
112 ?>";
113         if (file_put_contents($fileName, $code)) {
114             return true;
115         } else {
116             return false;
117         }
118 
#1
+
 /home/GIR/adaptive.innoeco.ru/wwwdata/protected/modules/begemot/extensions/vault/FileVault.php(43): FileVault->crPhpArrayFile("/home/GIR/adaptive.innoeco.ru/wwwdata/files/pictureBox/catalogIt...", array())
38             $_SESSION['fileValut'][$fileName] = $collection;
39             session_commit();
40         }
41 
42 
43         if ($this->crPhpArrayFile($fileName, $collection)) {
44             return true;
45         } else {
46             return false;
47         }
48     }
#2
+
 /home/GIR/adaptive.innoeco.ru/wwwdata/protected/modules/pictureBox/components/PBox.php(124): FileVault->pushCollection(array(), "sortData")
119     }
120 
121     public function saveSortData($sortData)
122     {
123 
124         $this->vault->pushCollection($sortData, 'sortData');
125     }
126 
127     public function getSortData()
128     {
129         $data = $this->vault->getCollection('sortData');
2024-03-28 14:32:30 nginx/1.24.0 Yii Framework/1.1.30-dev