Hi,
Maybe this can help.
This is my error log:
17-Apr-2019 14:02:14 UTC] PHP Warning: filesize(): stat failed for /.../wp-content/uploads/2018/10/recrutamento-1-800x800.jpg in /.../wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php on line 542
[17-Apr-2019 14:02:14 UTC] PHP Stack trace:
[17-Apr-2019 14:02:14 UTC] PHP 1. {main}() /.../wp-admin/admin-ajax.php:0
[17-Apr-2019 14:02:14 UTC] PHP 2. do_action() /.../wp-admin/admin-ajax.php:167
[17-Apr-2019 14:02:14 UTC] PHP 3. WP_Hook->do_action() /.../wp-includes/plugin.php:465
[17-Apr-2019 14:02:14 UTC] PHP 4. WP_Hook->apply_filters() /.../wp-includes/class-wp-hook.php:310
[17-Apr-2019 14:02:14 UTC] PHP 5. Updraft_Smush_Manager->updraft_smush_ajax() /.../wp-includes/class-wp-hook.php:286
[17-Apr-2019 14:02:14 UTC] PHP 6. Updraft_Smush_Manager_Commands->get_ui_update() /.../wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php:98
[17-Apr-2019 14:02:14 UTC] PHP 7. Updraft_Smush_Manager->get_uncompressed_images() /.../wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager-commands.php:144
[17-Apr-2019 14:02:14 UTC] PHP 8. filesize() /.../wp-content/plugins/wp-optimize/includes/class-updraft-smush-manager.php:542
I went to check the uploads folder and did not find the image “/uploads/2018/10/recrutamento-1-800×800.jpg”
But there are a lot of images like “recrutamento-1-800×800-150×150.jpg”. (from diferent sizes wordpress generates)
In wordpress > Media Library I had the image “recrutamento-1-800×800.jpg”, but when I enter to edit the image, it does not show the image itself.
In the Media list there is a thumbnail showing; but there is no image in the edit screen for this media.
Since I was no longer in need of this image, I deleted it from the media Library, and the error seemed to have disappeared.
But the strange thing is that this “Ghost image” got lost somehow, but it’s resized images remain there.