Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: jindroush on August 14, 2022, 10:34:52 AM

Title: Attachment files missing?
Post by: jindroush on August 14, 2022, 10:34:52 AM
I updated 2.0.19 to 2.1.2 with large updater. Everything went +- smoothly (some timeout errors blinked several times).
After that, everything seemed to work okay, I also ran all 'checkers' and there were few missing attachments and few attachments with missing posts. Currently when I run action=admin;area=manageattachments;sa=maintenance, the check reports no errors.

But, in the error log, I see several logs of this type:
https://www.[MYFORUM].org/forum/index.php?action=dlattach;attach=110106;type=avatar
2: sha1_file(.../forum/attachments/106961_bd015fec58e4a9c755809c5486dcae6fd1661e12): Failed to open stream: No such file or directory
How is this possible? All of the errors have type=avatar.
Title: Re: Attachment files missing?
Post by: Doug Heffernan on August 14, 2022, 10:37:03 AM
This is a bug that we are aware of, and it will be fixed in the upcoming version.
Title: Re: Attachment files missing?
Post by: jindroush on August 14, 2022, 10:41:30 AM
Thanks! Just to be sure - fixed in a way that the errors won't be reported or fixed in a way that I'd have to dig the missing files from backups?
Title: Re: Attachment files missing?
Post by: Illori on August 14, 2022, 02:01:49 PM
the error message will be corrected.
Title: Re: Attachment files missing?
Post by: shawnb61 on August 14, 2022, 05:00:17 PM
And you should no longer need the files.  No need to go digging through backups.

The problem appears to happen when crawlers are looking for certain files that no longer exist.