Forum
Assets being removed when in use
I recently updated to the latest version of perch from a version which didn't have assets available and when my client logged in and saved a page most of the assets which were there previously have now been deleted meaning that images are not showing up on most of the pages they should be. When you go to assets you can see the asset name but no thumbnail image beside it and when you click download the original it takes you to a 404 not found page.
The assets used to be in the resources folder but now are gone. Gallery images which were saved in gallery folders are still there.
Any ideas why this might be happening? They didn't manually delete any of the files.
Thanks
Which version did you update from?
In the first instance, pop your backup from before the update in place. Once you've done that, can you show us the diagnostics?
I'm not sure what it was. I updated it 2 weeks ago, everything seemed fine and then today assets disappearing.
I had noticed in some of the template files which were cropping the image I had width="960px" instead of width="960" would that matter? Literally all the images were there until my client who has an editor role went in and saved one page from there the images on the site had disappeared.
Also she didn't have the ability to upload assets. I now have allowed that for the editor role.
Ok. Are you not able to get the backup?
I'm not. Don't suppose you know why this might be happening though?
Would using define('PERCH_CLEAN_RESOURCES', false); maybe stop this from happening?
Yes, that's what I'd recommend.
Without knowing anything about the state of the data before you updated it, I couldn't say why it's happening.