Cant delete pics or albums Cant delete pics or albums
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Cant delete pics or albums

Started by thekingster, November 17, 2003, 11:57:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thekingster

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?

thekingster

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?

DJMaze

wrong W2K server setup.

Cos i tried different Windows servers all without problems
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

thekingster

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

DJMaze

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.
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0