Advanced search  

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

Pages: [1]   Go Down

Author Topic: Cant delete pics or albums  (Read 3446 times)

0 Members and 1 Guest are viewing this topic.

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant delete pics or albums
« 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?
Logged

thekingster

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant delete pics or albums
« Reply #1 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?
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Cant delete pics or albums
« Reply #2 on: November 19, 2003, 12:38:17 am »

wrong W2K server setup.

Cos i tried different Windows servers all without problems
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Cant delete pics or albums
« Reply #3 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
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
Cant delete pics or albums
« Reply #4 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 18 queries.