ryanhowdy / fcms

Family Connections - Create a private family website.
http://www.familycms.com
GNU General Public License v2.0
84 stars 41 forks source link

Photos: Check if full size photo exists before showing/linking to it #618

Open GregLeonhardt opened 3 years ago

GregLeonhardt commented 3 years ago

If this switch is changed from 'Off (2 photos)' to 'On (3 photos)' after photos are already uploaded, an error:

"PHP Error filesize(): stat failed for /var/www/html/fcms/uploads/photos/member*/full_xx.jpg"

whenever a previously uploaded photo is selected for viewing.

It looks like once the switch is set to "On" it expects that all photos will have a "full_xx.jpg" file. Unfortunately these files do not exist for photos uploaded to the server when the switch was set to "Off".

ryanhowdy commented 3 years ago

That is correct.

I thought there was a check to make sure those full sized photos existed before using them.