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

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

[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