Hey Ruben, thanks for trying to help. We have a problem with our server that I have not been able to figure out. For some reason, the perms on the attachments folder (named uploads) get changed at completely random and inexplicable intervals (one week, two months, three days), and it breaks all the images. As soon as I am notified of it, I login to the server and reset the perms, and everything is fine again.
Unfortunately, this time, that didn't work for all the images. For example, if you view this page:
https://www.stovebolt.com/ubbthreads/ubbthreads.php/topics/1545953/re-1966-w-250.html#Post1545953you will notice that the first two posts in the thread have visible images, but in the last post all the images are broken.
The problem that i have is I don't understand how to convert from the user-input filename to the program-generated filename. So, it's difficult for me to determine if those files aren't on the server or have incorrect permissions.
Last night, I both chown'd and chmod'd the directory, so I suspect those files never made it to the uploads directory for some reason. (Perhaps the permissions change made the directory inaccessible or unwritable.)
If there is a way to determine how the filename gets converted, I could investigate one or more of them to see if they are anywhere on the server, but since the perms and ownership are known to be correct today, I suspect the files are gone and will have to be re-uploaded.
Unfortunately, our OS doesn't allow me to find the birth time of files:
uploads]# find . -newerBT "5 May 2024"
find: This system does not provide a way to find the birth time of a file.
find: invalid predicate `-newerBT'
And all the files how a mod date and time of when I changed ownership and permissions, so I'm out of ideas.
UPDATE: All I had to do was edit a post, then save it, and the pictures reappeared.