Home › Forums › Backend Issues (wp-admin) › Warning: filesize(): stat failed — \file.php on line 81 › Reply To: Warning: filesize(): stat failed — \file.php on line 81
Hi,
I assume that as this post was marked as ‘solved’, that it has been fixed in an update?
I still have the issue though and have found that – whilst it doesn’t fix the issue, rather masks the error – adding and ‘@’ to the filesize call suppresses the error.
size_format(@filesize( get_attached_file( $file->ID ) ));
I would like to see a proper fix for this in the next update.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.