forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: thekingster on November 17, 2003, 11:57:10 pm

Title: Cant delete pics or albums
Post by: thekingster on November 17, 2003, 11:57:10 pm
I get error

Directory '/index/html/modules/coppermine/albums/8thFeb/' is not writable, pictures can't be deleted

And the folder has 100% full permissions for the internet guest account (Win2k server box so no chmod)

Any ideas please?
Title: Cant delete pics or albums
Post by: thekingster on November 18, 2003, 10:42:02 pm
Ok I fixed it

If I REM out:

if (!is_writable($dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_errors['directory_ro'], htmlspecialchars($dir)), __FILE__, __LINE__);

From delete.php line 118, it works and deletes the files, so it is writable.

Any idea why this happened?
Title: Cant delete pics or albums
Post by: DJMaze on November 19, 2003, 12:38:17 am
wrong W2K server setup.

Cos i tried different Windows servers all without problems
Title: Cant delete pics or albums
Post by: thekingster on November 20, 2003, 12:44:52 am
How do you work that out?

I had an error.....saying the folder wasn't writable.

Checking the setting again and again on the server and it was.

So I removed the line in the code.

And it can delete the pictures and folders, without changing anything on the server.

Now this tells me that the folders clearly are writable, but coppermine doesn't see them as writable, therefore Coppermine on this occasion is at fault.

I appreciate that you know a lot about Coppermine, but I am no I.T n00b and know how to setup a servers permissions.

Aside from this Coppermine is great, Ive been using it since version 1.0 and recently upgraded to 1.1D now 1.2, cant fault it!!

Looking at some hacks and mods now :P
Title: Cant delete pics or albums
Post by: DJMaze on November 20, 2003, 02:27:04 am
is_writeable() is just a PHP command that checks for write permission on the directory.

When something fails it returns FALSE for example: PHP prior to 4.3.4 and a Apache 2.x webserver.
Or just a wrong setup W2K server because there is no protection on windows servers.