Advanced search  

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]

Pages: [1]   Go Down

Author Topic: [Solved]: Admin utilities (Resize pictures) error  (Read 3660 times)

0 Members and 1 Guest are viewing this topic.

tek

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
[Solved]: Admin utilities (Resize pictures) error
« on: August 03, 2004, 12:13:38 am »

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.
« Last Edit: August 03, 2004, 09:28:19 am by GauGau »
Logged

Nibbler

  • Guest
Re: Admin utilities (Resize pictures) error
« Reply #1 on: August 03, 2004, 12:30:20 am »

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


Code: [Select]
        if (file_exists($normal)) {
            $test = rename ($normal, $image);

replace it with:

Code: [Select]
if (file_exists($normal)) {
unlink($image);
$test= rename($normal, $image);

and to fix the error message, change

Code: [Select]
printf($lang_util_php['error_rename'], $normal, $thumb);
to

Code: [Select]
printf($lang_util_php['error_rename'], $normal, $image);
Logged

tek

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Admin utilities (Resize pictures) error
« Reply #2 on: August 03, 2004, 06:58:32 am »

thanks a lot it worked fine
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 23 queries.