1

Topic: Problem with BAN CACHE FILE after changing Server

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'.

I explain my problem ... I have changed my server ... and all works perfectly, but BANS not. I can't remove the bans, and I can't add them ... I have this error ... I have seen of course the rights of the CACHE dir (777) like my other server (which worked well) ...

Any idea ? Suggestion ?

Re: Problem with BAN CACHE FILE after changing Server

try clearing the cache first, there's a nice plugin that will do this -> http://punbb.org/download/plugins/AP_Clear_Cache.zip

then use

chmod -R 777 cache

to chmod the files, not just the directory

hope this helps! smile

Re: Problem with BAN CACHE FILE after changing Server

if you have problems with the cache permissions and the directory is 777 the easiest thing to do is just delete all the php files in it

4 (edited by mikewild 2007-10-25 07:27)

Re: Problem with BAN CACHE FILE after changing Server

I'm having the same problem, I even used the clear cache mod and deleted all the .php files in the folder and still cannot remove a ban that has happened.

trying to add a ban:

An error was encountered
Error: Unable to add ban.

trying to remove a ban:

Bad request. The link you followed is incorrect or outdated.

also get this when trying CHMOD
Request denied.
Please verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation.

I have full access to the server to make any necessary changes, I had to delete the user from the bans table in order to allow them access again.

HELP! yikes

Re: Problem with BAN CACHE FILE after changing Server

Enable debug mode, paste the full error when adding

Re: Problem with BAN CACHE FILE after changing Server

Smartys wrote:

Enable debug mode, paste the full error when adding

sorry for being obtuse, but how does one enable debug mode? I don't see that option in the administration fields

Re: Problem with BAN CACHE FILE after changing Server

http://punbb.org/forums/viewtopic.php?id=2658

check the stickiys, thts what they are for lol

Sorry. Unactive due to personal life.

Re: Problem with BAN CACHE FILE after changing Server

matt1298 wrote:

http://punbb.org/forums/viewtopic.php?id=2658

check the stickiys, thts what they are for lol

thanks, I tried 'search' foe enable debug but found nothing relevent, not to mention there was like 86 pages that I was too lazy to go through! big_smile

9 (edited by mikewild 2007-10-25 18:35)

Re: Problem with BAN CACHE FILE after changing Server

Ok, I enabled debug mode, and I added someone to the ban list, when I tried to remove them all I got was:

Bad request. The link you followed is incorrect or outdated.


After that, when I tried to add another name to the ban list, I got the following error:

File: /var/www/vhosts/mysite.ca/httpdocs/punbb-1.2.12/upload/admin_bans.php
Line: 245

PunBB reported: Unable to add ban

Database reported: Duplicate entry '0' for key 1 (Errno: 1062)

line 245 in admin_bans reads as such:
        $ban_ip = implode(' ', $addresses);

Re: Problem with BAN CACHE FILE after changing Server

A. You should upgrade to PunBB 1.2.15 if you haven't already
B. It looks like your backup is lacking certain settings on the database. You need to add auto_increment back to the ID column

11 (edited by mikewild 2007-10-25 18:39)

Re: Problem with BAN CACHE FILE after changing Server

ok cool
I'll give that a whirl

If my site has quite a few mods, will upgrading to 1.2.15 really affect it much?



update:

it worked!

Thanks so much for your help. I really gotta stop being so lazy and figure these things out for myself instead of running to the experts all the time!