filesize(): stat failed
-
I noticed that this message is logged when a post with an image is displayed. I have experienced this on Version 7.4 and 7.4.1. I do not know if it was occuring in prior versions.
[05/02/18 2:30pm UTC]
filesize(): stat failed for C:\wamp\www\XXXXX.com/wp-content/uploads/C:\wamp\www\XXXXX.com/wp-content/uploads/2018/01/XXXXX-Logo-Transparent-Image.png
in C:\wamp\www\XXXXX.com\wp-content\plugins\wordpress-seo\inc\class-wpseo-image-utils.php on line 219wp-content\plugins\wordpress-seo\inc\class-wpseo-image-utils.php
public static function get_file_size( $image ) { if ( isset( $image['filesize'] ) ) { return $image['filesize']; } // If the file size for the file is over our limit, we're going to go for a smaller version. // @todo save the filesize to the image metadata. // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged -- If file size doesn't properly return, we'll not fail. return @filesize( self::get_absolute_path( $image['path'] ) ); }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘filesize(): stat failed’ is closed to new replies.