CodeIgniter\Cache\Exceptions\CacheException in Codeigniter 4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: CodeIgniter\Cache\Exceptions\CacheException in Codeigniter 4 (/showthread.php?tid=81453) |
CodeIgniter\Cache\Exceptions\CacheException in Codeigniter 4 - sandi341 - 03-04-2022 HI I am Getting an cache exception error in windows10 error not able to load files in local host. Below image link will show the error exactly please help me solve it. https: //imgur.com/a/eYMInPd https://imgur.com/a/9rXJvAw CodeIgniter\Cache\Exceptions\CacheException Cache unable to write to \cache/. SYSTEMPATH\Cache\Handlers\FileHandler.php at line 61 54 ]; 55 } 56 57 $this->path = ! empty($config->file['storePath']) ? $config->file['storePath'] : WRITEPATH . 'cache'; 58 $this->path = rtrim($this->path, '/') . '/'; 59 60 if (! is_really_writable($this->path)) { 61 throw CacheException::forUnableToWrite($this->path); 62 } 63 64 $this->mode = $config->file['mode'] ?? 0640; 65 $this->prefix = $config->prefix; 66 } 67 68 /** RE: CodeIgniter\Cache\Exceptions\CacheException in Codeigniter 4 - captain-sensible - 03-06-2022 yes but what you haven't elaborated on is the web server and set up that codeigniter is being served from. I'm on Linux and cache ,within writable directory on local host i have permissions rwxrwxrwx That 0640 that seems to be mentioned could be read and write , read, and zilch So basically for writable and cache directory within writable, you could try setting 777 permissions to see what happens. IN linux or at least in my case I run a command from the command line , setting permissions recursively. if your on Windows and say using WAMP or something then , then must be a properties ->security -> permissions or similar. try looking around and try changing permissions on cache and writable so that they are read, write and executable . IN Linux you generally need the executable because that is needed fro my understanding for web server system to be able to enter directory . Can you confirm web server is WAMP or ... RE: CodeIgniter\Cache\Exceptions\CacheException in Codeigniter 4 - wuuyun - 03-11-2022 i have same question PHP Code: Cache unable to write to /home/wwwroot/www.xunrui.com/cache/file/. and cmd "ll". check the folder user and usergroup RE: CodeIgniter\Cache\Exceptions\CacheException in Codeigniter 4 - InsiteFX - 03-12-2022 We need more information. Directory Structure What server are you using Make sure also to run as Aminiastrator Does the rest of the program run? |