• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Cache error - znote acc

thomson9292

New Member
Joined
Feb 28, 2017
Messages
97
Solutions
1
Reaction score
2
I have those errors on my page:

Warning
: fopen(engine/cache/news.cache.php): failed to open stream: Permission denied in /var/www/test/public_html/engine/function/cache.php on line 91

Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/test/public_html/engine/function/cache.php on line 92

Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/test/public_html/engine/function/cache.php on line 93


This part of code:
Code:
        public function save() {
            $handle = fopen($this->_file, 'w');
            fwrite($handle, $this->_content);
            fclose($handle);
        }

file permission - 664


Giving more permission doesn't solve the problem. How can I fix those errors?
 
I set 777 permission to directory and cache.php file but to fully remove error I have to clear caches. Can anyone tell me where znote saves caches?
 
If you want to use 664, then make sure the file engine/cache/news.cache.php exist
 
Back
Top