Home Forums Backend Issues (wp-admin) Warning: filesize(): stat failed — \file.php on line 81


Warning: filesize(): stat failed — \file.php on line 81

  • Hello when uplaoding a file I am getting this error
    Warning: filesize(): stat failed for C:\xampp\htdocs\bulgarico/wp-content/uploads/2014/10/BulgariCo_Brochure.pdf in C:\xampp\htdocs\bulgarico\wp-content\themes\BulgariCo\includes\plugins\advanced-custom-fields\core\fields\file.php on line 81

    I didn’t have it before and it isn’t allowing me to get the file as an object

  • 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.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Warning: filesize(): stat failed — \file.php on line 81’ is closed to new replies.