1

Topic: when i add bans display "php no permission to access cache dir"

An error was encountered
Error: Unable to write bans cache file to cache directory. Please make sure PHP has write access to the directory 'cache'.

but i can add user with usermanagement,
and my cache dir is 777 always

2

Re: when i add bans display "php no permission to access cache dir"

or may be this ,when i do admin_bans they will display

http://yiyeqing.info/admin_bans.php?del_ban=107

An error was encountered
Error: Unable to write bans cache file to cache directory. Please make sure PHP has write access to the directory 'cache'.

Re: when i add bans display "php no permission to access cache dir"

Try deleting the files in the cache/ folder.

Re: when i add bans display "php no permission to access cache dir"

Doesn't sound like a bug, so I've moved this to troubleshooting (if it does turn out to be a bug, I'll move it back smile ).

Looking for a certain modification for your forum? Please take a look here before posting.

5

Re: when i add bans display "php no permission to access cache dir"

and what the trouble so? set right attributes for dir /cache/
there is a file called cache_bans.php, where php write bans, so there should be access for writing...
open your root directory and execute 'chmod 777 cache' command f.e.

Hm... every pixel has it's own destiny

6

Re: when i add bans display "php no permission to access cache dir"

i changed cache_bans.php to 777 in 'cache' dir.so it works right. thanks seva
btw, elbekko , why i should delete the files in cache,is it dosn't harm?

Re: when i add bans display "php no permission to access cache dir"

It doesz no harm, it just forces a recreation of your cache files, which would've solved your problem wink

Re: when i add bans display "php no permission to access cache dir"

I am not sure if this would of fixed it but this plugin clears your cache.

Clear Cache AP Download
Created by Smartys. The Clear Cache plugin can be used to clear and reset the different PunBB caches if you are uncomfortable with or unable to manually edit the files in the cache directory.

Re: when i add bans display "php no permission to access cache dir"

All that plugin does is make it easier to clear your cache files. But if he couldn't write to them then he probably couldn't use the plugin to remove them tongue

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

10 (edited by StevenBullen 2006-08-28 13:35)

Re: when i add bans display "php no permission to access cache dir"

Fair enuf tongue