A bug was reported where a category logo disappears after editing the category and changing the parent category, with the logo URL giving a 404 error after 24-48 hours. Steven provided steps to reproduce the issue. codinghorror inquired if this might be related to another upload issue. tgxworld suggested checking the admin staff action logs for a change in the category’s logo URL, which might indicate an incorrect path. Steven confirmed the issue with the path. Despite upgrading to the latest version, the issue persisted for Steven. zogstrip investigated and later provided a fix in a GitHub commit, advising users to update to the latest version and re-upload any missing images.
I noticed a little bug on Discourse, and I managed to find the steps to reproduce it :
Edit a category that has a logo and change the parent category
After 24/48 hours, the logo image will give an error 404, you’ll have to reupload the logo.
It may happen when we edit something else, like the description but I only tried this steps two days ago, and I can confirm tonight that there is a little bug here.
My forum was up to date at the time. And I didn’t see anything related to this issue since. If it’s the case, my apologies.
In your admin staff action logs, can you look for change category settings and see what the category’s logo url was changed to?
If it doesn’t start with /uploads but includes https://yoursitedomain.com/uploads, something is off. I’ve seen this on another forum that we host but I couldn’t replicate the issue and re-uploading the image worked.
ID catégorie: 26
Nouveau (new): //iunctis.fr/uploads/default/original/1X/dd3017f3ad31a63a56bbe68e7dfd1240479cde35.png
Précédent (old) : /uploads/default/original/1X/dd3017f3ad31a63a56bbe68e7dfd1240479cde35.png
(This is when I reuploaded the logo img)
You’re right, there is something wrong with the path
Can you try upgrading to latest and then reupload the logo? I’m still having trouble trying to reproduce this so it could be a regression that has been fixed.