Image Cleaner

Can not move images - Image Cleaner

Can not move images

by artfulweb » Wed Oct 02, 2024 10:53 am

Hi,
Just installed. Did create a folder in the images directory called "unused" with the same permissions as the image directory and get the following for all the images checked:

The file black.jpg could not be moved to unused/black.jpg

Ideas on what to fix?
artfulweb
Contributor
Posts: 184
Joined: Thu Oct 29, 2020 12:34 pm
Phoenix Version: v1.1.0.6
Contact:

Re: Can not move images

by GetSirius » Sun Oct 06, 2024 6:36 pm

Just installed and tested this addon. Had the same issue, but that went away when I made the /images/unused folder. Folder permissions are set at 755. Image permissions are 644.
Perhaps the image(s) you want to move has the wrong permissions?
GetSirius
Member
Posts: 50
Joined: Wed Mar 17, 2021 7:15 pm
Phoenix Version:
Contact:

Re: Can not move images

by frankl » Mon Oct 07, 2024 9:11 pm

You shouldn't have to create the directory, it should be automagically created.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Contact:

Re: Can not move images

by GetSirius » Tue Oct 08, 2024 4:54 pm

frankl wrote:You shouldn't have to create the directory, it should be automagically created.
“Well, sometimes the magic works. Sometimes, it doesn't”

OK, while re-checking permissions of my /images directory (755), I notice there is a new directory: /testshop/testshop/images/unused/ with nothing in it. All deleted images were moved to /testshop/images/unused/ that I had to create.
GetSirius
Member
Posts: 50
Joined: Wed Mar 17, 2021 7:15 pm
Phoenix Version:
Contact:

Re: Can not move images

by frankl » Sat Mar 01, 2025 1:18 am

Thank you so much for the feedback.

I believe the errors you experienced are due to the inconsistent use of DIR_WS_CATALOG in the adon. Sometimes paths were called using

DIR_FS_CATALOG . DIR_WS_CATALOG . 'images/

and other times

DIR_FS_CATALOG . 'images/

I've updated and reuploaded the addon.
frankl
Builder
Posts: 159
Joined: Tue Feb 23, 2021 8:39 pm
Phoenix Version: v1.1.0.4
Contact: