[Solved]: Admin utilities (Resize pictures) error [Solved]: Admin utilities (Resize pictures) error
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Admin utilities (Resize pictures) error

Started by tek, August 03, 2004, 12:13:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tek

Hi, I just tried this script and it's great but one of the new functions does not work for me. I'm using version 1.3.1 and the "Delete original size photos" does not work. The error message is "Error renaming albums/new/normal_DSCF0009.JPG to albums/new/thumb_DSCF0009.JPG". I get this error for all files. I was running this script on my own server and I have checked the chmod settings. Everything else seems to work but I like this feature since I need to minimize my page.

Nibbler

Hi, you will need to edit util.php, find :


        if (file_exists($normal)) {
            $test = rename ($normal, $image);


replace it with:

if (file_exists($normal)) {
unlink($image);
$test= rename($normal, $image);


and to fix the error message, change

printf($lang_util_php['error_rename'], $normal, $thumb);

to

printf($lang_util_php['error_rename'], $normal, $image);

tek