digitalpoint
Well-known member
Another option if it's easier would be to edit theThis one, right?
View attachment 290366
DigitalPoint\Cloudflare\XF\Entity\AttachmentData.php
file and just remove the whole isDataAvailable()
method there. It would effectively be the same end result (stop extending that method).That being said, I'd still consider fixing the root of the issue where you have broken attachments (attachments that exist without the corresponding attachment data). Hiding the error from the admin error log makes your error log smaller, but your users are still seeing the errors on their end.
It wouldn't be terribly difficult to make a utility to spin through all your attachments, check if the data portion exists and if it doesn't delete those attachments. Probably talking about 10-20 lines of code to do all that. That would save your end users from getting errors all the time...