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: [Solved]: Admin utilities (Resize pictures) error  (Read 4215 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.022 seconds with 20 queries.